From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page API:Querypage and the translation is 60% complete.

Other languages:
English • ‎dansk • ‎español • ‎français • ‎日本語
MediaWiki バージョン: 1.18

GET request to get a list provided by a QueryPage-based special page.


list=querypage (qp)

(main | query | querypage)
  • This module requires read rights.
  • This module can be used as a generator.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Get a list provided by a QueryPage-based special page.


The name of the special page. Note, this is case sensitive.

This parameter is required.
One of the following values: Ancientpages, BrokenRedirects, Deadendpages, DoubleRedirects, ListDuplicatedFiles, Listredirects, Lonelypages, Longpages, MediaStatistics, Mostcategories, Mostimages, Mostinterwikis, Mostlinkedcategories, Mostlinkedtemplates, Mostlinked, Mostrevisions, Fewestrevisions, Shortpages, Uncategorizedcategories, Uncategorizedpages, Uncategorizedimages, Uncategorizedtemplates, Unusedcategories, Unusedimages, Wantedcategories, Wantedfiles, Wantedpages, Wantedtemplates, Unwatchedpages, Unusedtemplates, Withoutinterwiki, UnconnectedPages, GadgetUsage, MostGloballyLinkedFiles, GloballyWantedFiles, DisambiguationPages, DisambiguationPageLinks

When more results are available, use this to continue.

Type: integer
Default: 0

Number of results to return.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
Default: 10

GET リクエスト

In the below query, we call the API to get a list of the first ten pages which are uncategorized


  "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"

サンプル コード




    MediaWiki Action API Code Samples
    Demo of `Querypage` module: List first 10 pages which are 

    MIT License

import requests

S = requests.Session()

URL = "https://en.wikipedia.org/w/api.php"

    "qplimit": "10",
    "action": "query",
    "qppage": "Uncategorizedpages",
    "list": "querypage",
    "format": "json"

R = S.get(url=URL, params=PARAMS)
DATA = R.json()


Special page values

(MediaWiki 1.32.0)

Ancientpages Listredirects Mostlinked Unusedtemplates
BrokenRedirects Lonelypages Mostrevisions Unwatchedpages
Deadendpages Longpages Shortpages Wantedcategories
DisambiguationPageLinks MediaStatistics Uncategorizedcategories Wantedfiles
DisambiguationPages Mostcategories Uncategorizedpages Wantedpages
DoubleRedirects MostGloballyLinkedFiles Uncategorizedimages Wantedtemplates
EntityUsage Mostimages Uncategorizedtemplates Withoutinterwiki
Fewestrevisions Mostinterwikis UnconnectedPages
GloballyWantedFiles Mostlinkedcategories Unusedcategories
ListDuplicatedFiles Mostlinkedtemplates Unusedimages


コード 情報
unknown_qppage Unrecognized value for parameter qppage: value.
noqppage パラメーター qppage を設定してください。


  • This module can be used as a generator .
  • Namespace filtering is unavailable on these pages. The possible way is to manually filter "ns" from collected results.