Wikipedia 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. Check the Wikimedia REST API documentation 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.

Claim this API

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

Report an Issue

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

Screenshot:
Screenshot of Wikipedia REST API homepage
Base URL: /api/rest_v1
Auth: unknown
Endpoints: 26
Reachable: unknown
CORS: unknown

Links

Homepage: http://mediawiki.org/wiki/Wikimedia_REST_API
API Base: /api/rest_v1

0.0%

Uptime (7d)

Avg latency (7d)

11

Probes (7d)

Latency (7d)

Success Rate (7d)

Topics

KNOWLEDGE, SEARCH

Endpoints

Method Path Summary Auth Last Status Latency
GET /data/citation/{format}/{query} Get citation data given an article identifier.
GET /data/css/mobile/{type} Get CSS for mobile apps.
GET /data/i18n/{type} Get internationalization info
GET /data/javascript/mobile/{type} Get JavaScript for mobileapps
GET /data/lists/ Get all lists of the current user.
POST /data/lists/ Create a new list for the current user.
POST /data/lists/batch Create multiple new lists for the current user.
GET /data/lists/changes/since/{date} Get recent changes to the lists
GET /data/lists/pages/{project}/{title} Get lists of the current user which contain a given page.
POST /data/lists/setup Opt in to use reading lists.
POST /data/lists/teardown Opt out from using reading lists.
PUT /data/lists/{id} Update a list.
DELETE /data/lists/{id} Delete a list.
GET /data/lists/{id}/entries/ Get all entries of a given list.
POST /data/lists/{id}/entries/ Create a new list entry.
POST /data/lists/{id}/entries/batch Create multiple new list entries.
DELETE /data/lists/{id}/entries/{entry_id} Delete a list entry.
GET /data/recommendation/article/creation/morelike/{seed_article} Recommend missing articles
GET /data/recommendation/article/creation/translation/{from_lang} Recommend articles for translation.
GET /data/recommendation/article/creation/translation/{from_lang}/{seed_article} Recommend articles for translation.
POST /media/math/check/{type} Check and normalize a TeX formula.
GET /media/math/formula/{hash} Get a previously-stored formula
GET /media/math/render/{format}/{hash} Get rendered formula in the given format.
GET /page/ List page-related API entry points.
GET /page/html/{title} Get latest HTML for a title.
GET /page/html/{title}/{revision} Get HTML for a specific title/revision & optionally timeuuid.
GET /page/lint/{title} Get the linter errors for a specific title/revision.
GET /page/lint/{title}/{revision} Get the linter errors for a specific title/revision.
GET /page/media-list/{title} Get list of media files used on a page.
GET /page/media-list/{title}/{revision} Get list of media files used on a page.
GET /page/mobile-html-offline-resources/{title} Get styles and scripts for offline consumption of mobile-html-formatted pages
GET /page/mobile-html-offline-resources/{title}/{revision} Get styles and scripts for offline consumption of mobile-html-formatted pages
GET /page/mobile-html/{title} Get page content HTML optimized for mobile consumption.
GET /page/mobile-html/{title}/{revision} Get page content HTML optimized for mobile consumption.
GET /page/summary/{title} Get basic metadata and simplified article introduction.
GET /page/talk/{title} Get structured talk page contents
GET /page/talk/{title}/{revision} Get structured talk page contents
GET /page/title/{title} Get revision metadata for a title.
GET /page/title/{title}/{revision} Get revision metadata for a title.
POST /transform/html/to/wikitext Transform HTML to Wikitext
POST /transform/html/to/wikitext/{title} Transform HTML to Wikitext
POST /transform/html/to/wikitext/{title}/{revision} Transform HTML to Wikitext
POST /transform/wikitext/to/html Transform Wikitext to HTML
POST /transform/wikitext/to/html/{title} Transform Wikitext to HTML
POST /transform/wikitext/to/html/{title}/{revision} Transform Wikitext to HTML
POST /transform/wikitext/to/lint Check Wikitext for lint errors
POST /transform/wikitext/to/lint/{title} Check Wikitext for lint errors
POST /transform/wikitext/to/lint/{title}/{revision} Check Wikitext for lint errors
POST /transform/wikitext/to/mobile-html/{title} Transform Wikitext to Mobile HTML