API:Main module

Prefix: None Required Rights: None POST Only? No


 * This is an auto-generated MediaWiki API documentation page             **
 * Documentation and Examples:                              **
 * http://www.mediawiki.org/wiki/API                           **
 * Documentation and Examples:                              **
 * http://www.mediawiki.org/wiki/API                           **
 * http://www.mediawiki.org/wiki/API                           **

Status:               All features shown on this page should be working, but the API is still in active development, and may change at any time. Make sure to monitor our mailing list for any updates

Documentation:        http://www.mediawiki.org/wiki/API Mailing list:         http://lists.wikimedia.org/mailman/listinfo/mediawiki-api Api Announcements:    http://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce Bugs & Requests:      http://bugzilla.wikimedia.org/buglist.cgi?component=API&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=bugs.delta_ts

Parameters

 * action – What action you would like to perform. See below for module help.
 * Type: one of articlefeedback, codeupdate, codediff, coderevisionupdate, flagconfig, review, feedthreads, threadaction, mwreleases</tt>, opensearch</tt>, stabilize</tt>, login</tt>, logout</tt>, query</tt>, expandtemplates</tt>, parse</tt>, feedwatchlist</tt>, help</tt>, paraminfo</tt>, rsd</tt>, purge</tt>, rollback</tt>, delete</tt>, undelete</tt>, <tt>protect</tt>, <tt>block</tt>, <tt>unblock</tt>, <tt>move</tt>, <tt>edit</tt>, <tt>upload</tt>, <tt>emailuser</tt>, <tt>watch</tt>, <tt>patrol</tt>, <tt>import</tt>, <tt>userrights</tt>


 * format – The format of the output.
 * Type: one of <tt>json</tt>, <tt>jsonfm</tt>, <tt>php</tt>, <tt>phpfm</tt>, <tt>wddx</tt>, <tt>wddxfm</tt>, <tt>xml</tt>, <tt>xmlfm</tt>, <tt>yaml</tt>, <tt>yamlfm</tt>, <tt>rawfm</tt>, <tt>txt</tt>, <tt>txtfm</tt>, <tt>dbg</tt>, <tt>dbgfm</tt>, <tt>dump</tt>, <tt>dumpfm</tt>


 * maxage – Set the max-age header to this many seconds. Errors are never cached . Type: integer
 * maxlag – Maximum lag . Type: integer
 * requestid – Request ID to distinguish requests. This will just be output back to you . Type: string
 * servedby – Include the hostname that served the request in the results. Unconditionally shown on error . Type: bool
 * smaxage – Set the s-maxage header to this many seconds. Errors are never cached . Type: integer
 * version – When showing help, include version for each module . Type: bool

Errors Codes

 * maxlag – Waiting for host: x seconds lagged.
 * maxlag – Waiting for a database server: x seconds lagged.
 * readonly – The wiki is currently in read-only mode.
 * unknown_action – The API requires a valid action parameter.
 * unknown_format – Unrecognized format: format.