API - MediaWiki Jump to content Main menu Main menu move to sidebar hide Navigation Main page Get MediaWiki Get extensions Tech blog Contribute Support User help FAQ Technical manual Support desk Communication Development Developer portal Code statistics mediawiki.org Community p…
API - MediaWiki Jump to content Main menu Main menu move to sidebar hide Navigation Main page Get MediaWiki Get extensions Tech blog Contribute Support User help FAQ Technical manual Support desk Communication Development Developer portal Code statistics mediawiki.org Community portal Recent changes Translate content Special pages Random page Village pump Sandbox In other languages العربية Asturianu Azərbaycanca Boarisch Беларуская Български বাংলা Bosanski Català کوردی Čeština Dansk Deutsch Ελληνικά English Esperanto Español Eesti Euskara فارسی Suomi Français Nordfriisk Gaeilge Galego Hausa עברית हिन्दी Hrvatski Magyar Հայերեն Bahasa Indonesia Igbo Ido Italiano 日本語 ქართული Қазақша 한국어 Lietuvių Latviešu മലയാളം Монгол Bahasa Melayu Nederlands Norsk nynorsk Norsk bokmål Polski Piemontèis Português Runa Simi Română Русский Srpskohrvatski / српскохрватски Simple English Slovenčina Slovenščina Shqip Српски / srpski Svenska Kiswahili தமிழ் ไทย Tagalog Türkçe Українська اردو Oʻzbekcha / ўзбекча Tiếng Việt 吴语 მარგალური 粵語 中文 Edit links Search Search English Appearance Donate Create account Log in Personal tools Donate Create account Log in Contents move to sidebar hide Beginning 1 APIs for Wikimedia wikis 2 See also 3 Footnotes Toggle the table of contents API Page Discussion English Read View source View history Tools Tools move to sidebar hide Actions Read View source View history General What links here Related changes Upload file Permanent link Page information Cite this page Get shortened URL Print/export Create a book Download as PDF Printable version In other projects Wikimedia Commons Wikipedia Wikidata item Appearance move to sidebar hide From mediawiki.org Translate this page Languages: Bahasa Indonesia Deutsch English Türkçe español français italiano polski português do Brasil čeština русский српски / srpski українська العربية فارسی अंगिका हिन्दी বাংলা ગુજરાતી ไทย မြန်မာဘာသာ 中文 日本語 粵語 한국어 MediaWiki has several application programming interfaces (APIs). MediaWiki offers the following web APIs: the MediaWiki Action API (api.php) the MediaWiki REST API (rest.php) The Action API provides a much broader set of functionality, while the REST API (which is newer) has better-structured URLs and runs faster. MediaWiki also includes the following software APIs: the MediaWiki PHP API, which can be used to develop extensions for MediaWiki in PHP the MediaWiki JavaScript API (mw), which can be used to develop user scripts and gadgets 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.[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. (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, see API:Client code . APIs for Wikimedia wikis For information about APIs available for Wikimedia wikis, see Wikimedia APIs . See also Suggestions and ideas for the MediaWiki APIs are tracked on Phabricator : Phabricator tasks for the MediaWiki-Action-API Phabricator tasks for the MediaWiki-Core-Hooks that are part of the PHP API Phabricator tasks related to JavaScript in MediaWiki core or extensions Phabricator tasks for the MediaWiki-REST-API Footnotes ↑ For extending the Action API, see API:Extensions . For information about JavaScript modules, see ResourceLoader . This is a disambiguation page, which lists pages which may be the intended target. If a page 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=8326181" Categories: Disambiguation pages MediaWiki development Manual This page was last edited on 5 April 2026, at 15:24. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. Text in the Help: namespace is available under the Creative Commons CC0 License. By using this site, you agree to the Terms of Use and Privacy Policy. Privacy policy About mediawiki.org Disclaimers Legal & safety contacts Code of Conduct Developers Statistics Cookie statement Mobile view Search Search Toggle the table of contents API Add topic