Jump to content
MediaWiki

Wikimedia REST API

From mediawiki.org
Status: See status of individual endpoints in the reference docs
Access: public
Projects: All major Wikimedia wikis
Framework: REST

The Wikimedia REST API offers access to Wikimedia's content and metadata in machine-readable formats. Focused on high-volume use cases, it tightly integrates with Wikimedia's globally distributed caching infrastructure. As a result, API users benefit from reduced latencies and support for high request volumes.

Documentation

[edit ]

Reference

[edit ]

For reference documentation, select "Wikimedia REST APIs" on the REST Sandbox, which is also available on all Wikimedia projects (for example: REST Sandbox on English Wikipedia).

While the functionality offered by most projects closely matches that on English Wikipedia, there are some noteworthy exceptions:

Quick start

[edit ]

The Wikimedia REST API is available for all major Wikimedia projects at the location /api/rest_v1/. For example, for the English Wikipedia endpoints may be called through the base path https://en.wikipedia.org/api/rest_v1/.

# Get metadata for the Earth article on English Wikipedia
curl'https://en.wikipedia.org/api/rest_v1/page/summary/Earth'

Try it out

Access policy

[edit ]

See Wikimedia APIs/Access policy .

Stability policy

[edit ]

The REST API follows this API versioning policy.

Report a bug

[edit ]

Create an account on Wikimedia Phabricator , and tag the task with RESTBase-API.

Get help

[edit ]

Leave a comment on the discussion page.

Contribute

[edit ]

To edit the docs, see Gerrit/Tutorial to contribute to the OpenAPI descriptions.

Changelog

[edit ]

See Wikimedia APIs/Changelog .

See also

[edit ]

AltStyle によって変換されたページ (->オリジナル) /