The following documentation is the output of Special:ApiHelp/query+allcategories, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
This module differs from list=allpages&alnamespace=14 in that categories without descriptions will be listed, while redirects and pages where the category was never used will not.
The response may include categories that were previously used but have since been deleted.
Because the response may include categories that are deleted or otherwise empty, it is recommended to filter the list using acmin=1, so as to only return categories containing one or more members.
The following documentation is the output of Special:ApiHelp/query+allimages, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Adds the user who uploaded each file version. If the user has been revision deleted, a userhidden property will be returned.
userid
Add the ID of the user that uploaded each file version. If the user has been revision deleted, a userhidden property will be returned.
comment
Comment on the version. If the comment has been revision deleted, a commenthidden property will be returned.
parsedcomment
Parse the comment on the version. If the comment has been revision deleted, a commenthidden property will be returned.
canonicaltitle
Adds the canonical title of the file. If the file has been revision deleted, a filehidden property will be returned.
url
Gives URL to the file and the description page. If the file has been revision deleted, a filehidden property will be returned.
size
Adds the size of the file in bytes and the height, width and page count (if applicable).
dimensions
Alias for size.
sha1
Adds SHA-1 hash for the file. If the file has been revision deleted, a filehidden property will be returned.
mime
Adds MIME type of the file. If the file has been revision deleted, a filehidden property will be returned.
mediatype
Adds the media type of the file. If the file has been revision deleted, a filehidden property will be returned.
metadata
Lists Exif metadata for the version of the file. If the file has been revision deleted, a filehidden property will be returned.
commonmetadata
Lists file format generic metadata for the version of the file. If the file has been revision deleted, a filehidden property will be returned.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted. If the file has been revision deleted, a filehidden property will be returned.
Note: This is an expensive property to request, and should be avoided unless you need it. When using it, you should request only a few results at a time to avoid too much load.
bitdepth
Adds the bit depth of the version. If the file has been revision deleted, a filehidden property will be returned.
{"batchcomplete":"","continue":{"aicontinue":"20100101190633|Ryan_Baker_12-30-2009.JPG","continue":"-||"},"query":{"allimages":[{"name":"DramaQueenThatGirl.jpg","timestamp":"2010-01-01T18:21:57Z","url":"https://upload.wikimedia.org/wikipedia/en/1/17/DramaQueenThatGirl.jpg","descriptionurl":"https://en.wikipedia.org/wiki/File:DramaQueenThatGirl.jpg","descriptionshorturl":"https://en.wikipedia.org/w/index.php?curid=25646192","ns":6,"title":"File:DramaQueenThatGirl.jpg"},{"name":"VS_in_viena_austria.JPG","timestamp":"2010-01-01T18:42:49Z","url":"https://upload.wikimedia.org/wikipedia/en/b/bd/VS_in_viena_austria.JPG","descriptionurl":"https://en.wikipedia.org/wiki/File:VS_in_viena_austria.JPG","descriptionshorturl":"https://en.wikipedia.org/w/index.php?curid=25646382","ns":6,"title":"File:VS in viena austria.JPG"},{"name":"Vasanthamtv_channel.jpg","timestamp":"2010-01-01T19:03:08Z","url":"https://upload.wikimedia.org/wikipedia/en/1/18/Vasanthamtv_channel.jpg","descriptionurl":"https://en.wikipedia.org/wiki/File:Vasanthamtv_channel.jpg","descriptionshorturl":"https://en.wikipedia.org/w/index.php?curid=25626466","ns":6,"title":"File:Vasanthamtv channel.jpg"}...]}}
API:Images – a very similar module, but it is a prop, not a list; see API:Properties and API:Lists for more details on how these two kinds of modules differ from one another.
API:Imageinfo – retrieves detailed information about image files.
The following documentation is the output of Special:ApiHelp/query+alllinks, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
By default, this module will return duplicates if a page contains multiple links pointing to the same namespace.
This example uses alunique=1 to remove any duplicate titles in the response.
As with other link modules within the Action API, this module returns the titles of the pages that link to the namespace, not the exact URIs to those pages.
This module can be used as a generator.
Previous versions would return an error if the user tried to run this module as a generator, and alunique was set to true. This was altered in v1.24, to allow using the module as a generator even if alunique is true.
The following documentation is the output of Special:ApiHelp/query+allpages, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Note: Due to miser mode, using this may result in fewer than aplimit results returned before continuing; in extreme cases, zero results may be returned.
One of the following values: all, nonredirects, redirects
Default: all
apfilterlanglinks
Filter based on whether a page has langlinks. Note that this may not consider langlinks added by extensions.
One of the following values: all, withlanglinks, withoutlanglinks
Items in the results are listed in alphabetical order, by page title.
{"batchcomplete":"","continue":{"apcontinue":"Jungle_(Bakufu_Slump_album)","continue":"-||"},"query":{"allpages":[{"pageid":341265,"ns":0,"title":"Jungle"},{"pageid":56461312,"ns":0,"title":"Jungle-runner"},{"pageid":18698572,"ns":0,"title":"Jungle/Drum n bass"},{"pageid":1487899,"ns":0,"title":"Jungle2jungle"},{"pageid":30391179,"ns":0,"title":"JunglePup"}...]}}
The following documentation is the output of Special:ApiHelp/query+alltransclusions, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
The following documentation is the output of Special:ApiHelp/query+allusers, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
This API call is case sensitive, so aufrom=DROV doesn't return the same results as aufrom=Drov.
All registered usernames are saved and retrieved in capitalized form. If you are using aufrom or auprefix in your query, make sure you are passing them values that start with an uppercase character.
Although the default behavior is to list any user in the database, we can also limit our response to only those users who belong to a certain group, such as sysops, or bots. User groups are how MediaWiki grants users certain rights and privileges; see Help:User rights and groups for more details on how this system works.
The following documentation is the output of Special:ApiHelp/query+backlinks, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
One of the following values: ascending, descending
Default: ascending
blfilterredir
How to filter for redirects. If set to nonredirects when blredirect is enabled, this is only applied to the second level.
One of the following values: all, nonredirects, redirects
Default: all
bllimit
How many total pages to return. If blredirect is enabled, the limit applies to each level separately (which means up to 2 * bllimit results may be returned).
Type: integer or max
The value must be between 1 and 500.
Default: 10
blredirect
If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.
In the example above, only direct links to the philosophy page are returned.
When blredirect is set, the response will include any pages which backlink to redirects for the value in bltitle.
These redirected backlinks are treated as separate groups within the response hierarchy, one level down from the redirect itself.
The limit set in bllimit applies separately to each level of the response, so bllimit=25 would return up to 25 direct backlinks, and up to 25 backlinks within each individual redirect.
In addition, using blcontinue when a redirect was in the response will return more second-level backlinks, before finally moving on to more direct backlinks, once all the backlinks for a redirect have been returned in full.
API:Linkshere – finds all pages that link to a given page. Note that, unlike API:Backlinks, which is a list module, API:Linkshere is a prop module. See the respective pages on API:Properties and API:Lists for how these two kinds of modules differ.
API:Transcludedin – a prop module that finds all pages that transclude (i.e. embed information from) the given pages.
The following documentation is the output of Special:ApiHelp/query+blocks, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
{"batchcomplete":"","continue":{"bkcontinue":"20190226192632|8865878","continue":"-||"},"query":{"blocks":[{"id":8865881,"user":"168.11.166.47","by":"Gilliam","timestamp":"2019-02-26T19:28:56Z","expiry":"2020-02-26T19:28:56Z","reason":"{{school block}}","rangestart":"168.11.166.47","rangeend":"168.11.166.47","anononly":"","nocreate":"","allowusertalk":""},{"id":8865880,"user":"64.125.67.43","by":"Gilliam","timestamp":"2019-02-26T19:27:44Z","expiry":"2019-03-01T19:27:44Z","reason":"part of mass attack","rangestart":"64.125.67.43","rangeend":"64.125.67.43","anononly":"","nocreate":"","allowusertalk":""}...]}}
The following documentation is the output of Special:ApiHelp/query+categorymembers, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Which category to enumerate (required). Must include the Category: prefix. Cannot be used together with cmpageid.
cmpageid
Page ID of the category to enumerate. Cannot be used together with cmtitle.
Type: integer
cmprop
Which pieces of information to include:
ids
Adds the page ID.
title
Adds the title and namespace ID of the page.
sortkey
Adds the sortkey used for sorting in the category (hexadecimal string).
sortkeyprefix
Adds the sortkey prefix used for sorting in the category (human-readable part of the sortkey).
type
Adds the type that the page has been categorised as (page, subcat or file).
timestamp
Adds the timestamp of when the page was included.
Values (separate with | or alternative): ids, sortkey, sortkeyprefix, timestamp, title, type
Default: ids|title
cmnamespace
Only include pages in these namespaces. Note that cmtype=subcat or cmtype=file may be used instead of cmnamespace=14 or 6.
Note: Due to miser mode, using this may result in fewer than cmlimit results returned before continuing; in extreme cases, zero results may be returned.
Sortkey to start listing from, as returned by cmprop=sortkey. Can only be used with cmsort=sortkey.
cmendhexsortkey
Sortkey to end listing at, as returned by cmprop=sortkey. Can only be used with cmsort=sortkey.
cmstartsortkeyprefix
Sortkey prefix to start listing from. Can only be used with cmsort=sortkey. Overrides cmstarthexsortkey.
cmendsortkeyprefix
Sortkey prefix to end listing before (not at; if this value occurs it will not be included!). Can only be used with cmsort=sortkey. Overrides cmendhexsortkey.
{"api":{"query-continue":{"categorymembers":{"_cmcontinue":"subcat|44594e414d494353|10998823"}},"query":{"categorymembers":{"cm":[{"_pageid":"22688097","_ns":"0","_title":"Branches of physics"},{"_pageid":"3445246","_ns":"0","_title":"Glossary of classical physics"},{"_pageid":"24489","_ns":"0","_title":"Outline of physics"},...]}}}}
{"api":{"query-continue":{"categorymembers":{"_cmcontinue":"Magnetic levitation|"}},"query":{"categorymembers":{"cm":[{"_pageid":"1653925","_ns":"100","_title":"Portal:Physics"},{"_pageid":"22939","_ns":"0","_title":"Physics"},{"_pageid":"3445246","_ns":"0","_title":"Glossary of classical physics"},...]}}}}
{"api":{"query-continue":{"categorymembers":{"_cmcontinue":"subcat|57494b4950454449412050454f504c45|41491664"}},"query":{"categorymembers":{"cm":[{"_pageid":"1458692","_ns":"14","_title":"Category:Wikipedias by language"},{"_pageid":"22918730","_ns":"14","_title":"Category:Books about Wikipedia"},{"_pageid":"16957584","_ns":"14","_title":"Category:Critics of Wikipedia"},...]}}}}
The next subcategories (if there're more than 10) can be continued using the cmcontinue parameter from the response above.
(deprecated in 1.25) The API documentation described here will work best with MediaWiki 1.14 and earlier. It has been deprecated in favor of alldeletedrevisions api
The following documentation is the output of Special:ApiHelp/query+deletedrevs, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
#!/usr/bin/python3""" get_deleted_revisions.py MediaWiki Action API Code Samples Demo of `Deletedrevs` module: List the six most recent deleted revisions from User:Catrope MIT License"""importrequestsS=requests.Session()URL="https://en.wikipedia.org/w/api.php"PARAMS={"drend":"20070904000000","format":"json","druser":"Catrope","list":"deletedrevs","drstart":"20070904235959","drlimit":"6","drprop":"revid|user|minor|len|token","action":"query"}R=S.get(url=URL,params=PARAMS)DATA=R.json()print(DATA)
You don't have permission to view deleted revision information. On most wikis, viewing deleted revisions is restricted to sysops, but other wikis may have different rules.
The following documentation is the output of Special:ApiHelp/query+embeddedin, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
The following documentation is the output of Special:ApiHelp/query+exturlusage, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Values (separate with | or alternative): ids, title, url
Default: ids|title|url
eucontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
euprotocol
Protocol of the URL. If empty and euquery is set, the protocol is http and https. Leave both this and euquery empty to list all external links.
One of the following values: Can be empty, or bitcoin, ftp, ftps, geo, git, gopher, http, https, irc, ircs, magnet, mailto, matrix, mms, news, nntp, redis, sftp, sip, sips, sms, ssh, svn, tel, telnet, urn, wikipedia, worldwind, xmpp
Default: (empty)
euquery
Search string without protocol. See Special:LinkSearch. Leave empty to list all external links.
eunamespace
The page namespaces to enumerate.
Note: Due to miser mode, using this may result in fewer than eulimit results returned before continuing; in extreme cases, zero results may be returned.
The following documentation is the output of Special:ApiHelp/query+filearchive, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
{"batchcomplete":"","continue":{"facontinue":"0000007.jpg|20070128133944|288","continue":"-||"},"query":{"filearchive":[{"id":1778,"name":"!notedit.png","ns":6,"title":"File:!notedit.png","timestamp":"2011-04-25T13:17:47Z"},{"id":6949,"name":"\"Twilight_at_the_pond\"_by_A.A.Tutunov_(1976).jpg","ns":6,"title":"File:\"Twilight at the pond\" by A.A.Tutunov (1976).jpg","timestamp":"2019-01-26T11:48:52Z"},{"id":5814,"name":"---C--temp-Regelwerk.pdf","ns":6,"title":"File:---C--temp-Regelwerk.pdf","timestamp":"2017-03-09T10:09:24Z"},...]}}
The following documentation is the output of Special:ApiHelp/query+imageusage, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
One of the following values: ascending, descending
Default: ascending
iufilterredir
How to filter for redirects. If set to nonredirects when iuredirect is enabled, this is only applied to the second level.
One of the following values: all, nonredirects, redirects
Default: all
iulimit
How many total pages to return. If iuredirect is enabled, the limit applies to each level separately (which means up to 2 * iulimit results may be returned).
Type: integer or max
The value must be between 1 and 500.
Default: 10
iuredirect
If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.
{"batchcomplete":"","continue":{"continue":"-||","iucontinue":"4|33464895"},"query":{"imageusage":[{"ns":0,"pageid":14072,"title":"History of Wikipedia"},{"ns":4,"pageid":16842768,"title":"Wikipedia:Wikipedia logos"},{"ns":2,"pageid":30536602,"title":"User:J Komara"}]}}
The following documentation is the output of Special:ApiHelp/query+iwbacklinks, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Find all pages that link to the given interwiki link.
Can be used to find all links with a prefix, or all links to a title (with a given prefix). Using neither parameter is effectively "all interwiki links".
{"batchcomplete":"","continue":{"iwblcontinue":"wikibooks|Main_Page|438739","continue":"-||"},"query":{"iwbacklinks":[{"pageid":18606,"ns":0,"title":"Liberation Tigers of Tamil Eelam"},{"pageid":43347,"ns":1,"title":"Talk:Vi"},...]}}
This module can be used to find all pages that link to the given interwiki link. It finds all links using a prefix, or all links to a given title (with a given prefix). Using neither parameter returns All IW Links.
The following documentation is the output of Special:ApiHelp/query+langbacklinks, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Find all pages that link to the given language link.
Can be used to find all links with a language code, or all links to a title (with a given language). Using neither parameter is effectively "all language links".
Note that this may not consider language links added by extensions.
This module can be used to find all pages that link to the given language link. It finds all links using a language code, or all links to a given title (with a given language). Using neither parameter is effectively All Language Links.
The following documentation is the output of Special:ApiHelp/query+logevents, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
One of the following values: Can be empty, or abusefilter, abusefilter-protected-vars, abusefilterblockeddomainhit, abusefilterprivatedetails, block, checkuser-temporary-account, contentmodel, create, delete, gblblock, gblrename, gblrights, globalauth, import, interwiki, ipinfo, liquidthreads, managetags, massmessage, merge, messagebundle, move, newsletter, newusers, notifytranslators, oath, pagelang, pagetranslation, patrol, protect, renameuser, rights, spamblacklist, suppress, tag, thanks, timedmediahandler, titleblacklist, translationreview, upload, urlshortener, usermerge
leaction
Filter log actions to only this action. Overrides letype. In the list of possible values, values with the asterisk wildcard such as action/* can have different strings after the slash (/).
{"batchcomplete":"","continue":{"continue":"-||","lecontinue":"20190606150600|99729503"},"query":{"logevents":[{"action":"create","comment":"added to WikiProject (via [[WP:JWB]])","logid":99729506,"logpage":60974819,"ns":15,"pageid":60974819,"params":{},"timestamp":"2019-06-06T15:06:07Z","title":"Category talk:Electronic albums by Senegalese artists","type":"create","user":"Jevansen"}...]}}
For autoblock unblock entries, the title returned is shown as "User:$blockid". This is not a userpage, but just the way it is stored. See T19781.
When userid is specified for account creation events, the userid of the creating user is returned. When absent, the userid returned is that of the created account. See T73020.
The following documentation is the output of Special:ApiHelp/query+protectedtitles, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
The following documentation is the output of Special:ApiHelp/query+querypage, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
{"batchcomplete":"","continue":{"continue":"-||","qpoffset":10},"query":{"querypage":{"cached":"","cachedtimestamp":"2019-02-22T11:46:48Z","maxresults":5000,"name":"Uncategorizedpages","results":[{"ns":0,"title":"Abelardo Delgado","value":"0"},{"ns":0,"title":"Agriculture in Tonga","value":"0"},{"ns":0,"title":"Andriandramaka","value":"0"}...]}}}
The following documentation is the output of Special:ApiHelp/query+random, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Pages are listed in a fixed sequence, only the starting point is random. This means that if, for example, Main Page is the first random page in the list, List of fictional monkeys will always be second, List of people on stamps of Vanuatu third, etc.
{"batchcomplete":"","continue":{"rncontinue":"0.559881820010|0.559881954661|47659388|0","continue":"-||"},"query":{"random":[{"id":32381675,"ns":0,"title":"Mallabhum Institute of Technology"},{"id":25126452,"ns":3,"title":"User talk:96.232.132.176"},{"id":1440028,"ns":0,"title":"Hyundai Epsilon engine"},{"id":35446805,"ns":15,"title":"Category talk:Ukrainian card games"},{"id":12613,"ns":0,"title":"Grue"}]}}
Unlike most modules in the Action API, the default number of pages returned is 1, not 10.
Pages are returned in a fixed sequence; only the starting point is actually random.
The default behavior is to pick pages from across the entire wiki, including talk pages, user pages, and so on. If you are looking for similar functionality as Special:Random, i.e. pick random articles, restrict rnnamespace to 0.
If the number of pages is fewer than rnlimit, the request will simply return all available pages. It will not repeat pages to pad out the response up to the limit.
The following documentation is the output of Special:ApiHelp/query+recentchanges, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
rcgeneraterevisions
When being used as a generator, generate revision IDs rather than titles. Recent change entries without associated revision IDs (e.g. most log entries) will generate nothing.
Many log actions can be viewed using this module excluding patrol actions as they are not present in the recentchanges table.
The Timestamp to start listing from may not be more than $wgRCMaxAge into the past, which on Wikimedia wikis is 30 days.
New changes may be inserted to the recentchanges table slightly out of order with respect to their timestamp. Thus, when requesting the most recent changes twice in a row, the second response may contain new changes inserted a few seconds before the most recent one in the first response. If you repeatedly call this module to get a stream a recent change, consider adding some overlap between requests to not miss any changes.
The following documentation is the output of Special:ApiHelp/query+search, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Search for page titles or content matching this value. You can use the search string to invoke special search features, depending on what the wiki's search backend implements.
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
Type: integer
The value must be no less than 0.
Default: 0
srqiprofile
Query independent profile to use (affects ranking algorithm).
classic
Ranking based on the number of incoming links, some templates, page language and recency (templates/language/recency may not be activated on this wiki).
classic_noboostlinks
Ranking based on some templates, page language and recency when activated on this wiki.
empty
Ranking based solely on query dependent features (for debug only).
wsum_inclinks
Weighted sum based on incoming links
wsum_inclinks_pv
Weighted sum based on incoming links and weekly pageviews
popular_inclinks_pv
Ranking based primarily on page views
popular_inclinks
Ranking based primarily on incoming link counts
engine_autoselect
Let the search engine decide on the best profile to use.
One of the following values: classic, classic_noboostlinks, empty, engine_autoselect, popular_inclinks, popular_inclinks_pv, wsum_inclinks, wsum_inclinks_pv
Default: engine_autoselect
srqdprofile
Query dependent profile to use (affects ranking algorithm).
default
(no description)
perfield_builder
(no description)
perfield_builder_relaxed
(no description)
perfield_builder_title_filter
(no description)
engine_autoselect
Let the search engine decide on the best profile to use.
One of the following values: default, engine_autoselect, perfield_builder, perfield_builder_relaxed, perfield_builder_title_filter
Default: engine_autoselect
srwhat
Which type of search to perform.
One of the following values: nearmatch, text, title
srinfo
Which metadata to return.
Values (separate with | or alternative): rewrittenquery, suggestion, totalhits
Default: totalhits|suggestion|rewrittenquery
srprop
Which properties to return:
size
Adds the size of the page in bytes.
wordcount
Adds the word count of the page.
timestamp
Adds the timestamp of when the page was last edited.
snippet
Adds a snippet of the page, with query term highlighting markup.
titlesnippet
Adds the page title, with query term highlighting markup.
redirecttitle
Adds the title of the matching redirect.
redirectsnippet
Adds the title of the matching redirect, with query term highlighting markup.
sectiontitle
Adds the title of the matching section.
sectionsnippet
Adds the title of the matching section, with query term highlighting markup.
isfilematch
Adds a boolean indicating if the search matched file content.
categorysnippet
Adds the matching category name, with query term highlighting markup.
score
Deprecated. Ignored.
hasrelated
Deprecated. Ignored.
extensiondata
Adds extra data generated by extensions.
Values (separate with | or alternative): categorysnippet, extensiondata, isfilematch, redirectsnippet, redirecttitle, sectionsnippet, sectiontitle, size, snippet, timestamp, titlesnippet, wordcount, hasrelated, score
Default: size|wordcount|timestamp|snippet
srinterwiki
Include interwiki results in the search, if available.
Enable internal query rewriting. Some search backends can rewrite the query into another which is thought to provide better results, for instance by correcting spelling errors.
One of the following values: create_timestamp_asc, create_timestamp_desc, incoming_links_asc, incoming_links_desc, just_match, last_edit_asc, last_edit_desc, none, random, relevance, user_random
{"batchcomplete":"","continue":{"sroffset":10,"continue":"-||"},"query":{"searchinfo":{"totalhits":5060},"search":[{"ns":0,"title":"Nelson Mandela","pageid":21492751,"size":196026,"wordcount":23664,"snippet":"<span class=\"searchmatch\">Nelson</span> Rolihlahla <span class=\"searchmatch\">Mandela</span> (/mænˈdɛlə/, Xhosa: [xoliɬaˈɬa <span class=\"searchmatch\">manˈdɛla</span>]; 18 July 1918 – 5 December 2013) was a South African anti-apartheid revolutionary,","timestamp":"2018-07-23T07:59:43Z"},{"ns":0,"title":"Death of Nelson Mandela","pageid":41284488,"size":133513,"wordcount":13512,"snippet":"On December 5, 2013, <span class=\"searchmatch\">Nelson</span> <span class=\"searchmatch\">Mandela</span>, the first President of South Africa to be elected in a fully representative democratic election, as well as the country's","timestamp":"2018-07-19T17:30:59Z"}...]}}
Depending on which search backend is in use, how srsearch is interpreted may vary. On Wikimedia wikis which use CirrusSearch, see Help:CirrusSearch for information about the search syntax.
The following documentation is the output of Special:ApiHelp/query+tags, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
{"batchcomplete":"","continue":{"continue":"-||","tgcontinue":"Extraneous formatting"},"query":{"tags":[{"hitcount":2481517,"name":"AWB"},{"hitcount":10849,"name":"Addition of interwiki link"},{"hitcount":819,"name":"Citing predatory open access journal"}]}}
The following documentation is the output of Special:ApiHelp/query+usercontribs, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
{"batchcomplete":"","continue":{"uccontinue":"20190130180447|880978627","continue":"-||"},"query":{"usercontribs":[{"userid":24,"user":"Jimbo Wales","pageid":9870625,"revid":881893498,"parentid":881892978,"ns":3,"title":"User talk:Jimbo Wales","timestamp":"2019-02-05T14:05:11Z","comment":"/* Fancy I edit Wikipedia T-Shirt */","size":29753},{"userid":24,"user":"Jimbo Wales","pageid":9870625,"revid":881282261,"parentid":881270759,"ns":3,"title":"User talk:Jimbo Wales","timestamp":"2019-02-01T15:29:31Z","comment":"/* Macedonian President Gorge Ivanov is now in the House arrest */","size":60166},{"userid":24,"user":"Jimbo Wales","pageid":9513191,"revid":881245934,"parentid":881240310,"ns":1,"title":"Talk:Mark Dice","timestamp":"2019-02-01T09:48:38Z","comment":"/* So good they names it twice */","size":74128},...]}}
The module returns page edits and moves, but not other operations, such as uploads.
Prior to MediaWiki v1.14, the start parameter was used to view additional results within the response. Between v1.14 and v1.22, start was used to continue when listing a single user's contributions; continue was used when listing contributions from multiple users. From v1.23 forwards, all queries use continue.
The following documentation is the output of Special:ApiHelp/query+users, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Tags if the user is blocked, by whom, and for what reason.
groups
Lists all the groups each user belongs to.
groupmemberships
Lists groups that each user has been explicitly assigned to, including the expiry date of each group membership.
implicitgroups
Lists all the groups a user is automatically a member of.
rights
Lists all the rights each user has.
editcount
Adds the user's edit count.
registration
Adds the user's registration timestamp.
emailable
Tags if the user can and wants to receive email through Special:Emailuser.
gender
Tags the gender of the user. Returns "male", "female", or "unknown".
centralids
Adds the central IDs and attachment status for the user.
cancreate
Indicates whether an account for valid but unregistered usernames can be created. To check whether the current user can perform the account creation, use action=query&meta=userinfo&uiprop=cancreateaccount.
tempexpired
Indicates whether the temporary account has expired or not. If account isn't temporary, null is returned.
Values (separate with | or alternative): blockinfo, cancreate, centralids, editcount, emailable, gender, groupmemberships, groups, implicitgroups, registration, rights, tempexpired
usattachedwiki
With usprop=centralids, indicate whether the user is attached with the wiki identified by this ID.
GET request to list pages on the current user's watchlist that were changed within the given time period, ordered by time of the last change of the watched page.
The following documentation is the output of Special:ApiHelp/query+watchlist, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
Fetch additional information about the top revision for recently changed pages on the current user's watchlist, including when temporarily watched items will expire.
{"batchcomplete":"","query":{"watchlist":[{"ns":1,"old_revid":898447862,"pageid":5858,"revid":898447924,"title":"Talk:Software","type":"edit"},{"ns":0,"old_revid":896386764,"pageid":18934886,"revid":897854521,"title":"Proprietary software","type":"edit"},{"minor":"","ns":0,"old_revid":894771707,"pageid":1721496,"revid":897348916,"title":"Free and open-source software","type":"edit"}]}}
This module should not be confused with API:Watchlistraw, which lists all the pages on the logged in user's watchlist, regardless of whether they were recently changed or not.
The following documentation is the output of Special:ApiHelp/query+watchlistraw, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org).
This module should not be confused with API:Watchlist, which returns pages on the current user's watchlist that were changed within the given time period, ordered by time of the last change of the watched page.
The results of this query module are returned as part of the api node, not the query node.
API:Watchlist – Get pages on a user's watchlist that were changed within the given time period, ordered by time of the last change of the watched page.