MediaWiki API is a web-based interface to MediaWiki wikis such as Wikipedia and Wikiversity. The API may be used to write bots, which are manual or automated scripts used to monitor and update pages on the wiki. This learning project documents different API resources and provides code samples in different scripting languages.
- Primary documentation for the MediaWiki API is available at http://www.mediawiki.org/wiki/API:Main_page
- Documentation on the Pageview API is available at https://wikitech.wikimedia.org/wiki/Analytics/AQS/Pageview_API
Because the API is simply a web interface, it may be accessed from any programming or scripting language that has the ability to submit web-based GET and POST requests and read server responses. Common approaches include Python, Perl, and .NET.