Page MenuHomePhabricator

Shut down the API Portal
Open, HighPublic

Description

Hypothesis owner: @apaskulin
Hypothesis owner delegate: @HCoplin-WMF
Start date: January 12, 2026
Target completion date: March 27, 2026
Actual completion date:
Hypothesis ID: WE5.2.11

Hypothesis

If we experiment and establish processes for standardizing documentation currently in the API Portal, we can consolidate sources of information and improve documentation consistency.

Scope

In scope:

  • Documentation on api.wikimedia.org
  • Documentation for APIs available through api.wikimedia.org

Project plan

API Portal components

API Portal components:

Related components:

Background

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. We’re still working on exact plans and schedules for shutting down the Portal, but here is a general idea of what to expect:

  • Endpoints: api.wikimedia.org endpoints will continue to work as currently documented until at least June 2026. Starting in the second half of 2026, api.wikimedia.org endpoints will be migrated to new routes and eventually deprecated.
  • API keys: Most API keys created through the API Portal will continue to work. You can manage your API keys through Special:OAuthConsumerRegistration on Meta-Wiki.
  • Docs: Documentation from the API Portal will be consolidated and moved to other technical documentation wikis.

Information architecture

  • mw:Wikimedia APIs – main landing page for Wikimedia APIs
  • mw:Wikimedia APIs/subpages – topics that apply to multiple APIs
  • mw:[API name] API – landing pages for an individual API
  • mw:[API name] API/subpages – topics that apply to an individual API
  • mw:[tutorial name] – API tutorials
  • wikitech:API Portal/Deprecation – Information about deprecated api.wikimedia.org functionality. We can use this as an intermediary source of information to direct users to docs for API Portal APIs that are available elsewhere.

All APIs in the collection will have a landing page on mediawiki.org that uses this structure for consistency, but if those docs already exist on another wiki, the docs themselves can remain there instead of being migrated to mediawiki.org.

Resources

Event Timeline

apaskulin updated the task description. (Show Details)