Jump to content

API Portal/Deprecation

From Wikitech

The API Portal is being shut down in 2026. This page provides information and links to new documentation locations for API Portal users. For historical information about the API Portal and for options for long-term access, see API Portal.

Quick start

Status

Component Current status Future status
API Portal wiki Content migration in progress. See mw:Wikimedia APIs Inaccessible
api.wikimedia.org API endpoints Working normally. Higher rate limits apply Gradual deprecation
API keys created through the API Portal Working normally. Rate limits apply Working normally. Management through Meta-Wiki

Timeline

  • January-May 2026: Content migration and user outreach
  • Late March or early April 2026: Higher rate limits apply to api.wikimedia.org API endpoints
  • June 2026: API Portal shutdown
  • July 2026: Gradual deprecation of api.wikimedia.org endpoints begins

Background and rationale

In 2020, the Wikimedia Foundation Platform Engineering Team wanted to create a home for Wikimedia API docs that was similar to other popular API docs sites, and that allowed developers to more easily create and manage API keys.

Building the API Portal as a standalone wiki benefits from the advantages of MediaWiki:

  • Ease of editing
  • Ability to translate content
  • Community collaboration through talk pages, watchlists, and other features

However, using a standalone wiki for the API Portal also has disadvantages:

  • Administration: Each new wiki needs a community of administrators, page patrollers, and other functionaries. A new wiki adds work for the Wikimedia technical community.
  • Technical complexity: MediaWiki is a complex ecosystem. Since the API Portal works differently from other Wikimedia wikis, we often find bugs that come from interactions with extensions, skins, and other wikis.
  • Visual inconsistency: The API Portal’s simplified visual design makes it difficult to access wiki features like special pages. In addition, global skin preferences can override the API Portal’s visual design entirely, making the site difficult to use.

Wikimedia Foundation’s Product Management, MediaWiki Interfaces, and Tech Docs teams have decided that the disadvantages of implementing the API Portal as a standalone wiki outweigh the advantages. In 2026, we’ll be working on plans to overcome these disadvantages and reimagining ways to make API docs easy to find, use, and create. For a detailed retrospective, see API Portal/Retrospective.

Page Description API

Documentation for the Page Description API has been moved to mw:Page Description API on mediawiki.org.

Wikifunctions API

Documentation for the Wikifunctions API has been moved to mw:Wikifunctions API on mediawiki.org.

Documentation for the Link Recommendation API has been moved to mw:Link Recommendation API on mediawiki.org.

Lift Wing API

Documentation for the Lift Wing API is still available through the API Portal. New documentation location coming soon.

Rate limits

Rate limits for the Lift Wing API will remain the same as currently documented on the API Portal at Lift Wing API/Rate Limits with only minor clarifications. New documentation location coming soon.

Feed API

Documentation for the Feed API has been moved to mw:Wikifeeds API on mediawiki.org.

Core API

The Core API is scheduled for gradual deprecation starting in July 2026. Replacement routes are to be determined. Users of the Core API should wait to migrate to new endpoints until the new endpoints are announced in the second half of 2026. There will be significant time provided between the announcement and complete deprecation. Until then, you can find general API information below.

For detailed documentation of API parameters and responses, see the equivalent endpoints in MediaWiki REST API reference docs on the REST Sandbox, available on mw:Special:RestSandbox on mediawiki.org and any other Wikimedia project.

Overview

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

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}

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

As of March 2026, requests to api.wikimedia.org endpoints are subject to global Wikimedia API rate limits. These rate limits are higher than the original API Portal rate limits (described below), so no issues should arise as a result of these changes.

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.

Tutorials and guides

To learn about using Wikimedia APIs, visit Wikimedia APIs on mediawiki.org.

Appendix

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

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.