API

MediaWiki has several application programming interfaces (APIs).

The three most important APIs of MediaWiki probably are:


 * the MediaWiki Action API (api.php), which is a web API that lets you read and write content of a
 * the [ https://doc.wikimedia.org/mediawiki-core/master/php/ MediaWiki PHP API], which can be used to develop for MediaWiki in
 * the [ https://doc.wikimedia.org/mediawiki-core/master/js/ MediaWiki JavaScript API] (mw), which can be used to develop to extend the MediaWiki user interface

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. While the API modules built into are available in most MediaWiki wikis, built-in Action API modules.

Within the context of the MediaWiki website the Action API can be accessed from JavaScript via the [ https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api mw.API] JavaScript API. For libraries to access the MediaWiki Action API from your favorite programming language, see.