API:Client code

From MediaWiki.org
Jump to: navigation, search
Tools clipart.png This page is part of the MediaWiki API documentation.
Language: English  • 日本語 • Русский
MediaWiki API

Quick overview:

Contents

[edit] API Access Libraries

Notes to library developers

  • Please use GZip compression when making API calls (Accept-Encoding: gzip).
Bots eat up a lot of bandwidth, which is not free.
Please include your username and wiki or email address.
  • Login has changed (April 2010)
See bugzilla:23076

[edit] Python

[edit] Java

[edit] Javascript

  • jQuery Available natively on all pages/skins. $.ajax() is the de facto standard since 1.17 when Resource loader was activated
  • 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.
  • Luasóg - A framework of standard requests (e.g. log in, log out, read, edit, etc.) as well as a general wrapper method. Includes some helpful stuff like throttling. Project includes a rudimentary IDE for off-site development and execution.

[edit] .NET

[edit] Perl

[edit] Ruby

  • MediaWiki::Gateway - Ruby framework for the API. Actively maintained, tested up to MediaWiki 1.16, compatible with Wikimedia wikis.
  • RWikiBot - a Ruby framework using the API. No releases since 2008.
  • rbmediawiki - Another Ruby framework that uses the API. No releases since 2009.

[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.
  • SoftX PHPwikiBot - simple, lightweight and fast bot framework.

[edit] Haskell

[edit] Tcl

[edit] Delphi/Object Pascal

[edit] Common Lisp

  • cl-mediawiki is a Common Lisp wrapper for the mediawiki API. It is available as a direct download, or (more conveniently) via quicklisp.

[edit] OCaml

[edit] Support Matrix

A support-matrix of many of the actively developed packages from this page for some of the more used API features can be found on the Wikia API Wiki.

[edit] See Also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox