Wikimedia REST API


This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats.

Global Rules

  • Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits.
  • Set a unique User-Agent or Api-User-Agent header that allows us to contact you quickly. Email addresses or URLs of contact pages work well.

By using this API, you agree to Wikimedia's Terms of Use and Privacy Policy. Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the CC-BY-SA 3.0 and GFDL licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details.

Endpoint documentation

Please consult each endpoint's documentation for details on:

  • Licensing information for the specific type of content and data served via the endpoint.
  • Stability markers to inform you about development status and change policy, according to our API version policy.
  • Endpoint specific usage limits.

License: Apache2

Resources

Citation

generation of citation data

GET
/data/citation/{format}/{query}
Feed

aggregated daily featured content

GET
/feed/announcements
GET
/feed/featured/{yyyy}/{mm}/{dd}
GET
/feed/onthisday/{type}/{mm}/{dd}
Math

formula rendering

POST
/media/math/check/{type}
GET
/media/math/formula/{hash}
GET
/media/math/render/{format}/{hash}
Mobile

mobile-friendly page content

GET
/data/css/mobile/{type}
GET
/data/javascript/mobile/pagelib
GET
/data/javascript/mobile/pagelib_body_end
GET
/data/javascript/mobile/pagelib_body_start
GET
/page/mobile-sections-lead/{title}/{revision}
GET
/page/mobile-sections-lead/{title}
GET
/page/mobile-sections-remaining/{title}/{revision}
GET
/page/mobile-sections-remaining/{title}
GET
/page/mobile-sections/{title}/{revision}
GET
/page/mobile-sections/{title}
Page content

page content in different formats

GET
/page/
GET
/page/data-parsoid/{title}/{revision}/{tid}
GET
/page/graph/png/{title}/{revision}/{graph_id}
GET
/page/html/{title}/{revision}
GET
/page/html/{title}
POST
/page/html/{title}
GET
/page/lint/{title}/{revision}
GET
/page/lint/{title}
GET
/page/media-list/{title}/{revision}
GET
/page/media-list/{title}
GET
/page/media/{title}/{revision}
GET
/page/media/{title}
GET
/page/metadata/{title}/{revision}
GET
/page/metadata/{title}
GET
/page/mobile-html/{title}/{revision}
GET
/page/mobile-html/{title}
GET
/page/pdf/{title}/{format}/{type}
GET
/page/pdf/{title}/{format}
GET
/page/pdf/{title}
GET
/page/random/{format}
GET
/page/references/{title}/{revision}
GET
/page/references/{title}
GET
/page/related/{title}
GET
/page/segments/{title}/{revision}
GET
/page/segments/{title}
GET
/page/summary/{title}
GET
/page/title/{title}/{revision}
GET
/page/title/{title}
POST
/page/wikitext/{title}
Reading lists

Private lists of selected pages

{ "id": "b98c1aeb-ea15-4d3b-9a79-57fcd880776b", "category": "doc", "description": "Project documentation", "url": "https:\/\/www.mediawiki.org\/wiki\/Reading\/Reading_Lists" }
GET
/data/lists/
POST
/data/lists/
POST
/data/lists/batch
GET
/data/lists/changes/since/{date}
GET
/data/lists/pages/{project}/{title}
POST
/data/lists/setup
POST
/data/lists/teardown