Wikimedia FoundationStableVerified 2026-10-15

Wikipedia API for AI agents

Article summaries and content from Wikipedia as JSON. No key; set a User-Agent.

Verified factsChecked 2026-10-15

PriceFree.1 [Verified 2026-10-15]
API key / authNot required. Set a unique User-Agent or Api-User-Agent header with contact info.1 [Verified 2026-10-15]
Rate limitKeep clients to no more than 200 requests/s; individual endpoints may set stricter limits.1 [Verified 2026-10-15]
TermsFollow Wikimedia API etiquette: identify your client with a User-Agent that includes contact details; do not scrape aggressively.1 [Verified 2026-10-15]
EndpointGET https://en.wikipedia.org/api/rest_v1/page/summary/{title}1 [Verified 2026-10-15]

FeaturesChecked 2026-10-17

YesNoN/ANot published
CapabilityValueNote
StatusThe page summary endpoint is marked stable under Wikimedia’s API endpoint stability policy.Stable1 [Verified 2026-10-17 on https://en.wikipedia.org/api/rest_v1/]The page summary endpoint is marked stable under Wikimedia’s API endpoint stability policy.
API key requiredNo key; send a User-Agent. Set a unique User-Agent or Api-User-Agent with contact details.No1 [Verified 2026-10-17 on https://en.wikipedia.org/api/rest_v1/]No key; send a User-Agent. Set a unique User-Agent or Api-User-Agent with contact details.
Free tierFree. Use is under Wikimedia’s Terms of Use.Yes1 [Verified 2026-10-17 on https://en.wikipedia.org/api/rest_v1/]Free. Use is under Wikimedia’s Terms of Use.
Rate limitGlobal rule; individual endpoints may set stricter limits.≤200 requests/s1 [Verified 2026-10-17 on https://en.wikipedia.org/api/rest_v1/]Global rule; individual endpoints may set stricter limits.
Official MCP serverNo official MCP server is listed in the REST API docs.Not published1 [Not published by vendor: checked 2026-10-17 on https://en.wikipedia.org/api/rest_v1/]No official MCP server is listed in the REST API docs.
Official SDKNo official SDK is listed in the REST API docs.Not published1 [Not published by vendor: checked 2026-10-17 on https://en.wikipedia.org/api/rest_v1/]No official SDK is listed in the REST API docs.
Data license / termsUnless an endpoint’s docs say otherwise.CC BY-SA 3.0 + GFDL1 [Verified 2026-10-17 on https://en.wikipedia.org/api/rest_v1/]Unless an endpoint’s docs say otherwise.
Commercial use allowedWith attribution and share-alike. CC BY-SA permits commercial use when you credit and share adaptations alike.Yes2 [Verified 2026-10-17 on https://creativecommons.org/licenses/by-sa/3.0/]With attribution and share-alike. CC BY-SA permits commercial use when you credit and share adaptations alike.
CORS / browser useAccess-Control-Allow-Origin: *. Returned on a GET with a third-party Origin header.Yes3 [Verified 2026-10-17 by test request to https://en.wikipedia.org/api/rest_v1/page/summary/Openverse]Access-Control-Allow-Origin: *. Returned on a GET with a third-party Origin header.
Freshness / coverageSummaries carry the revision and timestamp; English Wikipedia reported 7,254,273 articles.Current revision; 7.25M English articles4 [Verified 2026-10-17 by test request to https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=json]Summaries carry the revision and timestamp; English Wikipedia reported 7,254,273 articles.

What it does

The Wikipedia REST API returns page summaries (title, short description, lead extract, thumbnail) and other page content as JSON. The summary endpoint is especially agent-friendly: one small request gives a clean, sourced paragraph instead of a full HTML page.

Working exampleRun 2026-10-15

ShellRequest
curl -sS -A "AgentAPIList/1.0 (https://agentapilist.com)" "https://en.wikipedia.org/api/rest_v1/page/summary/Openverse"

Response (trimmed)

HTTP responseResponse
HTTP 200
{"type":"standard","title":"Openverse",
  "extract":"Openverse is an open-source search engine for open content developed as part of the WordPress project. ..."}

Agent setup

Prompt to give your agent

Prompt
To check facts, call https://en.wikipedia.org/api/rest_v1/page/summary/<Title_With_Underscores> with a User-Agent header that identifies this tool. Use the "extract" field, quote it briefly, and link the article's page URL. If the type is "disambiguation", ask me which topic I mean.

Agent / MCP-style tool snippet

JSONTool snippet
// Agent tool definition (JSON Schema) — implement with HTTP GET + User-Agent
{
  "name": "wikipedia_summary",
  "description": "Fetch a Wikipedia page summary (extract + URL). No API key. Send a descriptive User-Agent.",
  "input_schema": {
    "type": "object",
    "properties": {
      "title": { "type": "string", "description": "Article title with spaces or underscores" }
    },
    "required": ["title"]
  }
}
// GET https://en.wikipedia.org/api/rest_v1/page/summary/{title}
// Header: User-Agent: YourAgent/1.0 (https://example.com; you@example.com)

Fit and safety

Good for

  • Quick fact grounding for chat agents
  • Entity descriptions and thumbnails for apps
  • Linking claims back to a citable source

Watch out

  • Do not use Wikipedia as the only authority for high-stakes medical, legal or safety decisions — treat it as a starting point and cite primary sources.
  • Do not omit a User-Agent; Wikimedia asks for a unique agent string with contact info.
  • Do not hammer the API; stay within documented rate guidance and cache summaries when you can.

Alternatives

Openverse APIWhen you need openly licensed media linked from Wikipedia-style sources, not article text.
Open-Meteo APIWhen the agent needs live weather numbers instead of encyclopedia text.
Wikidata accessStructured entity data when you need IDs and statements rather than prose summaries.
AlAdhan Prayer Times APIComputed prayer times and Hijri dates when the agent needs calendar data, not encyclopedia text.
Time of Meeting MCPComputed meeting times, public holidays and business days when you need a civil calendar answer, not an encyclopedia summary.
Mireye API + MCPCited facts about one US address or parcel, where Wikipedia has no entry.
Internet Archive APIsKeyless Wayback snapshots and archive.org items when a cited source has moved or gone offline.

FAQ

Does the Wikipedia API need a key?

No, but Wikimedia asks for a unique User-Agent header with contact details.

What is the Wikipedia API rate limit?

The REST API docs ask clients to stay at or below 200 requests per second, with stricter per-endpoint limits possible.

Compare

Put Wikipedia REST API side by side with other free agent tools on keys, limits, MCP support, licensing and CORS. Open the comparison grid →

SourcesFootnotes