{
	"error": {
		"code": "unknown_action",
		"info": "Unrecognized value for parameter 'action': query",
		"*": "\n  \n  \n  ******************************************************************\n  **                                                              **\n  **  This is an auto-generated MediaWiki API documentation page  **\n  **                                                              **\n  **                  Documentation and Examples:                 **\n  **               http:\/\/www.mediawiki.org\/wiki\/API              **\n  **                                                              **\n  ******************************************************************\n  \n  Status:          All features shown on this page should be working, but the API\n                   is still in active development, and  may change at any time.\n                   Make sure to monitor our mailing list for any updates.\n  \n  Documentation:   http:\/\/www.mediawiki.org\/wiki\/API\n  Mailing list:    http:\/\/lists.wikimedia.org\/mailman\/listinfo\/mediawiki-api\n  Bugs & Requests: http:\/\/bugzilla.wikimedia.org\/buglist.cgi?component=API&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=bugs.delta_ts\n  \n  \n  \n  \n  \nParameters:\n  format         - The format of the output\n                   One value: json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm\n                   Default: xmlfm\n  action         - What action you would like to perform\n                   One value: login, logout, help, rollback, delete, undelete, protect, block, unblock, move, edit, emailuser, watch, patrol\n                   Default: help\n  version        - When showing help, include version for each module\n  maxlag         - Maximum lag\n  smaxage        - Set the s-maxage header to this many seconds. Errors are never cached\n                   Default: 0\n  maxage         - Set the max-age header to this many seconds. Errors are never cached\n                   Default: 0\n  requestid      - Request ID to distinguish requests. This will just be output back to you\n\n\n*** *** *** *** *** *** *** *** *** ***  Modules  *** *** *** *** *** *** *** *** *** *** \n\n* action=login (lg) *\n  This module is used to login and get the authentication tokens. \n  In the event of a successful log-in, a cookie will be attached\n  to your session. In the event of a failed log-in, you will not \n  be able to attempt another log-in through this method for 5 seconds.\n  This is to prevent password guessing by automated password crackers.\n\nThis module only accepts POST requests.\nParameters:\n  lgname         - User Name\n  lgpassword     - Password\n  lgdomain       - Domain (optional)\nExample:\n  api.php?action=login&lgname=user&lgpassword=password\n\n* action=logout *\n  This module is used to logout and clear session data\nParameters:\nExample:\n  api.php?action=logout\n\n* action=help *\n  Display this help screen.\n\n* action=rollback *\n  Undo the last edit to the page. If the last user who edited the page made multiple edits in a row,\n  they will all be rolled back.\n\nThis module only accepts POST requests.\nParameters:\n  title          - Title of the page you want to rollback.\n  user           - Name of the user whose edits are to be rolled back. If set incorrectly, you'll get a badtoken error.\n  token          - A rollback token previously retrieved through prop=revisions\n  summary        - Custom edit summary. If not set, default summary will be used.\n  markbot        - Mark the reverted edits and the revert as bot edits\nExamples:\n  api.php?action=rollback&title=Main%20Page&user=Catrope&token=123ABC\n  api.php?action=rollback&title=Main%20Page&user=217.121.114.116&token=123ABC&summary=Reverting%20vandalism&markbot=1\n\n* action=delete *\n  Delete a page.\n\nThis module only accepts POST requests.\nParameters:\n  title          - Title of the page you want to delete. Cannot be used together with pageid\n  pageid         - Page ID of the page you want to delete. Cannot be used together with title\n  token          - A delete token previously retrieved through prop=info\n  reason         - Reason for the deletion. If not set, an automatically generated reason will be used.\n  watch          - Add the page to your watchlist\n  unwatch        - Remove the page from your watchlist\n  oldimage       - The name of the old image to delete as provided by iiprop=archivename\nExamples:\n  api.php?action=delete&title=Main%20Page&token=123ABC\n  api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move\n\n* action=undelete *\n  Restore certain revisions of a deleted page. A list of deleted revisions (including timestamps) can be\n  retrieved through list=deletedrevs\n\nThis module only accepts POST requests.\nParameters:\n  title          - Title of the page you want to restore.\n  token          - An undelete token previously retrieved through list=deletedrevs\n  reason         - Reason for restoring (optional)\n                   Default: \n  timestamps     - Timestamps of the revisions to restore. If not set, all revisions will be restored.\nExamples:\n  api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page\n  api.php?action=undelete&title=Main%20Page&token=123ABC&timestamps=20070703220045|20070702194856\n\n* action=protect *\n  Change the protection level of a page.\n\nThis module only accepts POST requests.\nParameters:\n  title          - Title of the page you want to (un)protect.\n  token          - A protect token previously retrieved through prop=info\n  protections    - Pipe-separated list of protection levels, formatted action=group (e.g. edit=sysop)\n  expiry         - Expiry timestamps. If only one timestamp is set, it'll be used for all protections.\n                   Use 'infinite', 'indefinite' or 'never', for a neverexpiring protection.\n                   Default: infinite\n  reason         - Reason for (un)protecting (optional)\n                   Default: \n  cascade        - Enable cascading protection (i.e. protect pages included in this page)\n                   Ignored if not all protection levels are 'sysop' or 'protect'\nExamples:\n  api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade&expiry=20070901163000|never\n  api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=all|move=all&reason=Lifting%20restrictions\n\n* action=block *\n  Block a user.\n\nThis module only accepts POST requests.\nParameters:\n  user           - Username, IP address or IP range you want to block\n  token          - A block token previously obtained through the gettoken parameter or prop=info\n  gettoken       - If set, a block token will be returned, and no other action will be taken\n  expiry         - Relative expiry time, e.g. '5 months' or '2 weeks'. If set to 'infinite', 'indefinite' or 'never', the block will never expire.\n                   Default: never\n  reason         - Reason for block (optional)\n  anononly       - Block anonymous users only (i.e. disable anonymous edits for this IP)\n  nocreate       - Prevent account creation\n  autoblock      - Automatically block the last used IP address, and any subsequent IP addresses they try to login from\n  noemail        - Prevent user from sending e-mail through the wiki. (Requires the \"blockemail\" right.)\n  hidename       - Hide the username from the block log. (Requires the \"hideuser\" right.)\n  allowusertalk  - Allow the user to edit their own talk page (depends on $wgBlockAllowsUTEdit)\n  reblock        - If the user is already blocked, overwrite the existing block\nExamples:\n  api.php?action=block&user=123.5.5.12&expiry=3%20days&reason=First%20strike\n  api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate&autoblock&noemail\n\n* action=unblock *\n  Unblock a user.\n\nThis module only accepts POST requests.\nParameters:\n  id             - ID of the block you want to unblock (obtained through list=blocks). Cannot be used together with user\n  user           - Username, IP address or IP range you want to unblock. Cannot be used together with id\n  token          - An unblock token previously obtained through the gettoken parameter or prop=info\n  gettoken       - If set, an unblock token will be returned, and no other action will be taken\n  reason         - Reason for unblock (optional)\nExamples:\n  api.php?action=unblock&id=105\n  api.php?action=unblock&user=Bob&reason=Sorry%20Bob\n\n* action=move *\n  Move a page.\n\nThis module only accepts POST requests.\nParameters:\n  from           - Title of the page you want to move. Cannot be used together with fromid.\n  fromid         - Page ID of the page you want to move. Cannot be used together with from.\n  to             - Title you want to rename the page to.\n  token          - A move token previously retrieved through prop=info\n  reason         - Reason for the move (optional).\n  movetalk       - Move the talk page, if it exists.\n  noredirect     - Don't create a redirect\n  watch          - Add the page and the redirect to your watchlist\n  unwatch        - Remove the page and the redirect from your watchlist\nExample:\n  api.php?action=move&from=Exampel&to=Example&token=123ABC&reason=Misspelled%20title&movetalk&noredirect\n\n* action=edit *\n  Create and edit pages.\n\nThis module only accepts POST requests.\nParameters:\n  title          - Page title\n  section        - Section number. 0 for the top section, 'new' for a new section\n  text           - Page content\n  token          - Edit token. You can get one of these through prop=info\n  summary        - Edit summary. Also section title when section=new\n  minor          - Minor edit\n  notminor       - Non-minor edit\n  bot            - Mark this edit as bot\n  basetimestamp  - Timestamp of the base revision (gotten through prop=revisions&rvprop=timestamp).\n                   Used to detect edit conflicts; leave unset to ignore conflicts.\n  starttimestamp - Timestamp when you obtained the edit token.\n                   Used to detect edit conflicts; leave unset to ignore conflicts.\n  recreate       - Override any errors about the article having been deleted in the meantime\n  createonly     - Don't edit the page if it exists already\n  nocreate       - Throw an error if the page doesn't exist\n  captchaword    - Answer to the CAPTCHA\n  captchaid      - CAPTCHA ID from previous request\n  watch          - Add the page to your watchlist\n  unwatch        - Remove the page from your watchlist\n  md5            - The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated.\n                   If set, the edit won't be done unless the hash is correct\n  prependtext    - Add this text to the beginning of the page. Overrides text.\n                   Don't use together with section: that won't do what you expect.\n  appendtext     - Add this text to the end of the page. Overrides text\nExamples:\n  Edit a page (anonymous user):\n      api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&basetimestamp=20070824123454&token=%2B\\\n\n* action=emailuser *\n  Email a user.\n\nThis module only accepts POST requests.\nParameters:\n  target         - User to send email to\n  subject        - Subject header\n  text           - Mail body\n  token          - A token previously acquired via prop=info\n  ccme           - Send a copy of this mail to me\nExample:\n  api.php?action=emailuser&target=WikiSysop&text=Content\n\n* action=watch *\n  Add or remove a page from\/to the current user's watchlist\nParameters:\n  title          - The page to (un)watch\n  unwatch        - If set the page will be unwatched rather than watched\nExamples:\n  api.php?action=watch&title=Main_Page\n  api.php?action=watch&title=Main_Page&unwatch\n\n* action=patrol *\n  Patrol a page or revision. \nParameters:\n  token          - Patrol token obtained from list=recentchanges\n  rcid           - Recentchanges ID to patrol\nExample:\n  api.php?action=patrol&token=123abc&rcid=230672766\n\n\n*** *** *** *** *** *** *** *** *** ***  Permissions *** *** *** *** *** *** *** *** *** *** \n\n* writeapi *\n  Use of the write API\nGranted to:\n  all, user, bot\n* apihighlimits *\n  Use higher limits in API queries (Slow queries: 500 results; Fast queries: 5000 results). The limits for slow queries also apply to multivalue parameters.\nGranted to:\n  bot, sysop\n\n*** *** *** *** *** *** *** *** *** ***  Formats  *** *** *** *** *** *** *** *** *** *** \n\n* format=json *\n  Output data in JSON format\nParameters:\n  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=json\n\n* format=jsonfm *\n  Output data in JSON format (pretty-print in HTML)\nParameters:\n  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=jsonfm\n\n* format=php *\n  Output data in serialized PHP format\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=php\n\n* format=phpfm *\n  Output data in serialized PHP format (pretty-print in HTML)\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=phpfm\n\n* format=wddx *\n  Output data in WDDX format\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddx\n\n* format=wddxfm *\n  Output data in WDDX format (pretty-print in HTML)\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=wddxfm\n\n* format=xml *\n  Output data in XML format\nParameters:\n  xmldoublequote - If specified, double quotes all attributes and content.\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml\n\n* format=xmlfm *\n  Output data in XML format (pretty-print in HTML)\nParameters:\n  xmldoublequote - If specified, double quotes all attributes and content.\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=xmlfm\n\n* format=yaml *\n  Output data in YAML format\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=yaml\n\n* format=yamlfm *\n  Output data in YAML format (pretty-print in HTML)\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=yamlfm\n\n* format=rawfm *\n  Output data with the debuging elements in JSON format (pretty-print in HTML)\nParameters:\n  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=rawfm\n\n* format=txt *\n  Output data in PHP's print_r() format\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=txt\n\n* format=txtfm *\n  Output data in PHP's print_r() format (pretty-print in HTML)\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=txtfm\n\n* format=dbg *\n  Output data in PHP's var_export() format\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbg\n\n* format=dbgfm *\n  Output data in PHP's var_export() format (pretty-print in HTML)\nExample:\n  api.php?action=query&meta=siteinfo&siprop=namespaces&format=dbgfm\n\n\n*** Credits: ***\n   API developers:\n       Roan Kattouw <Firstname>.<Lastname>@home.nl (lead developer Sep 2007-present)\n       Victor Vasiliev - vasilvv at gee mail dot com\n       Bryan Tong Minh - bryan . tongminh @ gmail . com\n       Yuri Astrakhan <Firstname><Lastname>@gmail.com (creator, lead developer Sep 2006-Sep 2007)\n   \n   Please send your comments, suggestions and questions to mediawiki-api@lists.wikimedia.org\n   or file a bug report at http:\/\/bugzilla.wikimedia.org\/\n"
	}
}