CINXE.COM

MediaWiki API help - Wikipedia

<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>MediaWiki API help - Wikipedia</title> <script>document.documentElement.className="client-js";RLCONF={"wgBreakFrames":true,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"9f4eb513-5f83-4b0b-bcf1-f0a6cd4d1a69","wgCanonicalNamespace":"Special","wgCanonicalSpecialPageName":"ApiHelp","wgNamespaceNumber":-1,"wgPageName":"Special:ApiHelp","wgTitle":"ApiHelp","wgCurRevisionId":0,"wgRevisionId":0,"wgArticleId":0,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Special:ApiHelp","wgRelevantArticleId":0,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{ "levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":0,"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"user.options":"loading","mediawiki.hlist":"ready","mediawiki.apipretty":"ready","mediawiki.skinning.interface":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.page.ready","ext.centralNotice.geoIP","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups", "ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.cx.eventlogging.campaigns"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cmediawiki.apipretty%2Chlist%7Cmediawiki.skinning.interface&amp;only=styles&amp;skin=apioutput"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;safemode=1&amp;skin=apioutput"></script> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="noindex,nofollow,max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="MediaWiki API help - Wikipedia"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Special:ApiHelp"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Special:ApiHelp"> <link rel="license" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Copyright"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns--1 ns-special mw-special-ApiHelp page-Special_ApiHelp rootpage-Special_ApiHelp skin-apioutput action-view"><div class="mw-body" role="main"> <h1 id="firstHeading">MediaWiki API help</h1> <div class="mw-body-content"> <div id="mw-content-text" class="mw-body-content"><p>This is an auto-generated MediaWiki API documentation page. </p><p>Documentation and examples: <a class="external free" href="https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page">https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page</a> </p><h2 class="apihelp-header apihelp-module-name" dir="ltr" lang="en" id="query+oldreviewedpages">list=oldreviewedpages (or)</h2><div class="apihelp-linktrail">(<a href="/wiki/Special:ApiHelp/main" class="apihelp-linktrail" dir="ltr" lang="en">main</a> | <a href="/wiki/Special:ApiHelp/query" class="apihelp-linktrail" dir="ltr" lang="en">query</a> | <b dir="ltr" lang="en">oldreviewedpages</b>)</div> <div class="apihelp-block apihelp-flags"><ul><li><span class="apihelp-flag-readrights">This module requires read rights.</span></li><li><span class="apihelp-flag-generator">This module can be used as a generator.</span></li><li><span class="apihelp-source">Source: FlaggedRevs (Pending Changes)</span></li><li><span class="apihelp-license">License: <a href="/wiki/Special:Version/License/FlaggedRevs" title="Special:Version/License/FlaggedRevs"><span dir="ltr" lang="en">GPL-2.0-or-later</span></a></span></li></ul></div> <p>Enumerates pages that have changes pending review. </p> <div class="apihelp-block apihelp-parameters"><div class="apihelp-block-head">Specific parameters:</div><div class="apihelp-block-header">Other general parameters are available.</div><dl><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:orstart">orstart</span></dt><dd class="description"><p>Start listing at this timestamp. </p></dd><dd class="info">Type: timestamp (<a href="/w/api.php?action=help&amp;modules=main#main/datatype/timestamp">allowed formats</a>)</dd><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:orend">orend</span></dt><dd class="description"><p>Stop listing at this timestamp. </p></dd><dd class="info">Type: timestamp (<a href="/w/api.php?action=help&amp;modules=main#main/datatype/timestamp">allowed formats</a>)</dd><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:ordir">ordir</span></dt><dd class="description"><p>In which direction to enumerate: </p></dd><dd class="info">One of the following values: newer, older</dd><dd class="info">Default: newer</dd><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:ormaxsize">ormaxsize</span></dt><dd class="description"><p>Maximum character count change size. </p></dd><dd class="info">Type: integer</dd><dd class="info">The value must be no less than 0.</dd><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:orfilterwatched">orfilterwatched</span></dt><dd class="description"><p>How to filter for pages on your watchlist. </p></dd><dd class="info">One of the following values: all, watched</dd><dd class="info">Default: all</dd><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:ornamespace">ornamespace</span></dt><dd class="description"><p>The namespaces to enumerate. </p></dd><dd class="info">Values (separate with <kbd>|</kbd> or <a href="/w/api.php?action=help&amp;modules=main#main/datatypes">alternative</a>): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 118, 119, 126, 127, 710, 711, 828, 829</dd><dd class="info">To specify all values, use <kbd>*</kbd>.</dd><dd class="info">Default: 0</dd><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:orcategory">orcategory</span></dt><dd class="description"><p>Show pages only in the given category. </p></dd><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:orfilterredir">orfilterredir</span></dt><dd class="description"><p>How to filter for redirects. </p></dd><dd class="info">One of the following values: all, nonredirects, redirects</dd><dd class="info">Default: all</dd><dt><span dir="ltr" lang="en" id="query+oldreviewedpages:orlimit">orlimit</span></dt><dd class="description"><p>How many total pages to return. </p></dd><dd class="info">Type: integer or <kbd>max</kbd></dd><dd class="info">The value must be between 1 and 500.</dd><dd class="info">Default: 10</dd></dl></div> <div class="apihelp-block apihelp-examples"><div class="apihelp-block-head">Examples:</div><dl><dt>Show a list of pages with pending unreviewed changes</dt><dd><a href="/w/api.php?action=query&amp;list=oldreviewedpages&amp;ornamespace=0" dir="ltr" rel="nofollow">api.php?action=query&amp;list=oldreviewedpages&amp;ornamespace=0</a> <a href="/wiki/Special:ApiSandbox#action=query&amp;list=oldreviewedpages&amp;ornamespace=0"><small>[open in sandbox]</small></a></dd><dt>Show info about some old reviewed pages</dt><dd><a href="/w/api.php?action=query&amp;generator=oldreviewedpages&amp;gorlimit=4&amp;prop=info" dir="ltr" rel="nofollow">api.php?action=query&amp;generator=oldreviewedpages&amp;gorlimit=4&amp;prop=info</a> <a href="/wiki/Special:ApiSandbox#action=query&amp;generator=oldreviewedpages&amp;gorlimit=4&amp;prop=info"><small>[open in sandbox]</small></a></dd></dl></div> <!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/wiki/Special:ApiHelp">https://en.wikipedia.org/wiki/Special:ApiHelp</a>"</div></div> </div> </div> <script>(RLQ=window.RLQ||[]).push(function(){mw.log.warn("This page is using the deprecated ResourceLoader module \"mediawiki.skinning.interface\".\n[1.43] The use of the `interface-message-box` feature with SkinModule is deprecated in favor of CodexModule. Please remove this feature.More information can be found at [[mw:Manual:ResourceLoaderSkinModule]]. ");mw.config.set({"wgHostname":"mw-api-ext.codfw.main-7556f8b5dd-jvbsh","wgBackendResponseTime":104});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10