Wikimedia REST API/pt

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

A REST API da Wikimedia oferece acesso ao conteúdo e aos metadados da Wikimedia em formatos compreensíveis. Focado em casos de uso de alto volume, ele se integra perfeitamente à infraestrutura de cache distribuída globalmente da Wikimedia. Como resultado, os usuários da API se beneficiam de latências reduzidas e suporte para grandes volumes de solicitações.

A API REST, juntamente com sua documentação, está disponível para todos os principais projetos da Wikimedia no local /api/rest_v1/. Por exemplo, para a Wikipédia em inglês está disponível por https://en.wikipedia.org/api/rest_v1/.

Embora a funcionalidade oferecida pela maioria dos projetos seja semelhante à da Wikipedia em inglês, existem algumas exceções dignas de nota:

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.

Other APIs

Para a API REST incluída no MediaWiki 1.35 e posterior, consulte a API REST do MediaWiki Core.

This table: view · talk · edit
API Availability URL base Example
MediaWiki Action API Included with MediaWiki

Enabled on Wikimedia projects

/api.php https://en.wikipedia.org/w/api.php?action=query&prop=info&titles=Earth
MediaWiki REST API Included with MediaWiki 1.35+

Enabled on Wikimedia projects

/rest.php https://en.wikipedia.org/w/rest.php/v1/page/Earth
Wikimedia REST API Not included with MediaWiki

Available for Wikimedia projects only

/api/rest https://en.wikipedia.org/api/rest_v1/page/title/Earth
For commercial-scale APIs for Wikimedia projects, see Wikimedia Enterprise

See also