Wikipedia API

Provides access to Wikipedia's encyclopedia content through both Action and REST endpoints, supporting page content retrieval, article summaries, full-text search, and random article selection.

Claim this API

Are you the operator of Wikipedia API? Submit a claim to establish contact with us.

Report an Issue

Found something wrong with Wikipedia API? Let us know about broken links, changed auth, deprecated endpoints, or other issues.

Screenshot:
Screenshot of Wikipedia API homepage
Slug: wikipedia
Key: wikipedia.org:wikipedia-api
Base URL: https://en.wikipedia.org/w/api.php
Auth: none
Endpoints: 5
Reachable: yes
CORS: unknown
Tier: verified
Last checked: 2026-03-14 16:08:11.582395

Links

Homepage: https://www.mediawiki.org/
API Base: https://en.wikipedia.org/w/api.php
Documentation:
SDKs:

Also available as MCP

MCP Server Install Relationship
wikipedia-mcp npm install wikipedia-mcp wrapper

Topics

KNOWLEDGE, SEARCH

Tutorials

Skills

Endpoints (5)

Path Summary Response Auth
api/rest_v1/page/html/{title} Get page HTML content text/html
api/rest_v1/page/random/title Get random page application/json
api/rest_v1/page/summary/{title} Get page summary application/json
api/rest_v1/page/title/{title} Get page title redirect application/json
w/api.php Wikipedia Action API text/html