Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

API

From mediawiki.org
Translate this page
Languages:

MediaWiki has severalapplication 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 intoMediaWiki Core are available in most MediaWiki wikis, built-in Action API modulescan also be disabled.

Within the context of the MediaWiki website the Action API can be accessed from JavaScript via themw.Api JavaScript API.(mw.ForeignApi for allowed cross-site requests, e.g. between WMF wikis.)For libraries to access the MediaWiki Action API from your favorite programming language, seeAPI:Client code.

Other web APIs

This table:view·talk·edit
APIAvailabilityURL baseExample
MediaWiki Action APIIncluded with MediaWiki

Enabled onWikimedia projects

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

Enabled onWikimedia projects

/rest.phphttps://en.wikipedia.org/w/rest.php/v1/page/Earth
Wikimedia REST APINot included with MediaWiki

Available forWikimedia projects only

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

See also

Suggestions and ideas for the MediaWiki APIs are tracked onPhabricator:

Footnotes

  1. For extending the Action API, seeAPI:Extensions.For information about JavaScript modules, seeResourceLoader.
disambiguation
This is adisambiguation page, which lists pages which may be the intended target. If apage link referred you here, please consider editing it to point directly to the intended page.
Retrieved from "https://www.mediawiki.org/w/index.php?title=API&oldid=6857537"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp