API:Client Code
From MediaWiki.org
| This page is part of the MediaWiki API documentation. |
Contents |
[edit] API Access Libraries
Note to library developers
Please use GZip compression when making API calls.
Bots eat up a lot of bandwidth, which is not free.
Thank you,
--Yurik 00:12, 17 September 2007 (UTC)
[edit] Python
- PyWikipediaBot Framework - collection of python scripts (IRC, Documentation)
- mwclient - a Python library that makes most of the API functions accessible. (SVN: https://mwclient.svn.sourceforge.net/svnroot/mwclient/trunk/mwclient)
- wikitools - Provides several layers of abstraction around the API.
[edit] Java
- Bliki Engine - Java Wikipedia API - not very complete, but has basic functionality. Can convert wikicode to HTML, DocBook or PDF.
- JavaWikiBotFramework - a Java library that makes almost all API functions accessible.
[edit] Javascript
- JsMwApi A convenience wrapper around raw requests, with some helpers for editing and parsing.
- mwapilib - A kind of crappy layer overtop of the requests. Make JS gadgets easier.
[edit] .NET
- AutoWikiBrowser's WikiFunctions library has classes for editing and getting lists of pages via the API. See ApiEdit
- WikiAccess - a C#-library that makes some API functions accessible, has write API.
- DotNetWikiBot Framework - written in C#, based on Microsoft® .NET Framework 2.0 (Tutorial)
[edit] Perl
- MediaWiki::API - A Perl module for interfacing with the MediaWiki API with file upload/download and editing support.
- MediaWiki::Bot - A higher-level Perl module allowing use of both the MediaWiki::API interface and a number of functions allowing both read and write operations.
[edit] Ruby
- RWikiBot - a Ruby framework using the API as released with the most current version of MediaWiki.
- rbmediawiki - Another Ruby framework that uses the API.
[edit] PHP
There are many PHP frameworks for the api, see here for a full list and comparison of frameworks.
- SxWiki - a lightweight, simple MediaWiki bot framework.
[edit] See Also
- Collection of bot libraries on Wikipedia, several of these use the API.