ウィキメディア REST API

From mediawiki.org
This page is a translated version of the page Wikimedia REST API and the translation is 12% complete.

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.

The REST API along with its documentation is available for all major Wikimedia projects at the location /api/rest_v1/. For example, for the English Wikipedia it is available at https://en.wikipedia.org/api/rest_v1/.

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

The REST API follows this API versioning policy.

Terms and conditions

  • By using the REST API, you agree to Wikimedia's general Terms of Use and Privacy Policy.
  • To avoid impacting other API users, limit your clients to no more than 200 requests/sec to this API overall. Many entry points additionally specify and enforce more restrictive rate limits.
  • We ask you to set a unique User-Agent or Api-User-Agent header that allows us to contact you quickly. Email addresses or URLs of contact pages work well.

その他のAPI

For the REST API included with MediaWiki 1.35 and later, see the MediaWiki Core REST API.

この表: 閲覧 · トーク · 編集
API Availability URL base
MediaWiki-2020-small-icon.svg MediaWiki 操作 API MediaWiki に同梱されています

ウィキメディアのプロジェクト群で有効になっています

/api.php https://ja.wikipedia.org/w/api.php?action=query&prop=info&titles=地球
MediaWiki-2020-small-icon.svg MediaWiki REST API MediaWiki 1.35 以降に同梱されています

ウィキメディアのプロジェクト群で有効になっています

/rest.php https://ja.wikipedia.org/w/rest.php/v1/page/地球
Wikimedia-logo.svg ウィキメディア REST API MediaWiki に同梱されていません

ウィキメディアのプロジェクト群のみで利用できます

/api/rest https://ja.wikipedia.org/api/rest_v1/page/title/地球
Wikimedia Enterprise squirrel.svg For commercial-scale APIs for Wikimedia projects, see Wikimedia Enterprise

関連項目