Jump to content

API:REST API

From mediawiki.org

The MediaWiki REST API provides access to wiki content and functionality through a RESTful, HTTP interface. It supports operations like searching, getting and transforming wiki pages, and accessing page history.

Get started

Learn about the API and get started making basic API calls.

API reference

Interact with the API and find documentation for each endpoint.

Tutorials

Explore working examples of how you can use the API.

API features

[edit]

The MediaWiki REST API offers the following key features:

Compared to the MediaWiki Action API , the REST API offers:

  • A smaller, more streamlined set of operations and resources.
  • Better performance, and cached responses to reduce system load on Wikimedia projects.
  • Simple, consistent URL structure for endpoints.

To learn more about how the MediaWiki REST API compares to other available APIs, see API .

Get help

[edit]

Contribute

[edit]

These docs are written manually based on the MediaWiki Core source code. Corrections and additions are welcome! To share a tutorial or app that uses the MediaWiki REST API, add a comment on the Talk page.

See recent changes to the API at API:REST API/Changelog .

Client libraries

[edit]