Wikimedia REST API/zh

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

REST API及其文档可用于该位置/api/rest_v1/的所有主要Wikimedia项目. 例如，对于英文Wikipedia，它在https://en.wikipedia.org/api/rest_v1/ .

虽然大多数项目提供的功能与英文Wikipedia上的非常匹配，但也有一些值得注意的例外：


 * wikimedia.org offers cross-project information like page view metrics.
 * en.wiktionary.org offers an experimental definition end point, exposing Wiktionary information as structured data. Support for other languages is under discussion.

版本控制
The REST API follows this API versioning policy.



条款和条件

 * 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   or   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.



参见

 * RESTBase, the technology behind the REST API
 * Blog post announcing the 1.0 release. Describes several important production use cases, discusses how the REST API fits into Wikimedia's larger technical strategy, and provides pointers to some implementation details.
 * The API is implemented using Node.js. This blog post describes our experience upgrading the REST API and other services to Node 6.
 * Wikimedia Services team, product owners for the REST API.
 * Core Platform Team/Initiatives/API Gateway (2020)