This page is a translated version of the page API and the translation is 0% complete.

MediaWiki has several application programming interfaces (APIs).

The three most important APIs of MediaWiki are:

Note that the MediaWiki Action API and the MediaWiki JavaScript API are both modular: both can be extended by extensions, so the available API modules can differ from wiki to wiki.[1] While the API modules built into MediaWiki Core are available in most MediaWiki wikis, built-in Action API modules can also be disabled .

Within the context of the MediaWiki website the Action API can be accessed from JavaScript via the mw.Api JavaScript API. For libraries to access the MediaWiki Action API from your favorite programming language, see API:Клієнтський код .

Other web APIs

Ця таблиця: перегляд · обг. · ред.
API Доступність База URL-адрес Приклад
MediaWiki Action API Входить до складу MediaWiki

Увімкнено в проєктах Вікімедіа

/api.php https://uk.wikipedia.org/w/api.php?action=query&prop=info&titles=Земля
MediaWiki REST API Входить до MediaWiki 1.35+

Увімкнено в проєктах Вікімедіа

/rest.php https://uk.wikipedia.org/w/rest.php/v1/page/Земля
Wikimedia REST API Не входить до MediaWiki

Доступно лише для проєктів Вікімедіа.

/api/rest https://uk.wikipedia.org/api/rest_v1/page/title/Земля
Для комерційних API для проєктів Вікімедіа див. Wikimedia Enterprise

See also

Suggestions and ideas for the MediaWiki APIs are tracked on Фабрикатор :

Footnotes

  1. For extending the Action API, see API:Розширення . For information about JavaScript modules, see ResourceLoader .