Sorry

This feed does not validate.

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

Source: https://wiki.chem.gwu.edu/default/api.php?action=https%3A//jfme.ru

  1. \<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>MediaWiki API</title>
  5. </head>
  6. <body>
  7. <pre>
  8. <span style="color:blue;">&lt;?xml version=&quot;1.0&quot;?&gt;</span>
  9. <span style="color:blue;">&lt;api&gt;</span>
  10.  <span style="color:blue;">&lt;error code=&quot;unknown_action&quot; info=&quot;Unrecognized value for parameter &amp;#039;action&amp;#039;: <a href="https://jfme.ru">https://jfme.ru</a>&quot; xml:space=&quot;preserve&quot;&gt;</span>
  11.  
  12.  
  13.  <b>******************************************************************</b>
  14.  <b>**                                                              **</b>
  15.  <b>**  This is an auto-generated MediaWiki API documentation page  **</b>
  16.  <b>**                                                              **</b>
  17.  <b>**                  Documentation and Examples:                 **</b>
  18.  **               <a href="http://www.mediawiki.org/wiki/API">http://www.mediawiki.org/wiki/API</a>              **
  19.  <b>**                                                              **</b>
  20.  <b>******************************************************************</b>
  21.  
  22.  Status:          All features shown on this page should be working, but the API
  23.                   is still in active development, and  may change at any time.
  24.                   Make sure to monitor our mailing list for any updates.
  25.  
  26.  Documentation:   <a href="http://www.mediawiki.org/wiki/API">http://www.mediawiki.org/wiki/API</a>
  27.  Mailing list:    <a href="http://lists.wikimedia.org/mailman/listinfo/mediawiki-api">http://lists.wikimedia.org/mailman/listinfo/mediawiki-api</a>
  28.  Bugs &amp; Requests: <a href="http://bugzilla.wikimedia.org/buglist.cgi?component=API&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;order=bugs.delta_ts">http://bugzilla.wikimedia.org/buglist.cgi?component=API&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;order=bugs.delta_ts</a>
  29.  
  30.  
  31.  
  32.  
  33.  
  34. Parameters:
  35.  format         - The format of the output
  36.                   One value: json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm
  37.                   Default: xmlfm
  38.  action         - What action you would like to perform
  39.                   One value: login, logout, query, expandtemplates, parse, opensearch, feedwatchlist, help, paraminfo, purge, rollback, delete, undelete, protect, block, unblock, move, edit, upload, emailuser, watch, patrol, import, userrights
  40.                   Default: help
  41.  version        - When showing help, include version for each module
  42.  maxlag         - Maximum lag
  43.  smaxage        - Set the s-maxage header to this many seconds. Errors are never cached
  44.                   Default: 0
  45.  maxage         - Set the max-age header to this many seconds. Errors are never cached
  46.                   Default: 0
  47.  requestid      - Request ID to distinguish requests. This will just be output back to you
  48.  
  49.  
  50. <b>*** *** *** *** *** *** *** *** *** ***  Modules  *** *** *** *** *** *** *** *** *** ***</b>
  51.  
  52. <b>* action=login (lg) *</b>
  53.  This module is used to login and get the authentication tokens.
  54.  In the event of a successful log-in, a cookie will be attached
  55.  to your session. In the event of a failed log-in, you will not
  56.  be able to attempt another log-in through this method for 5 seconds.
  57.  This is to prevent password guessing by automated password crackers.
  58.  
  59. This module only accepts POST requests.
  60. Parameters:
  61.  lgname         - User Name
  62.  lgpassword     - Password
  63.  lgdomain       - Domain (optional)
  64.  lgtoken        - Login token obtained in first request
  65. Example:
  66.  <a href="api.php?action=login&amp;lgname=user&amp;lgpassword=password">api.php?action=login&amp;lgname=user&amp;lgpassword=password</a>
  67.  
  68. <b>* action=logout *</b>
  69.  This module is used to logout and clear session data
  70. Example:
  71.  <a href="api.php?action=logout">api.php?action=logout</a>
  72.  
  73. <b>* action=query *</b>
  74.  Query API module allows applications to get needed pieces of data from the MediaWiki databases,
  75.  and is loosely based on the old query.php interface.
  76.  All data modifications will first have to use query to acquire a token to prevent abuse from malicious sites.
  77.  
  78. This module requires read rights.
  79. Parameters:
  80.  titles         - A list of titles to work on
  81.  pageids        - A list of page IDs to work on
  82.  revids         - A list of revision IDs to work on
  83.  prop           - Which properties to get for the titles/revisions/pageids
  84.                   Values (separate with '|'): info, revisions, links, langlinks, images, imageinfo, templates, categories, extlinks, categoryinfo, duplicatefiles
  85.  list           - Which lists to get
  86.                   Values (separate with '|'): allimages, allpages, alllinks, allcategories, allusers, backlinks, blocks, categorymembers, deletedrevs, embeddedin, imageusage, logevents, recentchanges, search, tags, usercontribs, watchlist, watchlistraw, exturlusage, users, random, protectedtitles
  87.  meta           - Which meta data to get about the site
  88.                   Values (separate with '|'): siteinfo, userinfo, allmessages
  89.  generator      - Use the output of a list as the input for other prop/list/meta items
  90.                   NOTE: generator parameter names must be prefixed with a 'g', see examples.
  91.                   One value: links, images, templates, categories, duplicatefiles, allimages, allpages, alllinks, allcategories, backlinks, categorymembers, embeddedin, imageusage, search, watchlist, watchlistraw, exturlusage, random, protectedtitles
  92.  redirects      - Automatically resolve redirects
  93.  indexpageids   - Include an additional pageids section listing all returned page IDs.
  94.  export         - Export the current revisions of all given or generated pages
  95.  exportnowrap   - Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with export
  96. Examples:
  97.  <a href="api.php?action=query&amp;prop=revisions&amp;meta=siteinfo&amp;titles=Main%20Page&amp;rvprop=user|comment">api.php?action=query&amp;prop=revisions&amp;meta=siteinfo&amp;titles=Main%20Page&amp;rvprop=user|comment</a>
  98.  <a href="api.php?action=query&amp;generator=allpages&amp;gapprefix=API/&amp;prop=revisions">api.php?action=query&amp;generator=allpages&amp;gapprefix=API/&amp;prop=revisions</a>
  99.  
  100. --- --- --- --- --- --- --- ---  Query: Prop  --- --- --- --- --- --- --- ---
  101.  
  102. <b>* prop=info (in) *</b>
  103.  Get basic page information such as namespace, title, last touched date, ...
  104.  
  105. This module requires read rights.
  106. Parameters:
  107.  inprop         - Which additional properties to get:
  108.                    protection   - List the protection level of each page
  109.                    talkid       - The page ID of the talk page for each non-talk page
  110.                    watched      - List the watched status of each page
  111.                    subjectid    - The page ID of the parent page for each talk page
  112.                    url          - Gives a full URL to the page, and also an edit URL
  113.                    readable     - Whether the user can read this page
  114.                    preload      - Gives the text returned by EditFormPreloadText
  115.                   Values (separate with '|'): protection, talkid, watched, subjectid, url, readable, preload
  116.  intoken        - Request a token to perform a data-modifying action on a page
  117.                   Values (separate with '|'): edit, delete, protect, move, block, unblock, email, import
  118.  incontinue     - When more results are available, use this to continue
  119. Examples:
  120.  <a href="api.php?action=query&amp;prop=info&amp;titles=Main%20Page">api.php?action=query&amp;prop=info&amp;titles=Main%20Page</a>
  121.  <a href="api.php?action=query&amp;prop=info&amp;inprop=protection&amp;titles=Main%20Page">api.php?action=query&amp;prop=info&amp;inprop=protection&amp;titles=Main%20Page</a>
  122.  
  123. <b>* prop=revisions (rv) *</b>
  124.  Get revision information.
  125.  This module may be used in several ways:
  126.   1) Get data about a set of pages (last revision), by setting titles or pageids parameter.
  127.   2) Get revisions for one given page, by using titles/pageids with start/end/limit params.
  128.   3) Get data about a set of revisions by setting their IDs with revids parameter.
  129.  All parameters marked as (enum) may only be used with a single page (#2).
  130.  
  131. This module requires read rights.
  132. Parameters:
  133.  rvprop         - Which properties to get for each revision.
  134.                   Values (separate with '|'): ids, flags, timestamp, user, size, comment, parsedcomment, content, tags
  135.                   Default: ids|timestamp|flags|comment|user
  136.  rvlimit        - Limit how many revisions will be returned (enum)
  137.                   No more than 500 (5000 for bots) allowed.
  138.  rvstartid      - From which revision id to start enumeration (enum)
  139.  rvendid        - Stop revision enumeration on this revid (enum)
  140.  rvstart        - From which revision timestamp to start enumeration (enum)
  141.  rvend          - Enumerate up to this timestamp (enum)
  142.  rvdir          - Direction of enumeration - towards &quot;newer&quot; or &quot;older&quot; revisions (enum)
  143.                   One value: newer, older
  144.                   Default: older
  145.  rvuser         - Only include revisions made by user
  146.  rvexcludeuser  - Exclude revisions made by user
  147.  rvtag          - Only list revisions tagged with this tag
  148.  rvexpandtemplates - Expand templates in revision content
  149.  rvgeneratexml  - Generate XML parse tree for revision content
  150.  rvsection      - Only retrieve the content of this section
  151.  rvtoken        - Which tokens to obtain for each revision
  152.                   Values (separate with '|'): rollback
  153.  rvcontinue     - When more results are available, use this to continue
  154.  rvdiffto       - Revision ID to diff each revision to.
  155.                   Use &quot;prev&quot;, &quot;next&quot; and &quot;cur&quot; for the previous, next and current revision respectively.
  156.  rvdifftotext   - Text to diff each revision to. Only diffs a limited number of revisions.
  157.                   Overrides diffto. If rvsection is set, only that section will be diffed against this text.
  158. Examples:
  159.  Get data with content for the last revision of titles &quot;API&quot; and &quot;Main Page&quot;:
  160.    <a href="api.php?action=query&amp;prop=revisions&amp;titles=API|Main%20Page&amp;rvprop=timestamp|user|comment|content">api.php?action=query&amp;prop=revisions&amp;titles=API|Main%20Page&amp;rvprop=timestamp|user|comment|content</a>
  161.  Get last 5 revisions of the &quot;Main Page&quot;:
  162.    <a href="api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment">api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment</a>
  163.  Get first 5 revisions of the &quot;Main Page&quot;:
  164.    <a href="api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment&amp;rvdir=newer">api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment&amp;rvdir=newer</a>
  165.  Get first 5 revisions of the &quot;Main Page&quot; made after 2006-05-01:
  166.    <a href="api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment&amp;rvdir=newer&amp;rvstart=20060501000000">api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment&amp;rvdir=newer&amp;rvstart=20060501000000</a>
  167.  Get first 5 revisions of the &quot;Main Page&quot; that were not made made by anonymous user &quot;127.0.0.1&quot;
  168.    <a href="api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment&amp;rvexcludeuser=127.0.0.1">api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment&amp;rvexcludeuser=127.0.0.1</a>
  169.  Get first 5 revisions of the &quot;Main Page&quot; that were made by the user &quot;MediaWiki default&quot;
  170.    <a href="api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment&amp;rvuser=MediaWiki%20default">api.php?action=query&amp;prop=revisions&amp;titles=Main%20Page&amp;rvlimit=5&amp;rvprop=timestamp|user|comment&amp;rvuser=MediaWiki%20default</a>
  171.  
  172. <b>* prop=links (pl) *</b>
  173.  Returns all links from the given page(s)
  174.  
  175. This module requires read rights.
  176. Parameters:
  177.  plnamespace    - Show links in this namespace(s) only
  178.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  179.  pllimit        - How many links to return
  180.                   No more than 500 (5000 for bots) allowed.
  181.                   Default: 10
  182.  plcontinue     - When more results are available, use this to continue
  183. Examples:
  184.  Get links from the [[Main Page]]:
  185.    <a href="api.php?action=query&amp;prop=links&amp;titles=Main%20Page">api.php?action=query&amp;prop=links&amp;titles=Main%20Page</a>
  186.  Get information about the link pages in the [[Main Page]]:
  187.    <a href="api.php?action=query&amp;generator=links&amp;titles=Main%20Page&amp;prop=info">api.php?action=query&amp;generator=links&amp;titles=Main%20Page&amp;prop=info</a>
  188.  Get links from the Main Page in the User and Template namespaces:
  189.    <a href="api.php?action=query&amp;prop=links&amp;titles=Main%20Page&amp;plnamespace=2|10">api.php?action=query&amp;prop=links&amp;titles=Main%20Page&amp;plnamespace=2|10</a>
  190. Generator:
  191.  This module may be used as a generator
  192.  
  193. <b>* prop=langlinks (ll) *</b>
  194.  Returns all interlanguage links from the given page(s)
  195.  
  196. This module requires read rights.
  197. Parameters:
  198.  lllimit        - How many langlinks to return
  199.                   No more than 500 (5000 for bots) allowed.
  200.                   Default: 10
  201.  llcontinue     - When more results are available, use this to continue
  202. Examples:
  203.  Get interlanguage links from the [[Main Page]]:
  204.    <a href="api.php?action=query&amp;prop=langlinks&amp;titles=Main%20Page&amp;redirects">api.php?action=query&amp;prop=langlinks&amp;titles=Main%20Page&amp;redirects</a>
  205.  
  206. <b>* prop=images (im) *</b>
  207.  Returns all images contained on the given page(s)
  208.  
  209. This module requires read rights.
  210. Parameters:
  211.  imlimit        - How many images to return
  212.                   No more than 500 (5000 for bots) allowed.
  213.                   Default: 10
  214.  imcontinue     - When more results are available, use this to continue
  215. Examples:
  216.  Get a list of images used in the [[Main Page]]:
  217.    <a href="api.php?action=query&amp;prop=images&amp;titles=Main%20Page">api.php?action=query&amp;prop=images&amp;titles=Main%20Page</a>
  218.  Get information about all images used in the [[Main Page]]:
  219.    <a href="api.php?action=query&amp;generator=images&amp;titles=Main%20Page&amp;prop=info">api.php?action=query&amp;generator=images&amp;titles=Main%20Page&amp;prop=info</a>
  220. Generator:
  221.  This module may be used as a generator
  222.  
  223. <b>* prop=imageinfo (ii) *</b>
  224.  Returns image information and upload history
  225.  
  226. This module requires read rights.
  227. Parameters:
  228.  iiprop         - What image information to get.
  229.                   Values (separate with '|'): timestamp, user, comment, url, size, dimensions, sha1, mime, metadata, archivename, bitdepth
  230.                   Default: timestamp|user
  231.  iilimit        - How many image revisions to return
  232.                   No more than 500 (5000 for bots) allowed.
  233.                   Default: 1
  234.  iistart        - Timestamp to start listing from
  235.  iiend          - Timestamp to stop listing at
  236.  iiurlwidth     - If iiprop=url is set, a URL to an image scaled to this width will be returned.
  237.                   Only the current version of the image can be scaled.
  238.                   Default: -1
  239.  iiurlheight    - Similar to iiurlwidth. Cannot be used without iiurlwidth
  240.                   Default: -1
  241.  iicontinue     - When more results are available, use this to continue
  242. Examples:
  243.  <a href="api.php?action=query&amp;titles=File:Albert%20Einstein%20Head.jpg&amp;prop=imageinfo">api.php?action=query&amp;titles=File:Albert%20Einstein%20Head.jpg&amp;prop=imageinfo</a>
  244.  <a href="api.php?action=query&amp;titles=File:Test.jpg&amp;prop=imageinfo&amp;iilimit=50&amp;iiend=20071231235959&amp;iiprop=timestamp|user|url">api.php?action=query&amp;titles=File:Test.jpg&amp;prop=imageinfo&amp;iilimit=50&amp;iiend=20071231235959&amp;iiprop=timestamp|user|url</a>
  245.  
  246. <b>* prop=templates (tl) *</b>
  247.  Returns all templates from the given page(s)
  248.  
  249. This module requires read rights.
  250. Parameters:
  251.  tlnamespace    - Show templates in this namespace(s) only
  252.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  253.  tllimit        - How many templates to return
  254.                   No more than 500 (5000 for bots) allowed.
  255.                   Default: 10
  256.  tlcontinue     - When more results are available, use this to continue
  257. Examples:
  258.  Get templates from the [[Main Page]]:
  259.    <a href="api.php?action=query&amp;prop=templates&amp;titles=Main%20Page">api.php?action=query&amp;prop=templates&amp;titles=Main%20Page</a>
  260.  Get information about the template pages in the [[Main Page]]:
  261.    <a href="api.php?action=query&amp;generator=templates&amp;titles=Main%20Page&amp;prop=info">api.php?action=query&amp;generator=templates&amp;titles=Main%20Page&amp;prop=info</a>
  262.  Get templates from the Main Page in the User and Template namespaces:
  263.    <a href="api.php?action=query&amp;prop=templates&amp;titles=Main%20Page&amp;tlnamespace=2|10">api.php?action=query&amp;prop=templates&amp;titles=Main%20Page&amp;tlnamespace=2|10</a>
  264. Generator:
  265.  This module may be used as a generator
  266.  
  267. <b>* prop=categories (cl) *</b>
  268.  List all categories the page(s) belong to
  269.  
  270. This module requires read rights.
  271. Parameters:
  272.  clprop         - Which additional properties to get for each category.
  273.                   Values (separate with '|'): sortkey, timestamp, hidden
  274.  clshow         - Which kind of categories to show
  275.                   Values (separate with '|'): hidden, !hidden
  276.  cllimit        - How many categories to return
  277.                   No more than 500 (5000 for bots) allowed.
  278.                   Default: 10
  279.  clcontinue     - When more results are available, use this to continue
  280.  clcategories   - Only list these categories. Useful for checking whether a certain page is in a certain category
  281. Examples:
  282.  Get a list of categories [[Albert Einstein]] belongs to:
  283.    <a href="api.php?action=query&amp;prop=categories&amp;titles=Albert%20Einstein">api.php?action=query&amp;prop=categories&amp;titles=Albert%20Einstein</a>
  284.  Get information about all categories used in the [[Albert Einstein]]:
  285.    <a href="api.php?action=query&amp;generator=categories&amp;titles=Albert%20Einstein&amp;prop=info">api.php?action=query&amp;generator=categories&amp;titles=Albert%20Einstein&amp;prop=info</a>
  286. Generator:
  287.  This module may be used as a generator
  288.  
  289. <b>* prop=extlinks (el) *</b>
  290.  Returns all external urls (not interwikies) from the given page(s)
  291.  
  292. This module requires read rights.
  293. Parameters:
  294.  ellimit        - How many links to return
  295.                   No more than 500 (5000 for bots) allowed.
  296.                   Default: 10
  297.  eloffset       - When more results are available, use this to continue
  298. Examples:
  299.  Get a list of external links on the [[Main Page]]:
  300.    <a href="api.php?action=query&amp;prop=extlinks&amp;titles=Main%20Page">api.php?action=query&amp;prop=extlinks&amp;titles=Main%20Page</a>
  301.  
  302. <b>* prop=categoryinfo (ci) *</b>
  303.  Returns information about the given categories
  304.  
  305. This module requires read rights.
  306. Parameters:
  307.  cicontinue     - When more results are available, use this to continue
  308. Example:
  309.  <a href="api.php?action=query&amp;prop=categoryinfo&amp;titles=Category:Foo|Category:Bar">api.php?action=query&amp;prop=categoryinfo&amp;titles=Category:Foo|Category:Bar</a>
  310.  
  311. <b>* prop=duplicatefiles (df) *</b>
  312.  List all files that are duplicates of the given file(s).
  313.  
  314. This module requires read rights.
  315. Parameters:
  316.  dflimit        - How many files to return
  317.                   No more than 500 (5000 for bots) allowed.
  318.                   Default: 10
  319.  dfcontinue     - When more results are available, use this to continue
  320. Examples:
  321.  <a href="api.php?action=query&amp;titles=File:Albert_Einstein_Head.jpg&amp;prop=duplicatefiles">api.php?action=query&amp;titles=File:Albert_Einstein_Head.jpg&amp;prop=duplicatefiles</a>
  322.  <a href="api.php?action=query&amp;generator=allimages&amp;prop=duplicatefiles">api.php?action=query&amp;generator=allimages&amp;prop=duplicatefiles</a>
  323. Generator:
  324.  This module may be used as a generator
  325.  
  326. --- --- --- --- --- --- --- ---  Query: List  --- --- --- --- --- --- --- ---
  327.  
  328. <b>* list=allimages (ai) *</b>
  329.  Enumerate all images sequentially
  330.  
  331. This module requires read rights.
  332. Parameters:
  333.  aifrom         - The image title to start enumerating from.
  334.  aiprefix       - Search for all image titles that begin with this value.
  335.  aiminsize      - Limit to images with at least this many bytes
  336.  aimaxsize      - Limit to images with at most this many bytes
  337.  ailimit        - How many total images to return.
  338.                   No more than 500 (5000 for bots) allowed.
  339.                   Default: 10
  340.  aidir          - The direction in which to list
  341.                   One value: ascending, descending
  342.                   Default: ascending
  343.  aisha1         - SHA1 hash of image
  344.  aisha1base36   - SHA1 hash of image in base 36 (used in MediaWiki)
  345.  aiprop         - Which properties to get
  346.                   Values (separate with '|'): timestamp, user, comment, url, size, dimensions, sha1, mime, metadata, archivename, bitdepth
  347.                   Default: timestamp|url
  348. Examples:
  349.  Simple Use
  350.   Show a list of images starting at the letter &quot;B&quot;
  351.    <a href="api.php?action=query&amp;list=allimages&amp;aifrom=B">api.php?action=query&amp;list=allimages&amp;aifrom=B</a>
  352.  Using as Generator
  353.   Show info about 4 images starting at the letter &quot;T&quot;
  354.    <a href="api.php?action=query&amp;generator=allimages&amp;gailimit=4&amp;gaifrom=T&amp;prop=imageinfo">api.php?action=query&amp;generator=allimages&amp;gailimit=4&amp;gaifrom=T&amp;prop=imageinfo</a>
  355. Generator:
  356.  This module may be used as a generator
  357.  
  358. <b>* list=allpages (ap) *</b>
  359.  Enumerate all pages sequentially in a given namespace
  360.  
  361. This module requires read rights.
  362. Parameters:
  363.  apfrom         - The page title to start enumerating from.
  364.  apprefix       - Search for all page titles that begin with this value.
  365.  apnamespace    - The namespace to enumerate.
  366.                   One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  367.                   Default: 0
  368.  apfilterredir  - Which pages to list.
  369.                   One value: all, redirects, nonredirects
  370.                   Default: all
  371.  apminsize      - Limit to pages with at least this many bytes
  372.  apmaxsize      - Limit to pages with at most this many bytes
  373.  apprtype       - Limit to protected pages only
  374.                   Values (separate with '|'): edit, move
  375.  apprlevel      - The protection level (must be used with apprtype= parameter)
  376.                   Can be empty, or Values (separate with '|'): autoconfirmed, sysop
  377.  apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype isn't set)
  378.                   One value: cascading, noncascading, all
  379.                   Default: all
  380.  aplimit        - How many total pages to return.
  381.                   No more than 500 (5000 for bots) allowed.
  382.                   Default: 10
  383.  apdir          - The direction in which to list
  384.                   One value: ascending, descending
  385.                   Default: ascending
  386.  apfilterlanglinks - Filter based on whether a page has langlinks
  387.                   One value: withlanglinks, withoutlanglinks, all
  388.                   Default: all
  389. Examples:
  390.  Simple Use
  391.   Show a list of pages starting at the letter &quot;B&quot;
  392.    <a href="api.php?action=query&amp;list=allpages&amp;apfrom=B">api.php?action=query&amp;list=allpages&amp;apfrom=B</a>
  393.  Using as Generator
  394.   Show info about 4 pages starting at the letter &quot;T&quot;
  395.    <a href="api.php?action=query&amp;generator=allpages&amp;gaplimit=4&amp;gapfrom=T&amp;prop=info">api.php?action=query&amp;generator=allpages&amp;gaplimit=4&amp;gapfrom=T&amp;prop=info</a>
  396.   Show content of first 2 non-redirect pages begining at &quot;Re&quot;
  397.    <a href="api.php?action=query&amp;generator=allpages&amp;gaplimit=2&amp;gapfilterredir=nonredirects&amp;gapfrom=Re&amp;prop=revisions&amp;rvprop=content">api.php?action=query&amp;generator=allpages&amp;gaplimit=2&amp;gapfilterredir=nonredirects&amp;gapfrom=Re&amp;prop=revisions&amp;rvprop=content</a>
  398. Generator:
  399.  This module may be used as a generator
  400.  
  401. <b>* list=alllinks (al) *</b>
  402.  Enumerate all links that point to a given namespace
  403.  
  404. This module requires read rights.
  405. Parameters:
  406.  alcontinue     - When more results are available, use this to continue.
  407.  alfrom         - The page title to start enumerating from.
  408.  alprefix       - Search for all page titles that begin with this value.
  409.  alunique       - Only show unique links. Cannot be used with generator or prop=ids
  410.  alprop         - What pieces of information to include
  411.                   Values (separate with '|'): ids, title
  412.                   Default: title
  413.  alnamespace    - The namespace to enumerate.
  414.                   One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  415.                   Default: 0
  416.  allimit        - How many total links to return.
  417.                   No more than 500 (5000 for bots) allowed.
  418.                   Default: 10
  419. Example:
  420.  <a href="api.php?action=query&amp;list=alllinks&amp;alunique&amp;alfrom=B">api.php?action=query&amp;list=alllinks&amp;alunique&amp;alfrom=B</a>
  421. Generator:
  422.  This module may be used as a generator
  423.  
  424. <b>* list=allcategories (ac) *</b>
  425.  Enumerate all categories
  426.  
  427. This module requires read rights.
  428. Parameters:
  429.  acfrom         - The category to start enumerating from.
  430.  acprefix       - Search for all category titles that begin with this value.
  431.  acdir          - Direction to sort in.
  432.                   One value: ascending, descending
  433.                   Default: ascending
  434.  aclimit        - How many categories to return.
  435.                   No more than 500 (5000 for bots) allowed.
  436.                   Default: 10
  437.  acprop         - Which properties to get
  438.                   Values (separate with '|'): size, hidden
  439.                   Default:
  440. Examples:
  441.  <a href="api.php?action=query&amp;list=allcategories&amp;acprop=size">api.php?action=query&amp;list=allcategories&amp;acprop=size</a>
  442.  <a href="api.php?action=query&amp;generator=allcategories&amp;gacprefix=List&amp;prop=info">api.php?action=query&amp;generator=allcategories&amp;gacprefix=List&amp;prop=info</a>
  443. Generator:
  444.  This module may be used as a generator
  445.  
  446. <b>* list=allusers (au) *</b>
  447.  Enumerate all registered users
  448.  
  449. This module requires read rights.
  450. Parameters:
  451.  aufrom         - The user name to start enumerating from.
  452.  auprefix       - Search for all page titles that begin with this value.
  453.  augroup        - Limit users to a given group name
  454.                   One value: bot, sysop, bureaucrat
  455.  auprop         - What pieces of information to include.
  456.                   `groups` property uses more server resources and may return fewer results than the limit.
  457.                   Values (separate with '|'): blockinfo, groups, editcount, registration
  458.  aulimit        - How many total user names to return.
  459.                   No more than 500 (5000 for bots) allowed.
  460.                   Default: 10
  461.  auwitheditsonly - Only list users who have made edits
  462. Example:
  463.  <a href="api.php?action=query&amp;list=allusers&amp;aufrom=Y">api.php?action=query&amp;list=allusers&amp;aufrom=Y</a>
  464.  
  465. <b>* list=backlinks (bl) *</b>
  466.  Find all pages that link to the given page
  467.  
  468. This module requires read rights.
  469. Parameters:
  470.  bltitle        - Title to search.
  471.  blcontinue     - When more results are available, use this to continue.
  472.  blnamespace    - The namespace to enumerate.
  473.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  474.  blfilterredir  - How to filter for redirects. If set to nonredirects when blredirect is enabled, this is only applied to the second level
  475.                   One value: all, redirects, nonredirects
  476.                   Default: all
  477.  bllimit        - How many total pages to return. If blredirect is enabled, limit applies to each level separately (which means you may get up to 2 * limit results).
  478.                   No more than 500 (5000 for bots) allowed.
  479.                   Default: 10
  480.  blredirect     - If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.
  481. Examples:
  482.  <a href="api.php?action=query&amp;list=backlinks&amp;bltitle=Main%20Page">api.php?action=query&amp;list=backlinks&amp;bltitle=Main%20Page</a>
  483.  <a href="api.php?action=query&amp;generator=backlinks&amp;gbltitle=Main%20Page&amp;prop=info">api.php?action=query&amp;generator=backlinks&amp;gbltitle=Main%20Page&amp;prop=info</a>
  484. Generator:
  485.  This module may be used as a generator
  486.  
  487. <b>* list=blocks (bk) *</b>
  488.  List all blocked users and IP addresses.
  489.  
  490. This module requires read rights.
  491. Parameters:
  492.  bkstart        - The timestamp to start enumerating from
  493.  bkend          - The timestamp to stop enumerating at
  494.  bkdir          - The direction in which to enumerate
  495.                   One value: newer, older
  496.                   Default: older
  497.  bkids          - Pipe-separated list of block IDs to list (optional)
  498.  bkusers        - Pipe-separated list of users to search for (optional)
  499.  bkip           - Get all blocks applying to this IP or CIDR range, including range blocks.
  500.                   Cannot be used together with bkusers. CIDR ranges broader than /16 are not accepted.
  501.  bklimit        - The maximum amount of blocks to list
  502.                   No more than 500 (5000 for bots) allowed.
  503.                   Default: 10
  504.  bkprop         - Which properties to get
  505.                   Values (separate with '|'): id, user, by, timestamp, expiry, reason, range, flags
  506.                   Default: id|user|by|timestamp|expiry|reason|flags
  507. Examples:
  508.  <a href="api.php?action=query&amp;list=blocks">api.php?action=query&amp;list=blocks</a>
  509.  <a href="api.php?action=query&amp;list=blocks&amp;bkusers=Alice|Bob">api.php?action=query&amp;list=blocks&amp;bkusers=Alice|Bob</a>
  510.  
  511. <b>* list=categorymembers (cm) *</b>
  512.  List all pages in a given category
  513.  
  514. This module requires read rights.
  515. Parameters:
  516.  cmtitle        - Which category to enumerate (required). Must include Category: prefix
  517.  cmprop         - What pieces of information to include
  518.                   Values (separate with '|'): ids, title, sortkey, timestamp
  519.                   Default: ids|title
  520.  cmnamespace    - Only include pages in these namespaces
  521.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  522.  cmcontinue     - For large categories, give the value retured from previous query
  523.  cmlimit        - The maximum number of pages to return.
  524.                   No more than 500 (5000 for bots) allowed.
  525.                   Default: 10
  526.  cmsort         - Property to sort by
  527.                   One value: sortkey, timestamp
  528.                   Default: sortkey
  529.  cmdir          - In which direction to sort
  530.                   One value: asc, desc
  531.                   Default: asc
  532.  cmstart        - Timestamp to start listing from. Can only be used with cmsort=timestamp
  533.  cmend          - Timestamp to end listing at. Can only be used with cmsort=timestamp
  534.  cmstartsortkey - Sortkey to start listing from. Can only be used with cmsort=sortkey
  535.  cmendsortkey   - Sortkey to end listing at. Can only be used with cmsort=sortkey
  536. Examples:
  537.  Get first 10 pages in [[Category:Physics]]:
  538.    <a href="api.php?action=query&amp;list=categorymembers&amp;cmtitle=Category:Physics">api.php?action=query&amp;list=categorymembers&amp;cmtitle=Category:Physics</a>
  539.  Get page info about first 10 pages in [[Category:Physics]]:
  540.    <a href="api.php?action=query&amp;generator=categorymembers&amp;gcmtitle=Category:Physics&amp;prop=info">api.php?action=query&amp;generator=categorymembers&amp;gcmtitle=Category:Physics&amp;prop=info</a>
  541. Generator:
  542.  This module may be used as a generator
  543.  
  544. <b>* list=deletedrevs (dr) *</b>
  545.  List deleted revisions.
  546.  This module operates in three modes:
  547.  1) List deleted revisions for the given title(s), sorted by timestamp
  548.  2) List deleted contributions for the given user, sorted by timestamp (no titles specified)
  549.  3) List all deleted revisions in the given namespace, sorted by title and timestamp (no titles specified, druser not set)
  550.  Certain parameters only apply to some modes and are ignored in others.
  551.  For instance, a parameter marked (1) only applies to mode 1 and is ignored in modes 2 and 3.
  552.  
  553. This module requires read rights.
  554. Parameters:
  555.  drstart        - The timestamp to start enumerating from. (1,2)
  556.  drend          - The timestamp to stop enumerating at. (1,2)
  557.  drdir          - The direction in which to enumerate. (1,2)
  558.                   One value: newer, older
  559.                   Default: older
  560.  drfrom         - Start listing at this title (3)
  561.  drcontinue     - When more results are available, use this to continue (3)
  562.  drunique       - List only one revision for each page (3)
  563.  druser         - Only list revisions by this user
  564.  drexcludeuser  - Don't list revisions by this user
  565.  drnamespace    - Only list pages in this namespace (3)
  566.                   One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  567.                   Default: 0
  568.  drlimit        - The maximum amount of revisions to list
  569.                   No more than 500 (5000 for bots) allowed.
  570.                   Default: 10
  571.  drprop         - Which properties to get
  572.                   Values (separate with '|'): revid, user, comment, parsedcomment, minor, len, content, token
  573.                   Default: user|comment
  574. Examples:
  575.  List the last deleted revisions of Main Page and Talk:Main Page, with content (mode 1):
  576.    <a href="api.php?action=query&amp;list=deletedrevs&amp;titles=Main%20Page|Talk:Main%20Page&amp;drprop=user|comment|content">api.php?action=query&amp;list=deletedrevs&amp;titles=Main%20Page|Talk:Main%20Page&amp;drprop=user|comment|content</a>
  577.  List the last 50 deleted contributions by Bob (mode 2):
  578.    <a href="api.php?action=query&amp;list=deletedrevs&amp;druser=Bob&amp;drlimit=50">api.php?action=query&amp;list=deletedrevs&amp;druser=Bob&amp;drlimit=50</a>
  579.  List the first 50 deleted revisions in the main namespace (mode 3):
  580.    <a href="api.php?action=query&amp;list=deletedrevs&amp;drdir=newer&amp;drlimit=50">api.php?action=query&amp;list=deletedrevs&amp;drdir=newer&amp;drlimit=50</a>
  581.  List the first 50 deleted pages in the Talk namespace (mode 3):
  582.    <a href="api.php?action=query&amp;list=deletedrevs&amp;drdir=newer&amp;drlimit=50&amp;drnamespace=1&amp;drunique">api.php?action=query&amp;list=deletedrevs&amp;drdir=newer&amp;drlimit=50&amp;drnamespace=1&amp;drunique</a>
  583.  
  584. <b>* list=embeddedin (ei) *</b>
  585.  Find all pages that embed (transclude) the given title
  586.  
  587. This module requires read rights.
  588. Parameters:
  589.  eititle        - Title to search.
  590.  eicontinue     - When more results are available, use this to continue.
  591.  einamespace    - The namespace to enumerate.
  592.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  593.  eifilterredir  - How to filter for redirects
  594.                   One value: all, redirects, nonredirects
  595.                   Default: all
  596.  eilimit        - How many total pages to return.
  597.                   No more than 500 (5000 for bots) allowed.
  598.                   Default: 10
  599. Examples:
  600.  <a href="api.php?action=query&amp;list=embeddedin&amp;eititle=Template:Stub">api.php?action=query&amp;list=embeddedin&amp;eititle=Template:Stub</a>
  601.  <a href="api.php?action=query&amp;generator=embeddedin&amp;geititle=Template:Stub&amp;prop=info">api.php?action=query&amp;generator=embeddedin&amp;geititle=Template:Stub&amp;prop=info</a>
  602. Generator:
  603.  This module may be used as a generator
  604.  
  605. <b>* list=imageusage (iu) *</b>
  606.  Find all pages that use the given image title.
  607.  
  608. This module requires read rights.
  609. Parameters:
  610.  iutitle        - Title to search.
  611.  iucontinue     - When more results are available, use this to continue.
  612.  iunamespace    - The namespace to enumerate.
  613.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  614.  iufilterredir  - How to filter for redirects. If set to nonredirects when iuredirect is enabled, this is only applied to the second level
  615.                   One value: all, redirects, nonredirects
  616.                   Default: all
  617.  iulimit        - How many total pages to return. If iuredirect is enabled, limit applies to each level separately (which means you may get up to 2 * limit results).
  618.                   No more than 500 (5000 for bots) allowed.
  619.                   Default: 10
  620.  iuredirect     - If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.
  621. Examples:
  622.  <a href="api.php?action=query&amp;list=imageusage&amp;iutitle=File:Albert%20Einstein%20Head.jpg">api.php?action=query&amp;list=imageusage&amp;iutitle=File:Albert%20Einstein%20Head.jpg</a>
  623.  <a href="api.php?action=query&amp;generator=imageusage&amp;giutitle=File:Albert%20Einstein%20Head.jpg&amp;prop=info">api.php?action=query&amp;generator=imageusage&amp;giutitle=File:Albert%20Einstein%20Head.jpg&amp;prop=info</a>
  624. Generator:
  625.  This module may be used as a generator
  626.  
  627. <b>* list=logevents (le) *</b>
  628.  Get events from logs.
  629.  
  630. This module requires read rights.
  631. Parameters:
  632.  leprop         - Which properties to get
  633.                   Values (separate with '|'): ids, title, type, user, timestamp, comment, parsedcomment, details, tags
  634.                   Default: ids|title|type|user|timestamp|comment|details
  635.  letype         - Filter log entries to only this type(s)
  636.                   Can be empty, or One value: block, protect, rights, delete, upload, move, import, patrol, merge, suppress, newusers
  637.  lestart        - The timestamp to start enumerating from.
  638.  leend          - The timestamp to end enumerating.
  639.  ledir          - In which direction to enumerate.
  640.                   One value: newer, older
  641.                   Default: older
  642.  leuser         - Filter entries to those made by the given user.
  643.  letitle        - Filter entries to those related to a page.
  644.  letag          - Only list event entries tagged with this tag.
  645.  lelimit        - How many total event entries to return.
  646.                   No more than 500 (5000 for bots) allowed.
  647.                   Default: 10
  648. Example:
  649.  <a href="api.php?action=query&amp;list=logevents">api.php?action=query&amp;list=logevents</a>
  650.  
  651. <b>* list=recentchanges (rc) *</b>
  652.  Enumerate recent changes
  653.  
  654. This module requires read rights.
  655. Parameters:
  656.  rcstart        - The timestamp to start enumerating from.
  657.  rcend          - The timestamp to end enumerating.
  658.  rcdir          - In which direction to enumerate.
  659.                   One value: newer, older
  660.                   Default: older
  661.  rcnamespace    - Filter log entries to only this namespace(s)
  662.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  663.  rcuser         - Only list changes by this user
  664.  rcexcludeuser  - Don't list changes by this user
  665.  rctag          - Only list changes tagged with this tag.
  666.  rcprop         - Include additional pieces of information
  667.                   Values (separate with '|'): user, comment, parsedcomment, flags, timestamp, title, ids, sizes, redirect, patrolled, loginfo, tags
  668.                   Default: title|timestamp|ids
  669.  rctoken        - Which tokens to obtain for each change
  670.                   Values (separate with '|'): patrol
  671.  rcshow         - Show only items that meet this criteria.
  672.                   For example, to see only minor edits done by logged-in users, set show=minor|!anon
  673.                   Values (separate with '|'): minor, !minor, bot, !bot, anon, !anon, redirect, !redirect, patrolled, !patrolled
  674.  rclimit        - How many total changes to return.
  675.                   No more than 500 (5000 for bots) allowed.
  676.                   Default: 10
  677.  rctype         - Which types of changes to show.
  678.                   Values (separate with '|'): edit, new, log
  679. Example:
  680.  <a href="api.php?action=query&amp;list=recentchanges">api.php?action=query&amp;list=recentchanges</a>
  681.  
  682. <b>* list=search (sr) *</b>
  683.  Perform a full text search
  684.  
  685. This module requires read rights.
  686. Parameters:
  687.  srsearch       - Search for all page titles (or content) that has this value.
  688.  srnamespace    - The namespace(s) to enumerate.
  689.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  690.                   Default: 0
  691.  srwhat         - Search inside the text or titles.
  692.                   One value: title, text
  693.  srinfo         - What metadata to return.
  694.                   Values (separate with '|'): totalhits, suggestion
  695.                   Default: totalhits|suggestion
  696.  srprop         - What properties to return.
  697.                   Values (separate with '|'): size, wordcount, timestamp, snippet
  698.                   Default: size|wordcount|timestamp|snippet
  699.  srredirects    - Include redirect pages in the search.
  700.  sroffset       - Use this value to continue paging (return by query)
  701.                   Default: 0
  702.  srlimit        - How many total pages to return.
  703.                   No more than 50 (500 for bots) allowed.
  704.                   Default: 10
  705. Examples:
  706.  <a href="api.php?action=query&amp;list=search&amp;srsearch=meaning">api.php?action=query&amp;list=search&amp;srsearch=meaning</a>
  707.  <a href="api.php?action=query&amp;list=search&amp;srwhat=text&amp;srsearch=meaning">api.php?action=query&amp;list=search&amp;srwhat=text&amp;srsearch=meaning</a>
  708.  <a href="api.php?action=query&amp;generator=search&amp;gsrsearch=meaning&amp;prop=info">api.php?action=query&amp;generator=search&amp;gsrsearch=meaning&amp;prop=info</a>
  709. Generator:
  710.  This module may be used as a generator
  711.  
  712. <b>* list=tags (tg) *</b>
  713.  List change tags.
  714.  
  715. This module requires read rights.
  716. Parameters:
  717.  tgcontinue     - When more results are available, use this to continue
  718.  tglimit        - The maximum number of tags to list
  719.                   No more than 500 (5000 for bots) allowed.
  720.                   Default: 10
  721.  tgprop         - Which properties to get
  722.                   Values (separate with '|'): name, displayname, description, hitcount
  723.                   Default: name
  724. Example:
  725.  <a href="api.php?action=query&amp;list=tags&amp;tgprop=displayname|description|hitcount">api.php?action=query&amp;list=tags&amp;tgprop=displayname|description|hitcount</a>
  726.  
  727. <b>* list=usercontribs (uc) *</b>
  728.  Get all edits by a user
  729.  
  730. This module requires read rights.
  731. Parameters:
  732.  uclimit        - The maximum number of contributions to return.
  733.                   No more than 500 (5000 for bots) allowed.
  734.                   Default: 10
  735.  ucstart        - The start timestamp to return from.
  736.  ucend          - The end timestamp to return to.
  737.  uccontinue     - When more results are available, use this to continue.
  738.  ucuser         - The user to retrieve contributions for.
  739.  ucuserprefix   - Retrieve contibutions for all users whose names begin with this value. Overrides ucuser.
  740.  ucdir          - The direction to search (older or newer).
  741.                   One value: newer, older
  742.                   Default: older
  743.  ucnamespace    - Only list contributions in these namespaces
  744.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  745.  ucprop         - Include additional pieces of information
  746.                   Values (separate with '|'): ids, title, timestamp, comment, parsedcomment, size, flags, patrolled, tags
  747.                   Default: ids|title|timestamp|comment|size|flags
  748.  ucshow         - Show only items that meet this criteria, e.g. non minor edits only: show=!minor
  749.                   NOTE: if show=patrolled or show=!patrolled is set, revisions older than $wgRCMaxAge won't be shown
  750.                   Values (separate with '|'): minor, !minor, patrolled, !patrolled
  751.  uctag          - Only list revisions tagged with this tag
  752. Examples:
  753.  <a href="api.php?action=query&amp;list=usercontribs&amp;ucuser=YurikBot">api.php?action=query&amp;list=usercontribs&amp;ucuser=YurikBot</a>
  754.  <a href="api.php?action=query&amp;list=usercontribs&amp;ucuserprefix=217.121.114.">api.php?action=query&amp;list=usercontribs&amp;ucuserprefix=217.121.114.</a>
  755.  
  756. <b>* list=watchlist (wl) *</b>
  757.  Get all recent changes to pages in the logged in user's watchlist
  758.  
  759. This module requires read rights.
  760. Parameters:
  761.  wlallrev       - Include multiple revisions of the same page within given timeframe.
  762.  wlstart        - The timestamp to start enumerating from.
  763.  wlend          - The timestamp to end enumerating.
  764.  wlnamespace    - Filter changes to only the given namespace(s).
  765.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  766.  wluser         - Only list changes by this user
  767.  wlexcludeuser  - Don't list changes by this user
  768.  wldir          - In which direction to enumerate pages.
  769.                   One value: newer, older
  770.                   Default: older
  771.  wllimit        - How many total results to return per request.
  772.                   No more than 500 (5000 for bots) allowed.
  773.                   Default: 10
  774.  wlprop         - Which additional items to get (non-generator mode only).
  775.                   Values (separate with '|'): ids, title, flags, user, comment, parsedcomment, timestamp, patrol, sizes, notificationtimestamp
  776.                   Default: ids|title|flags
  777.  wlshow         - Show only items that meet this criteria.
  778.                   For example, to see only minor edits done by logged-in users, set show=minor|!anon
  779.                   Values (separate with '|'): minor, !minor, bot, !bot, anon, !anon, patrolled, !patrolled
  780.  wlowner        - The name of the user whose watchlist you'd like to access
  781.  wltoken        - Give a security token (settable in preferences) to allow access to another user's watchlist
  782. Examples:
  783.  <a href="api.php?action=query&amp;list=watchlist">api.php?action=query&amp;list=watchlist</a>
  784.  <a href="api.php?action=query&amp;list=watchlist&amp;wlprop=ids|title|timestamp|user|comment">api.php?action=query&amp;list=watchlist&amp;wlprop=ids|title|timestamp|user|comment</a>
  785.  <a href="api.php?action=query&amp;list=watchlist&amp;wlallrev&amp;wlprop=ids|title|timestamp|user|comment">api.php?action=query&amp;list=watchlist&amp;wlallrev&amp;wlprop=ids|title|timestamp|user|comment</a>
  786.  <a href="api.php?action=query&amp;generator=watchlist&amp;prop=info">api.php?action=query&amp;generator=watchlist&amp;prop=info</a>
  787.  <a href="api.php?action=query&amp;generator=watchlist&amp;gwlallrev&amp;prop=revisions&amp;rvprop=timestamp|user">api.php?action=query&amp;generator=watchlist&amp;gwlallrev&amp;prop=revisions&amp;rvprop=timestamp|user</a>
  788.  <a href="api.php?action=query&amp;list=watchlist&amp;wlowner=Bob_Smith&amp;wltoken=d8d562e9725ea1512894cdab28e5ceebc7f20237">api.php?action=query&amp;list=watchlist&amp;wlowner=Bob_Smith&amp;wltoken=d8d562e9725ea1512894cdab28e5ceebc7f20237</a>
  789. Generator:
  790.  This module may be used as a generator
  791.  
  792. <b>* list=watchlistraw (wr) *</b>
  793.  Get all pages on the logged in user's watchlist
  794.  
  795. This module requires read rights.
  796. Parameters:
  797.  wrcontinue     - When more results are available, use this to continue
  798.  wrnamespace    - Only list pages in the given namespace(s).
  799.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  800.  wrlimit        - How many total results to return per request.
  801.                   No more than 500 (5000 for bots) allowed.
  802.                   Default: 10
  803.  wrprop         - Which additional properties to get (non-generator mode only).
  804.                   Values (separate with '|'): changed
  805.  wrshow         - Only list items that meet these criteria.
  806.                   Values (separate with '|'): changed, !changed
  807. Examples:
  808.  <a href="api.php?action=query&amp;list=watchlistraw">api.php?action=query&amp;list=watchlistraw</a>
  809.  <a href="api.php?action=query&amp;generator=watchlistraw&amp;gwrshow=changed&amp;prop=revisions">api.php?action=query&amp;generator=watchlistraw&amp;gwrshow=changed&amp;prop=revisions</a>
  810. Generator:
  811.  This module may be used as a generator
  812.  
  813. <b>* list=exturlusage (eu) *</b>
  814.  Enumerate pages that contain a given URL
  815.  
  816. This module requires read rights.
  817. Parameters:
  818.  euprop         - What pieces of information to include
  819.                   Values (separate with '|'): ids, title, url
  820.                   Default: ids|title|url
  821.  euoffset       - Used for paging. Use the value returned for &quot;continue&quot;
  822.  euprotocol     - Protocol of the url. If empty and euquery set, the protocol is http.
  823.                   Leave both this and euquery empty to list all external links
  824.                   Can be empty, or One value: http, https, ftp, irc, gopher, telnet, nntp, worldwind, mailto, news, svn
  825.                   Default:
  826.  euquery        - Search string without protocol. See [[Special:LinkSearch]]. Leave empty to list all external links
  827.  eunamespace    - The page namespace(s) to enumerate.
  828.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  829.  eulimit        - How many pages to return.
  830.                   No more than 500 (5000 for bots) allowed.
  831.                   Default: 10
  832. Example:
  833.  <a href="api.php?action=query&amp;list=exturlusage&amp;euquery=www.mediawiki.org">api.php?action=query&amp;list=exturlusage&amp;euquery=www.mediawiki.org</a>
  834. Generator:
  835.  This module may be used as a generator
  836.  
  837. <b>* list=users (us) *</b>
  838.  Get information about a list of users
  839.  
  840. This module requires read rights.
  841. Parameters:
  842.  usprop         - What pieces of information to include
  843.                     blockinfo    - tags if the user is blocked, by whom, and for what reason
  844.                     groups       - lists all the groups the user belongs to
  845.                     editcount    - adds the user's edit count
  846.                     registration - adds the user's registration timestamp
  847.                     emailable    - tags if the user can and wants to receive e-mail through [[Special:Emailuser]]
  848.                     gender       - tags the gender of the user. Returns &quot;male&quot;, &quot;female&quot;, or &quot;unknown&quot;
  849.                   Values (separate with '|'): blockinfo, groups, editcount, registration, emailable, gender
  850.  ususers        - A list of users to obtain the same information for
  851.  ustoken        - Which tokens to obtain for each user
  852.                   Values (separate with '|'): userrights
  853. Example:
  854.  <a href="api.php?action=query&amp;list=users&amp;ususers=brion|TimStarling&amp;usprop=groups|editcount|gender">api.php?action=query&amp;list=users&amp;ususers=brion|TimStarling&amp;usprop=groups|editcount|gender</a>
  855.  
  856. <b>* list=random (rn) *</b>
  857.  Get a set of random pages
  858.  NOTE: Pages are listed in a fixed sequence, only the starting point is random. This means that if, for example, &quot;Main Page&quot; is the first
  859.        random page on your list, &quot;List of fictional monkeys&quot; will <b>*always*</b> be second, &quot;List of people on stamps of Vanuatu&quot; third, etc.
  860.  NOTE: If the number of pages in the namespace is lower than rnlimit, you will get fewer pages. You will not get the same page twice.
  861.  
  862. This module requires read rights.
  863. Parameters:
  864.  rnnamespace    - Return pages in these namespaces only
  865.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  866.  rnlimit        - Limit how many random pages will be returned
  867.                   No more than 10 (20 for bots) allowed.
  868.                   Default: 1
  869.  rnredirect     - Load a random redirect instead of a random page
  870. Example:
  871.  <a href="api.php?action=query&amp;list=random&amp;rnnamespace=0&amp;rnlimit=2">api.php?action=query&amp;list=random&amp;rnnamespace=0&amp;rnlimit=2</a>
  872. Generator:
  873.  This module may be used as a generator
  874.  
  875. <b>* list=protectedtitles (pt) *</b>
  876.  List all titles protected from creation
  877.  
  878. This module requires read rights.
  879. Parameters:
  880.  ptnamespace    - Only list titles in these namespaces
  881.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  882.  ptlevel        - Only list titles with these protection levels
  883.                   Values (separate with '|'): autoconfirmed, sysop
  884.  ptlimit        - How many total pages to return.
  885.                   No more than 500 (5000 for bots) allowed.
  886.                   Default: 10
  887.  ptdir          - The direction in which to list
  888.                   One value: older, newer
  889.                   Default: older
  890.  ptstart        - Start listing at this protection timestamp
  891.  ptend          - Stop listing at this protection timestamp
  892.  ptprop         - Which properties to get
  893.                   Values (separate with '|'): timestamp, user, comment, parsedcomment, expiry, level
  894.                   Default: timestamp|level
  895. Example:
  896.  <a href="api.php?action=query&amp;list=protectedtitles">api.php?action=query&amp;list=protectedtitles</a>
  897. Generator:
  898.  This module may be used as a generator
  899.  
  900. --- --- --- --- --- --- --- ---  Query: Meta  --- --- --- --- --- --- --- ---
  901.  
  902. <b>* meta=siteinfo (si) *</b>
  903.  Return general information about the site.
  904.  
  905. This module requires read rights.
  906. Parameters:
  907.  siprop         - Which sysinfo properties to get:
  908.                    general      - Overall system information
  909.                    namespaces   - List of registered namespaces and their canonical names
  910.                    namespacealiases - List of registered namespace aliases
  911.                    specialpagealiases - List of special page aliases
  912.                    magicwords   - List of magic words and their aliases
  913.                    statistics   - Returns site statistics
  914.                    interwikimap - Returns interwiki map (optionally filtered)
  915.                    dbrepllag    - Returns database server with the highest replication lag
  916.                    usergroups   - Returns user groups and the associated permissions
  917.                    extensions   - Returns extensions installed on the wiki
  918.                    fileextensions - Returns list of file extensions allowed to be uploaded
  919.                    rightsinfo   - Returns wiki rights (license) information if available
  920.                    languages    - Returns a list of languages MediaWiki supports
  921.                   Values (separate with '|'): general, namespaces, namespacealiases, specialpagealiases, magicwords, interwikimap, dbrepllag, statistics, usergroups, extensions, fileextensions, rightsinfo, languages
  922.                   Default: general
  923.  sifilteriw     - Return only local or only nonlocal entries of the interwiki map
  924.                   One value: local, !local
  925.  sishowalldb    - List all database servers, not just the one lagging the most
  926.  sinumberingroup - Lists the number of users in user groups
  927. Examples:
  928.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=general|namespaces|namespacealiases|statistics">api.php?action=query&amp;meta=siteinfo&amp;siprop=general|namespaces|namespacealiases|statistics</a>
  929.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=interwikimap&amp;sifilteriw=local">api.php?action=query&amp;meta=siteinfo&amp;siprop=interwikimap&amp;sifilteriw=local</a>
  930.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=dbrepllag&amp;sishowalldb">api.php?action=query&amp;meta=siteinfo&amp;siprop=dbrepllag&amp;sishowalldb</a>
  931.  
  932. <b>* meta=userinfo (ui) *</b>
  933.  Get information about the current user
  934.  
  935. This module requires read rights.
  936. Parameters:
  937.  uiprop         - What pieces of information to include
  938.                     blockinfo  - tags if the current user is blocked, by whom, and for what reason
  939.                     hasmsg     - adds a tag &quot;message&quot; if the current user has pending messages
  940.                     groups     - lists all the groups the current user belongs to
  941.                     rights     - lists all the rights the current user has
  942.                     changeablegroups - lists the groups the current user can add to and remove from
  943.                     options    - lists all preferences the current user has set
  944.                     editcount  - adds the current user's edit count
  945.                     ratelimits - lists all rate limits applying to the current user
  946.                   Values (separate with '|'): blockinfo, hasmsg, groups, rights, changeablegroups, options, preferencestoken, editcount, ratelimits, email
  947. Examples:
  948.  <a href="api.php?action=query&amp;meta=userinfo">api.php?action=query&amp;meta=userinfo</a>
  949.  <a href="api.php?action=query&amp;meta=userinfo&amp;uiprop=blockinfo|groups|rights|hasmsg">api.php?action=query&amp;meta=userinfo&amp;uiprop=blockinfo|groups|rights|hasmsg</a>
  950.  
  951. <b>* meta=allmessages (am) *</b>
  952.  Return messages from this site.
  953.  
  954. This module requires read rights.
  955. Parameters:
  956.  ammessages     - Which messages to output. &quot;*&quot; means all messages
  957.                   Default: *
  958.  amprop         - Which properties to get
  959.                   Values (separate with '|'): default
  960.  amenableparser - Set to enable parser, will preprocess the wikitext of message
  961.                   Will substitute magic words, handle templates etc.
  962.  amargs         - Arguments to be substituted into message
  963.  amfilter       - Return only messages that contain this string
  964.  amlang         - Return messages in this language
  965.  amfrom         - Return messages starting at this message
  966. Examples:
  967.  <a href="api.php?action=query&amp;meta=allmessages&amp;amfilter=ipb-">api.php?action=query&amp;meta=allmessages&amp;amfilter=ipb-</a>
  968.  <a href="api.php?action=query&amp;meta=allmessages&amp;ammessages=august|mainpage&amp;amlang=de">api.php?action=query&amp;meta=allmessages&amp;ammessages=august|mainpage&amp;amlang=de</a>
  969.  
  970.  
  971. <b>*** *** *** *** *** *** *** *** *** ***  Modules: continuation  *** *** *** *** *** *** *** *** *** ***</b>
  972.  
  973.  
  974. <b>* action=expandtemplates *</b>
  975.  This module expand all templates in wikitext
  976.  
  977. This module requires read rights.
  978. Parameters:
  979.  title          - Title of page
  980.                   Default: API
  981.  text           - Wikitext to convert
  982.  generatexml    - Generate XML parse tree
  983. Example:
  984.  <a href="api.php?action=expandtemplates&amp;text={{Project:Sandbox}}">api.php?action=expandtemplates&amp;text={{Project:Sandbox}}</a>
  985.  
  986. <b>* action=parse *</b>
  987.  This module parses wikitext and returns parser output
  988.  
  989. This module requires read rights.
  990. Parameters:
  991.  title          - Title of page the text belongs to
  992.                   Default: API
  993.  text           - Wikitext to parse
  994.  summary        - Summary to parse
  995.  page           - Parse the content of this page. Cannot be used together with text and title
  996.  redirects      - If the page parameter is set to a redirect, resolve it
  997.  oldid          - Parse the content of this revision. Overrides page
  998.  prop           - Which pieces of information to get.
  999.                   NOTE: Section tree is only generated if there are more than 4 sections, or if the __TOC__ keyword is present
  1000.                   Values (separate with '|'): text, langlinks, categories, links, templates, images, externallinks, sections, revid, displaytitle, headitems, headhtml
  1001.                   Default: text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle
  1002.  pst            - Do a pre-save transform on the input before parsing it.
  1003.                   Ignored if page or oldid is used.
  1004.  onlypst        - Do a PST on the input, but don't parse it.
  1005.                   Returns PSTed wikitext. Ignored if page or oldid is used.
  1006. Example:
  1007.  <a href="api.php?action=parse&amp;text={{Project:Sandbox}}">api.php?action=parse&amp;text={{Project:Sandbox}}</a>
  1008.  
  1009. <b>* action=opensearch *</b>
  1010.  This module implements OpenSearch protocol
  1011.  
  1012. This module requires read rights.
  1013. Parameters:
  1014.  search         - Search string
  1015.  limit          - Maximum amount of results to return
  1016.                   No more than 100 (100 for bots) allowed.
  1017.                   Default: 10
  1018.  namespace      - Namespaces to search
  1019.                   Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  1020.                   Default: 0
  1021.  suggest        - Do nothing if $wgEnableOpenSearchSuggest is false
  1022. Example:
  1023.  <a href="api.php?action=opensearch&amp;search=Te">api.php?action=opensearch&amp;search=Te</a>
  1024.  
  1025. <b>* action=feedwatchlist *</b>
  1026.  This module returns a watchlist feed
  1027.  
  1028. This module requires read rights.
  1029. Parameters:
  1030.  feedformat     - The format of the feed
  1031.                   One value: rss, atom
  1032.                   Default: rss
  1033.  hours          - List pages modified within this many hours from now
  1034.                   The value must be between 1 and 72
  1035.                   Default: 24
  1036.  allrev         - Include multiple revisions of the same page within given timeframe.
  1037.  wlowner        - The user whose watchlist you want (must be accompanied by wltoken if it's not you)
  1038.  wltoken        - Security token that requested user set in their preferences
  1039. Example:
  1040.  <a href="api.php?action=feedwatchlist">api.php?action=feedwatchlist</a>
  1041.  
  1042. <b>* action=help *</b>
  1043.  Display this help screen.
  1044.  
  1045. <b>* action=paraminfo *</b>
  1046.  Obtain information about certain API parameters
  1047. Parameters:
  1048.  modules        - List of module names (value of the action= parameter)
  1049.  querymodules   - List of query module names (value of prop=, meta= or list= parameter)
  1050.  mainmodule     - Get information about the main (top-level) module as well
  1051.  pagesetmodule  - Get information about the pageset module (providing titles= and friends) as well
  1052. Example:
  1053.  <a href="api.php?action=paraminfo&amp;modules=parse&amp;querymodules=allpages|siteinfo">api.php?action=paraminfo&amp;modules=parse&amp;querymodules=allpages|siteinfo</a>
  1054.  
  1055. <b>* action=purge *</b>
  1056.  Purge the cache for the given titles.
  1057.  
  1058. This module requires read rights.
  1059. This module requires write rights.
  1060. This module only accepts POST requests.
  1061. Parameters:
  1062.  titles         - A list of titles
  1063. Example:
  1064.  <a href="api.php?action=purge&amp;titles=Main_Page|API">api.php?action=purge&amp;titles=Main_Page|API</a>
  1065.  
  1066. <b>* action=rollback *</b>
  1067.  Undo the last edit to the page. If the last user who edited the page made multiple edits in a row,
  1068.  they will all be rolled back.
  1069.  
  1070. This module requires read rights.
  1071. This module requires write rights.
  1072. This module only accepts POST requests.
  1073. Parameters:
  1074.  title          - Title of the page you want to rollback.
  1075.  user           - Name of the user whose edits are to be rolled back. If set incorrectly, you'll get a badtoken error.
  1076.  token          - A rollback token previously retrieved through prop=revisions
  1077.  summary        - Custom edit summary. If not set, default summary will be used.
  1078.  markbot        - Mark the reverted edits and the revert as bot edits
  1079. Examples:
  1080.  <a href="api.php?action=rollback&amp;title=Main%20Page&amp;user=Catrope&amp;token=123ABC">api.php?action=rollback&amp;title=Main%20Page&amp;user=Catrope&amp;token=123ABC</a>
  1081.  <a href="api.php?action=rollback&amp;title=Main%20Page&amp;user=217.121.114.116&amp;token=123ABC&amp;summary=Reverting%20vandalism&amp;markbot=1">api.php?action=rollback&amp;title=Main%20Page&amp;user=217.121.114.116&amp;token=123ABC&amp;summary=Reverting%20vandalism&amp;markbot=1</a>
  1082.  
  1083. <b>* action=delete *</b>
  1084.  Delete a page.
  1085.  
  1086. This module requires read rights.
  1087. This module requires write rights.
  1088. This module only accepts POST requests.
  1089. Parameters:
  1090.  title          - Title of the page you want to delete. Cannot be used together with pageid
  1091.  pageid         - Page ID of the page you want to delete. Cannot be used together with title
  1092.  token          - A delete token previously retrieved through prop=info
  1093.  reason         - Reason for the deletion. If not set, an automatically generated reason will be used.
  1094.  watch          - Add the page to your watchlist
  1095.  unwatch        - Remove the page from your watchlist
  1096.  oldimage       - The name of the old image to delete as provided by iiprop=archivename
  1097. Examples:
  1098.  <a href="api.php?action=delete&amp;title=Main%20Page&amp;token=123ABC">api.php?action=delete&amp;title=Main%20Page&amp;token=123ABC</a>
  1099.  <a href="api.php?action=delete&amp;title=Main%20Page&amp;token=123ABC&amp;reason=Preparing%20for%20move">api.php?action=delete&amp;title=Main%20Page&amp;token=123ABC&amp;reason=Preparing%20for%20move</a>
  1100.  
  1101. <b>* action=undelete *</b>
  1102.  Restore certain revisions of a deleted page. A list of deleted revisions (including timestamps) can be
  1103.  retrieved through list=deletedrevs
  1104.  
  1105. This module requires read rights.
  1106. This module requires write rights.
  1107. This module only accepts POST requests.
  1108. Parameters:
  1109.  title          - Title of the page you want to restore.
  1110.  token          - An undelete token previously retrieved through list=deletedrevs
  1111.  reason         - Reason for restoring (optional)
  1112.                   Default:
  1113.  timestamps     - Timestamps of the revisions to restore. If not set, all revisions will be restored.
  1114. Examples:
  1115.  <a href="api.php?action=undelete&amp;title=Main%20Page&amp;token=123ABC&amp;reason=Restoring%20main%20page">api.php?action=undelete&amp;title=Main%20Page&amp;token=123ABC&amp;reason=Restoring%20main%20page</a>
  1116.  <a href="api.php?action=undelete&amp;title=Main%20Page&amp;token=123ABC&amp;timestamps=20070703220045|20070702194856">api.php?action=undelete&amp;title=Main%20Page&amp;token=123ABC&amp;timestamps=20070703220045|20070702194856</a>
  1117.  
  1118. <b>* action=protect *</b>
  1119.  Change the protection level of a page.
  1120.  
  1121. This module requires read rights.
  1122. This module requires write rights.
  1123. This module only accepts POST requests.
  1124. Parameters:
  1125.  title          - Title of the page you want to (un)protect.
  1126.  token          - A protect token previously retrieved through prop=info
  1127.  protections    - Pipe-separated list of protection levels, formatted action=group (e.g. edit=sysop)
  1128.  expiry         - Expiry timestamps. If only one timestamp is set, it'll be used for all protections.
  1129.                   Use 'infinite', 'indefinite' or 'never', for a neverexpiring protection.
  1130.                   Default: infinite
  1131.  reason         - Reason for (un)protecting (optional)
  1132.                   Default:
  1133.  cascade        - Enable cascading protection (i.e. protect pages included in this page)
  1134.                   Ignored if not all protection levels are 'sysop' or 'protect'
  1135.  watch          - If set, add the page being (un)protected to your watchlist
  1136. Examples:
  1137.  <a href="api.php?action=protect&amp;title=Main%20Page&amp;token=123ABC&amp;protections=edit=sysop|move=sysop&amp;cascade&amp;expiry=20070901163000|never">api.php?action=protect&amp;title=Main%20Page&amp;token=123ABC&amp;protections=edit=sysop|move=sysop&amp;cascade&amp;expiry=20070901163000|never</a>
  1138.  <a href="api.php?action=protect&amp;title=Main%20Page&amp;token=123ABC&amp;protections=edit=all|move=all&amp;reason=Lifting%20restrictions">api.php?action=protect&amp;title=Main%20Page&amp;token=123ABC&amp;protections=edit=all|move=all&amp;reason=Lifting%20restrictions</a>
  1139.  
  1140. <b>* action=block *</b>
  1141.  Block a user.
  1142.  
  1143. This module requires read rights.
  1144. This module requires write rights.
  1145. This module only accepts POST requests.
  1146. Parameters:
  1147.  user           - Username, IP address or IP range you want to block
  1148.  token          - A block token previously obtained through the gettoken parameter or prop=info
  1149.  gettoken       - If set, a block token will be returned, and no other action will be taken
  1150.  expiry         - Relative expiry time, e.g. '5 months' or '2 weeks'. If set to 'infinite', 'indefinite' or 'never', the block will never expire.
  1151.                   Default: never
  1152.  reason         - Reason for block (optional)
  1153.  anononly       - Block anonymous users only (i.e. disable anonymous edits for this IP)
  1154.  nocreate       - Prevent account creation
  1155.  autoblock      - Automatically block the last used IP address, and any subsequent IP addresses they try to login from
  1156.  noemail        - Prevent user from sending e-mail through the wiki. (Requires the &quot;blockemail&quot; right.)
  1157.  hidename       - Hide the username from the block log. (Requires the &quot;hideuser&quot; right.)
  1158.  allowusertalk  - Allow the user to edit their own talk page (depends on $wgBlockAllowsUTEdit)
  1159.  reblock        - If the user is already blocked, overwrite the existing block
  1160. Examples:
  1161.  <a href="api.php?action=block&amp;user=123.5.5.12&amp;expiry=3%20days&amp;reason=First%20strike">api.php?action=block&amp;user=123.5.5.12&amp;expiry=3%20days&amp;reason=First%20strike</a>
  1162.  <a href="api.php?action=block&amp;user=Vandal&amp;expiry=never&amp;reason=Vandalism&amp;nocreate&amp;autoblock&amp;noemail">api.php?action=block&amp;user=Vandal&amp;expiry=never&amp;reason=Vandalism&amp;nocreate&amp;autoblock&amp;noemail</a>
  1163.  
  1164. <b>* action=unblock *</b>
  1165.  Unblock a user.
  1166.  
  1167. This module requires read rights.
  1168. This module requires write rights.
  1169. This module only accepts POST requests.
  1170. Parameters:
  1171.  id             - ID of the block you want to unblock (obtained through list=blocks). Cannot be used together with user
  1172.  user           - Username, IP address or IP range you want to unblock. Cannot be used together with id
  1173.  token          - An unblock token previously obtained through the gettoken parameter or prop=info
  1174.  gettoken       - If set, an unblock token will be returned, and no other action will be taken
  1175.  reason         - Reason for unblock (optional)
  1176. Examples:
  1177.  <a href="api.php?action=unblock&amp;id=105">api.php?action=unblock&amp;id=105</a>
  1178.  <a href="api.php?action=unblock&amp;user=Bob&amp;reason=Sorry%20Bob">api.php?action=unblock&amp;user=Bob&amp;reason=Sorry%20Bob</a>
  1179.  
  1180. <b>* action=move *</b>
  1181.  Move a page.
  1182.  
  1183. This module requires read rights.
  1184. This module requires write rights.
  1185. This module only accepts POST requests.
  1186. Parameters:
  1187.  from           - Title of the page you want to move. Cannot be used together with fromid.
  1188.  fromid         - Page ID of the page you want to move. Cannot be used together with from.
  1189.  to             - Title you want to rename the page to.
  1190.  token          - A move token previously retrieved through prop=info
  1191.  reason         - Reason for the move (optional).
  1192.  movetalk       - Move the talk page, if it exists.
  1193.  movesubpages   - Move subpages, if applicable
  1194.  noredirect     - Don't create a redirect
  1195.  watch          - Add the page and the redirect to your watchlist
  1196.  unwatch        - Remove the page and the redirect from your watchlist
  1197.  ignorewarnings - Ignore any warnings
  1198. Example:
  1199.  <a href="api.php?action=move&amp;from=Exampel&amp;to=Example&amp;token=123ABC&amp;reason=Misspelled%20title&amp;movetalk&amp;noredirect">api.php?action=move&amp;from=Exampel&amp;to=Example&amp;token=123ABC&amp;reason=Misspelled%20title&amp;movetalk&amp;noredirect</a>
  1200.  
  1201. <b>* action=edit *</b>
  1202.  Create and edit pages.
  1203.  
  1204. This module requires read rights.
  1205. This module requires write rights.
  1206. This module only accepts POST requests.
  1207. Parameters:
  1208.  title          - Page title
  1209.  section        - Section number. 0 for the top section, 'new' for a new section
  1210.  text           - Page content
  1211.  token          - Edit token. You can get one of these through prop=info
  1212.  summary        - Edit summary. Also section title when section=new
  1213.  minor          - Minor edit
  1214.  notminor       - Non-minor edit
  1215.  bot            - Mark this edit as bot
  1216.  basetimestamp  - Timestamp of the base revision (gotten through prop=revisions&amp;rvprop=timestamp).
  1217.                   Used to detect edit conflicts; leave unset to ignore conflicts.
  1218.  starttimestamp - Timestamp when you obtained the edit token.
  1219.                   Used to detect edit conflicts; leave unset to ignore conflicts.
  1220.  recreate       - Override any errors about the article having been deleted in the meantime
  1221.  createonly     - Don't edit the page if it exists already
  1222.  nocreate       - Throw an error if the page doesn't exist
  1223.  captchaword    - Answer to the CAPTCHA
  1224.  captchaid      - CAPTCHA ID from previous request
  1225.  watch          - DEPRECATED! Add the page to your watchlist
  1226.  unwatch        - DEPRECATED! Remove the page from your watchlist
  1227.  watchlist      - Unconditionally add or remove the page from your watchlist, use preferences or do not change watch
  1228.                   One value: watch, unwatch, preferences, nochange
  1229.                   Default: preferences
  1230.  md5            - The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated.
  1231.                   If set, the edit won't be done unless the hash is correct
  1232.  prependtext    - Add this text to the beginning of the page. Overrides text.
  1233.  appendtext     - Add this text to the end of the page. Overrides text
  1234.  undo           - Undo this revision. Overrides text, prependtext and appendtext
  1235.  undoafter      - Undo all revisions from undo to this one. If not set, just undo one revision
  1236. Examples:
  1237.  Edit a page (anonymous user):
  1238.      <a href="api.php?action=edit&amp;title=Test&amp;summary=test%20summary&amp;text=article%20content&amp;basetimestamp=20070824123454&amp;token=%2B\">api.php?action=edit&amp;title=Test&amp;summary=test%20summary&amp;text=article%20content&amp;basetimestamp=20070824123454&amp;token=%2B\</a>
  1239.  Prepend __NOTOC__ to a page (anonymous user):
  1240.      <a href="api.php?action=edit&amp;title=Test&amp;summary=NOTOC&amp;minor&amp;prependtext=__NOTOC__%0A&amp;basetimestamp=20070824123454&amp;token=%2B\">api.php?action=edit&amp;title=Test&amp;summary=NOTOC&amp;minor&amp;prependtext=__NOTOC__%0A&amp;basetimestamp=20070824123454&amp;token=%2B\</a>
  1241.  Undo r13579 through r13585 with autosummary(anonymous user):
  1242.      <a href="api.php?action=edit&amp;title=Test&amp;undo=13585&amp;undoafter=13579&amp;basetimestamp=20070824123454&amp;token=%2B\">api.php?action=edit&amp;title=Test&amp;undo=13585&amp;undoafter=13579&amp;basetimestamp=20070824123454&amp;token=%2B\</a>
  1243.  
  1244. <b>* action=upload *</b>
  1245.  Upload a file, or get the status of pending uploads. Several methods are available:
  1246.   * Upload file contents directly, using the &quot;file&quot; parameter
  1247.   * Have the MediaWiki server fetch a file from a URL, using the &quot;url&quot; parameter
  1248.   * Complete an earlier upload that failed due to warnings, using the &quot;sessionkey&quot; parameter
  1249.  Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when
  1250.  sending the &quot;file&quot;. Note also that queries using session keys must be
  1251.  done in the same login session as the query that originally returned the key (i.e. do not
  1252.  log out and then log back in). Also you must get and send an edit token before doing any upload stuff.
  1253.  
  1254. This module requires read rights.
  1255. This module requires write rights.
  1256. This module only accepts POST requests.
  1257. Parameters:
  1258.  filename       - Target filename
  1259.  comment        - Upload comment. Also used as the initial page text for new files if &quot;text&quot; is not specified
  1260.                   Default:
  1261.  text           - Initial page text for new files
  1262.  token          - Edit token. You can get one of these through prop=info
  1263.  watch          - Watch the page
  1264.  ignorewarnings - Ignore any warnings
  1265.  file           - File contents
  1266.  url            - Url to fetch the file from
  1267.  sessionkey     - Session key returned by a previous upload that failed due to warnings
  1268. Examples:
  1269.  Upload from a URL:
  1270.      <a href="api.php?action=upload&amp;filename=Wiki.png&amp;url=http%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png">api.php?action=upload&amp;filename=Wiki.png&amp;url=http%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png</a>
  1271.  Complete an upload that failed due to warnings:
  1272.      <a href="api.php?action=upload&amp;filename=Wiki.png&amp;sessionkey=sessionkey&amp;ignorewarnings=1">api.php?action=upload&amp;filename=Wiki.png&amp;sessionkey=sessionkey&amp;ignorewarnings=1</a>
  1273.  
  1274. <b>* action=emailuser *</b>
  1275.  Email a user.
  1276.  
  1277. This module requires read rights.
  1278. This module requires write rights.
  1279. This module only accepts POST requests.
  1280. Parameters:
  1281.  target         - User to send email to
  1282.  subject        - Subject header
  1283.  text           - Mail body
  1284.  token          - A token previously acquired via prop=info
  1285.  ccme           - Send a copy of this mail to me
  1286. Example:
  1287.  <a href="api.php?action=emailuser&amp;target=WikiSysop&amp;text=Content">api.php?action=emailuser&amp;target=WikiSysop&amp;text=Content</a>
  1288.  
  1289. <b>* action=watch *</b>
  1290.  Add or remove a page from/to the current user's watchlist
  1291.  
  1292. This module requires read rights.
  1293. This module requires write rights.
  1294. Parameters:
  1295.  title          - The page to (un)watch
  1296.  unwatch        - If set the page will be unwatched rather than watched
  1297. Examples:
  1298.  <a href="api.php?action=watch&amp;title=Main_Page">api.php?action=watch&amp;title=Main_Page</a>
  1299.  <a href="api.php?action=watch&amp;title=Main_Page&amp;unwatch">api.php?action=watch&amp;title=Main_Page&amp;unwatch</a>
  1300.  
  1301. <b>* action=patrol *</b>
  1302.  Patrol a page or revision.
  1303.  
  1304. This module requires read rights.
  1305. This module requires write rights.
  1306. Parameters:
  1307.  token          - Patrol token obtained from list=recentchanges
  1308.  rcid           - Recentchanges ID to patrol
  1309. Example:
  1310.  <a href="api.php?action=patrol&amp;token=123abc&amp;rcid=230672766">api.php?action=patrol&amp;token=123abc&amp;rcid=230672766</a>
  1311.  
  1312. <b>* action=import *</b>
  1313.  Import a page from another wiki, or an XML file
  1314.  
  1315. This module requires read rights.
  1316. This module requires write rights.
  1317. This module only accepts POST requests.
  1318. Parameters:
  1319.  token          - Import token obtained through prop=info
  1320.  summary        - Import summary
  1321.  xml            - Uploaded XML file
  1322.  interwikisource - For interwiki imports: wiki to import from
  1323.                   One value:
  1324.  interwikipage  - For interwiki imports: page to import
  1325.  fullhistory    - For interwiki imports: import the full history, not just the current version
  1326.  templates      - For interwiki imports: import all included templates as well
  1327.  namespace      - For interwiki imports: import to this namespace
  1328.                   One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
  1329. Examples:
  1330.  Import [[meta:Help:Parserfunctions]] to namespace 100 with full history:
  1331.    <a href="api.php?action=import&amp;interwikisource=meta&amp;interwikipage=Help:ParserFunctions&amp;namespace=100&amp;fullhistory&amp;token=123ABC">api.php?action=import&amp;interwikisource=meta&amp;interwikipage=Help:ParserFunctions&amp;namespace=100&amp;fullhistory&amp;token=123ABC</a>
  1332.  
  1333. <b>* action=userrights *</b>
  1334.  Add/remove a user to/from groups
  1335.  
  1336. This module requires read rights.
  1337. This module requires write rights.
  1338. This module only accepts POST requests.
  1339. Parameters:
  1340.  user           - User name
  1341.  add            - Add the user to these groups
  1342.                   Values (separate with '|'): bot, sysop, bureaucrat
  1343.  remove         - Remove the user from these groups
  1344.                   Values (separate with '|'): bot, sysop, bureaucrat
  1345.  token          - A userrights token previously retrieved through list=users
  1346.  reason         - Reason for the change
  1347.                   Default:
  1348. Example:
  1349.  <a href="api.php?action=userrights&amp;user=FooBot&amp;add=bot&amp;remove=sysop|bureaucrat&amp;token=123ABC">api.php?action=userrights&amp;user=FooBot&amp;add=bot&amp;remove=sysop|bureaucrat&amp;token=123ABC</a>
  1350.  
  1351.  
  1352. <b>*** *** *** *** *** *** *** *** *** ***  Permissions *** *** *** *** *** *** *** *** *** ***</b>
  1353.  
  1354. <b>* writeapi *</b>
  1355.  Use of the write API
  1356. Granted to:
  1357.  all, user, bot
  1358. <b>* apihighlimits *</b>
  1359.  Use higher limits in API queries (Slow queries: 500 results; Fast queries: 5000 results). The limits for slow queries also apply to multivalue parameters.
  1360. Granted to:
  1361.  bot, sysop
  1362.  
  1363. <b>*** *** *** *** *** *** *** *** *** ***  Formats  *** *** *** *** *** *** *** *** *** ***</b>
  1364.  
  1365. <b>* format=json *</b>
  1366.  Output data in JSON format
  1367.  
  1368. This module requires read rights.
  1369. Parameters:
  1370.  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.
  1371. Example:
  1372.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=json">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=json</a>
  1373.  
  1374. <b>* format=jsonfm *</b>
  1375.  Output data in JSON format (pretty-print in HTML)
  1376.  
  1377. This module requires read rights.
  1378. Parameters:
  1379.  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.
  1380. Example:
  1381.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=jsonfm">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=jsonfm</a>
  1382.  
  1383. <b>* format=php *</b>
  1384.  Output data in serialized PHP format
  1385.  
  1386. This module requires read rights.
  1387. Example:
  1388.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=php">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=php</a>
  1389.  
  1390. <b>* format=phpfm *</b>
  1391.  Output data in serialized PHP format (pretty-print in HTML)
  1392.  
  1393. This module requires read rights.
  1394. Example:
  1395.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=phpfm">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=phpfm</a>
  1396.  
  1397. <b>* format=wddx *</b>
  1398.  Output data in WDDX format
  1399.  
  1400. This module requires read rights.
  1401. Example:
  1402.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=wddx">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=wddx</a>
  1403.  
  1404. <b>* format=wddxfm *</b>
  1405.  Output data in WDDX format (pretty-print in HTML)
  1406.  
  1407. This module requires read rights.
  1408. Example:
  1409.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=wddxfm">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=wddxfm</a>
  1410.  
  1411. <b>* format=xml *</b>
  1412.  Output data in XML format
  1413.  
  1414. This module requires read rights.
  1415. Parameters:
  1416.  xmldoublequote - If specified, double quotes all attributes and content.
  1417.  xslt           - If specified, adds &lt;xslt&gt; as stylesheet
  1418. Example:
  1419.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=xml">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=xml</a>
  1420.  
  1421. <b>* format=xmlfm *</b>
  1422.  Output data in XML format (pretty-print in HTML)
  1423.  
  1424. This module requires read rights.
  1425. Parameters:
  1426.  xmldoublequote - If specified, double quotes all attributes and content.
  1427.  xslt           - If specified, adds &lt;xslt&gt; as stylesheet
  1428. Example:
  1429.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=xmlfm">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=xmlfm</a>
  1430.  
  1431. <b>* format=yaml *</b>
  1432.  Output data in YAML format
  1433.  
  1434. This module requires read rights.
  1435. Example:
  1436.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=yaml">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=yaml</a>
  1437.  
  1438. <b>* format=yamlfm *</b>
  1439.  Output data in YAML format (pretty-print in HTML)
  1440.  
  1441. This module requires read rights.
  1442. Example:
  1443.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=yamlfm">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=yamlfm</a>
  1444.  
  1445. <b>* format=rawfm *</b>
  1446.  Output data with the debuging elements in JSON format (pretty-print in HTML)
  1447.  
  1448. This module requires read rights.
  1449. Parameters:
  1450.  callback       - If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.
  1451. Example:
  1452.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=rawfm">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=rawfm</a>
  1453.  
  1454. <b>* format=txt *</b>
  1455.  Output data in PHP's print_r() format
  1456.  
  1457. This module requires read rights.
  1458. Example:
  1459.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=txt">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=txt</a>
  1460.  
  1461. <b>* format=txtfm *</b>
  1462.  Output data in PHP's print_r() format (pretty-print in HTML)
  1463.  
  1464. This module requires read rights.
  1465. Example:
  1466.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=txtfm">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=txtfm</a>
  1467.  
  1468. <b>* format=dbg *</b>
  1469.  Output data in PHP's var_export() format
  1470.  
  1471. This module requires read rights.
  1472. Example:
  1473.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=dbg">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=dbg</a>
  1474.  
  1475. <b>* format=dbgfm *</b>
  1476.  Output data in PHP's var_export() format (pretty-print in HTML)
  1477.  
  1478. This module requires read rights.
  1479. Example:
  1480.  <a href="api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=dbgfm">api.php?action=query&amp;meta=siteinfo&amp;siprop=namespaces&amp;format=dbgfm</a>
  1481.  
  1482.  
  1483. <b>*** Credits: ***</b>
  1484.   API developers:
  1485.       Roan Kattouw &lt;Firstname&gt;.&lt;Lastname&gt;@home.nl (lead developer Sep 2007-present)
  1486.       Victor Vasiliev - vasilvv at gee mail dot com
  1487.       Bryan Tong Minh - bryan . tongminh @ gmail . com
  1488.       Sam Reed - sam @ reedyboy . net
  1489.       Yuri Astrakhan &lt;Firstname&gt;&lt;Lastname&gt;@gmail.com (creator, lead developer Sep 2006-Sep 2007)
  1490.  
  1491.   Please send your comments, suggestions and questions to mediawiki-api@lists.wikimedia.org
  1492.   or file a bug report at <a href="http://bugzilla.wikimedia.org/">http://bugzilla.wikimedia.org/</a>
  1493. <span style="color:blue;">&lt;/error&gt;</span>
  1494. <span style="color:blue;">&lt;/api&gt;</span>
  1495. </pre>
  1496. </body>
  1497. </html>
  1498. <!-- Served in 0.038 secs. -->
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda