MediaWiki REST API

The MediaWiki REST API provides a modern RESTful interface for reading and writing wiki content including pages, revisions, file metadata, search, and content transformation between wikitext and HTML. Available on Wikipedia and all Wikimedia projects at the /rest.php endpoint.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mediawiki-rest-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

API entry from apis.yml

apis.yml Raw ↑
name: MediaWiki REST API
description: The MediaWiki REST API provides a modern RESTful interface for reading and writing wiki content
  including pages, revisions, file metadata, search, and content transformation between wikitext and HTML.
  Available on Wikipedia and all Wikimedia projects at the /rest.php endpoint.
image: https://upload.wikimedia.org/wikipedia/commons/thumb/8/81/Wikimedia-logo.svg/240px-Wikimedia-logo.svg.png
humanURL: https://www.mediawiki.org/wiki/API:REST_API
baseURL: https://en.wikipedia.org/w/rest.php/v1
tags:
- Wikipedia
- Pages
- Search
- Revisions
- Media
- Transforms
tags_raw:
- Wikipedia
- Pages
- Search
- Revisions
- Media
- Transform
properties:
- type: Documentation
  url: https://www.mediawiki.org/wiki/API:REST_API/Reference
- type: RateLimits
  url: /rate-limits/mediawiki-rest-api.yml
contact:
- FN: Wikimedia Developer Relations
  url: https://www.mediawiki.org/wiki/Developer_advocacy