Jump to content

API Portal/Deprecation

From Wikitech

This page is a work in progress source of information about the 2026 shutdown of the API Portal.

Core API

The Core API provides the ability to search for, fetch, and interact with pages and media files on Wikimedia projects. The Core API uses this URL format:

https://api.wikimedia.org/core/v1/{project}/{language}/{endpoint}
project
Project name. For example: wikipedia (encyclopedia articles), commons (images, audio, and video), wiktionary (dictionary entries). List all projects.
language
Language code. For example: ar (Arabic), en (English), es (Spanish). List supported languages.

Endpoints

For documentation for parameters and responses, see the MediaWiki REST API reference docs on the REST Sandbox, available on mediawiki.org and any other Wikimedia project.

Search content
GET /core/v1/{project}/{language}/search/page
Search titles
GET /core/v1/{project}/{language}/search/title
Create page
POST /core/v1/{project}/{language}/page
Edit page
PUT /core/v1/{project}/{language}/page/{title}
Get page
GET /core/v1/{project}/{language}/page/{title}/bare
Get page offline
GET /core/v1/{project}/{language}/page/{title}/with_html
Get page source
GET /core/v1/{project}/{language}/page/{title}
Get HTML
GET /core/v1/{project}/{language}/page/{title}/html
Get languages
GET /core/v1/{project}/{language}/page/{title}/links/language
Get files
GET /core/v1/{project}/{language}/page/{title}/links/media
Get file
GET /core/v1/{project}/{language}/file/{title}
Get page history
GET /core/v1/{project}/{language}/page/{title}/history
Get revision stats
GET /core/v1/{project}/{language}/page/{title}/history/counts/{type}
Get revision
GET /core/v1/{project}/{language}/revision/{id}/bare
Compare revisions
GET /core/v1/{project}/{language}/revision/{from}/compare/{to}

Endpoint map

API Method api.wikimedia.org Endpoint Equivalent endpoint
Feed GET /feed/v1/wikipedia/{language}/featured/{YYYY}/{MM}/{DD} {wiki_domain}/api/rest_v1/feed/featured/{YYYY}/{MM}/{DD}

https://en.wikipedia.org/api/rest_v1/feed/featured/2026/01/22

Feed GET /feed/v1/wikipedia/{language}/onthisday/{type}/{MM}/{DD} {wiki_domain}/api/rest_v1/feed/onthisday/{type}/{MM}/{DD}

https://en.wikipedia.org/api/rest_v1/feed/onthisday/all/03/31

Page description GET /core/v1/{project}/{language}/page/{title}/description {wiki_domain}/api/rest_v1/page/summary/{title}

https://en.wikipedia.org/api/rest_v1/page/summary/Dog

Page description PUT /core/v1/{project}/{language}/page/{title}/description ?
Page description DELETE /core/v1/{project}/{language}/page/{title}/description ?
Link recommendation GET /service/linkrecommendation/v1/linkrecommendations/wikipedia/{language}/{title} ?
Link recommendation POST /service/linkrecommendation/v1/linkrecommendations/wikipedia/{language}/{title} ?
Core GET /core/v1/{project}/{language}/search/page {wiki_domain}/w/rest.php/v1/search/page

https://en.wikipedia.org/w/rest.php/v1/search/page?q=dog&limit=1

Core GET /core/v1/{project}/{language}/search/title {wiki_domain}/w/rest.php/v1/search/title

https://en.wikipedia.org/w/rest.php/v1/search/title?q=dog&limit=1

Core POST /core/v1/{project}/{language}/page {wiki_domain}/w/rest.php/v1/page

https://en.wikipedia.org/w/rest.php/v1/page

Core PUT /core/v1/{project}/{language}/page/{title} {wiki_domain}/w/rest.php/v1/page/{title}

https://en.wikipedia.org/w/rest.php/v1/page/Dog

Core GET /core/v1/{project}/{language}/page/{title}/bare {wiki_domain}/w/rest.php/v1/page/{title}/bare

https://en.wikipedia.org/w/rest.php/v1/page/Dog/bare

Core GET /core/v1/{project}/{language}/page/{title}/with_html {wiki_domain}/w/rest.php/v1/page/{title}/with_html

https://en.wikipedia.org/w/rest.php/v1/page/Dog/with_html

Core GET /core/v1/{project}/{language}/page/{title} {wiki_domain}/w/rest.php/v1/page/{title}

https://en.wikipedia.org/w/rest.php/v1/page/Dog

Core GET /core/v1/{project}/{language}/page/{title}/html {wiki_domain}/w/rest.php/v1/page/{title}/html

https://en.wikipedia.org/w/rest.php/v1/page/Dog/html

Core GET /core/v1/{project}/{language}/page/{title}/links/language {wiki_domain}/w/rest.php/v1/page/{title}/links/language

https://en.wikipedia.org/w/rest.php/v1/page/Dog/links/language

Core GET /core/v1/{project}/{language}/page/{title}/links/media {wiki_domain}/w/rest.php/v1/page/{title}/links/media

https://en.wikipedia.org/w/rest.php/v1/page/Dog/links/media

Core GET /core/v1/{project}/{language}/file/{title} {wiki_domain}/w/rest.php/v1/file/{title}

https://commons.wikimedia.org/w/rest.php/v1/file/File:Black_Labrador_Retriever_-_Male_IMG_3323_(cropped).jpg

Core GET /core/v1/{project}/{language}/page/{title}/history {wiki_domain}/w/rest.php/v1/page/{title}/history

https://en.wikipedia.org/w/rest.php/v1/page/Dog/history

Core GET /core/v1/{project}/{language}/page/{title}/history/counts/{type} {wiki_domain}/w/rest.php/v1/page/{title}/history/counts/{type}

https://en.wikipedia.org/w/rest.php/v1/page/Dog/history/counts/bot

Core GET /core/v1/{project}/{language}/revision/{id}/bare {wiki_domain}/w/rest.php/v1/revision/{id}/bare

https://en.wikipedia.org/w/rest.php/v1/revision/1333796539/bare

Core GET /core/v1/{project}/{language}/revision/{from}/compare/{to} {wiki_domain}/w/rest.php/v1/revision/{from}/compare/{to}

https://en.wikipedia.org/w/rest.php/v1/revision/1328607077/compare/1333796539

API keys

API keys created through the API Portal will continue to work and can be managed through Special:OAuthConsumerRegistration on Meta-Wiki. If your API key is not working as expected, leave a comment on Talk:API Portal/Deprecation.

Rate limits

API Portal historical rate limits

Rate limits restrict API calls to a set number of requests per hour based on the type of request. A 429 response code indicates that the applicable rate limit has been exceeded.

These limits only apply to APIs with api.wikimedia.org as the base URL. Rate limits may vary depending on the API; see the individual API docs for the rate limits applicable to each API. For higher rate limits, check out Wikimedia Enterprise.

Anonymous requests
API requests without an access token are limited to 500 requests per hour per IP address.
Personal requests
API requests authenticated using a personal API token (or owner-only consumer) are limited to 5,000 requests per hour.
App-authenticated requests
API requests authenticated using the OAuth 2.0 client credentials flow are limited to 5,000 requests per hour.
User-authenticated requests
API requests authenticated using the OAuth 2.0 authorization code flow are limited to 5,000 requests per hour per user.

Archive

API guidelines (Draft)

This rough draft of guidelines for API maintainers was written in 2021 by SKim (WMF), NNikkhoui (WMF), and BPirkle (WMF) and published at api.wikimedia.org/wiki/Maintainers/API_guidelines, licensed under CC BY-SA 4.0. Links have been modified to work correctly on Wikitech.