This page is a translated version of the page Wikimedia REST API and the translation is 67% complete.

Wikimedia的REST API提供对机器可读格式的Wikimedia内容和元数据的访问。 专注于大容量用例,它与Wikimedia的全球分布式缓存基础设施紧密集成。 因此,API用户可以从降低的延迟和高请求量的支持中受益。

REST API及其文档可用于该位置/api/rest_v1/的所有主要Wikimedia项目。 例如,对于英文Wikipedia,它在



REST API遵循 本API版本方針.


  • 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.


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

此表格: 查看 · 讨论 · 编辑
API Availability URL base 示例
  MediaWiki Action API Included with MediaWiki

Enabled on Wikimedia projects

  MediaWiki REST API Included with MediaWiki 1.35+

Enabled on Wikimedia projects

  Wikimedia REST API Not included with MediaWiki

Available for Wikimedia projects only

  For commercial-scale APIs for Wikimedia projects, see Wikimedia Enterprise