GnistAI GnistAI
Log in

Getting Started with This Day in History

Historical events, births, and deaths for any date — powered by Wikipedia.

All Tutorials   |   Overview   |   Playground   |   MCP   |   REST API   |   Home
Reference

Data source: Wikipedia (Wikimedia REST API)

Overview

This Day in History wraps Wikipedia (Wikimedia REST API), handling authentication, pagination, and rate limits for you. This tutorial covers all 2 tools with working code examples you can copy and run.

Prerequisites

  1. Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
  2. Choose your integration method: MCP protocol or REST API.

Connect via MCP

Add to your MCP client config (Claude Desktop, Cursor, etc.):

MCP Config
{
  "mcpServers": {
    "gnist-this-day": {
      "url": "https://context.gnist.ai/mcp/this-day/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Tools (2)

get_on_this_day

Get historical events, births, and deaths that happened on this day. Returns notable events, famous births, and notable deaths for a given month/day from Wikipedia's comprehensive historical database. Defaults to today's date.

ParameterTypeRequiredDescription
monthanyoptionalMonth (1-12). Defaults to today.
dayanyoptionalDay of month (1-31). Defaults to today.
typeanyoptionalFilter: 'events', 'births', or 'deaths'. Omit for all three.
max_resultsanyoptionalMax entries per category (default: 20, max: 100).
curl -X POST "https://context.gnist.ai/mcp/this-day/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_on_this_day", "arguments": {"month": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/this-day/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'month': 'example'}, 'name': 'get_on_this_day'}},
)
print(resp.json())

report_feedback

Report a bug, feature request, or general feedback for this data source. Use this when something doesn't work as expected, when you'd like a new feature, or when you have suggestions for improvement. Args: feedback: Describe the issue or suggestion. feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: general)
curl -X POST "https://context.gnist.ai/mcp/this-day/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/this-day/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'feedback': 'example'}, 'name': 'report_feedback'}},
)
print(resp.json())

Common Patterns

Pagination
Several tools support limit, offset, or page parameters. Start with small limits during development, then increase for production queries.

FAQ

What data does This Day in History provide?

Historical events, births, and deaths for any date — powered by Wikipedia. It exposes 2 tools: get_on_this_day, report_feedback.

What do I need to get started?

A Gnist API key (free tier: 100 calls/day). Sign up at https://context.gnist.ai/signup.

What format does the This Day in History API return?

JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.

Next Steps

Related Tutorials