MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/API

action=query

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Fetch data from and about MediaWiki.

All data modifications will first have to use query to acquire a token to prevent abuse from malicious sites.

パラメーター:
prop

照会ページ用に、どのプロパティを取得するか。

値 (|で区切る): categoriescategoryinfocontributorsdeletedrevisionsduplicatefilesextlinksfileusageimageinfoimagesinfoiwlinkslanglinkslinkslinksherepagepropsredirectsreferencesrevisionsstashimageinfotemplatestranscludedin
list

どの一覧を取得するか。

値 (|で区切る): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsallusersbacklinksblockscategorymembersdeletedrevsembeddedinexturlusagefilearchiveimageusageiwbacklinkslangbacklinkslogeventsmystashedfilespagepropnamespageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangessearchtagsusercontribsuserswatchlistwatchlistraw
meta

どのメタデータを取得するか。

値 (|で区切る): allmessagesauthmanagerinfofilerepoinfositeinfotokensuserinfo
indexpageids

Include an additional pageids section listing all returned page IDs.

Type: boolean (details)
export

指定されたまたは生成されたすべてのページの、現在の版を書き出します。

Type: boolean (details)
exportnowrap

Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with export.

Type: boolean (details)
iwurl

タイトルがウィキ間リンクである場合に、完全なURLを取得するかどうか。

Type: boolean (details)
continue

When more results are available, use this to continue.

rawcontinue

Return raw query-continue data for continuation.

Type: boolean (details)
titles

対象のページ名のリスト。

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
pageids

対象のページIDのリスト。

Type: list of integers
複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
revids

対象の版IDのリスト。

Type: list of integers
複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
generator

クエリモジュールを実行することにより対象のページの一覧を取得する。

注意 Generator パラメーターの名前は "g" で始まります。例を参照してください。

値 (次の値のいずれか1つ): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsbacklinkscategoriescategorymembersdeletedrevisionsduplicatefilesembeddedinexturlusagefileusageimagesimageusageiwbacklinkslangbacklinkslinkslinksherepageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangesredirectsrevisionssearchtemplatestranscludedinwatchlistwatchlistraw
redirects

titles, pageids, および revids, および generator によって返されたページの転送を自動的に解決する。

Type: boolean (details)
converttitles

Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion. Languages that support variant conversion include gan、iu、kk、ku、shi、sr、tg、uz、zh.

Type: boolean (details)

prop=categories (cl)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

ページが属するすべてのカテゴリを一覧表示します。

パラメーター:
clprop

各カテゴリについて取得する追加のプロパティ:

sortkey
Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.
timestamp
カテゴリが追加されたときのタイムスタンプを追加します。
hidden
__HIDDENCAT__で隠されているカテゴリに印を付ける。
値 (|で区切る): sortkey、timestamp、hidden
clshow

どの種類のカテゴリを表示するか。

値 (|で区切る): hidden、!hidden
cllimit

返すカテゴリの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
clcontinue

When more results are available, use this to continue.

clcategories

Only list these categories. Useful for checking whether a certain page is in a certain category.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
cldir

The direction in which to list.

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
例:
ページ Albert Einstein が属しているカテゴリの一覧を取得する。
api.php?action=query&prop=categories&titles=Albert%20Einstein [サンドボックスで開く]
ページ Albert Einstein で使われているすべてのカテゴリに関する情報を取得する。
api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info [サンドボックスで開く]

prop=categoryinfo (ci)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたカテゴリに関する情報を返します。

パラメーター:
cicontinue

When more results are available, use this to continue.

例:
Category:Foo および Category:Bar に関する情報を取得する。
api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar [サンドボックスで開く]

prop=contributors (pc)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

ページへのログインした投稿者の一覧と匿名投稿者の数を取得します。

パラメーター:
pcgroup

Only include users in the given groups. Does not include implicit or auto-promoted groups like *, user, or autoconfirmed.

値 (|で区切る): bot、sysop、bureaucrat
pcexcludegroup

Exclude users in the given groups. Does not include implicit or auto-promoted groups like *, user, or autoconfirmed.

値 (|で区切る): bot、sysop、bureaucrat
pcrights

Only include users having the given rights. Does not include rights granted by implicit or auto-promoted groups like *, user, or autoconfirmed.

値 (|で区切る): apihighlimits、applychangetags、autoconfirmed、autocreateaccount、autopatrol、bigdelete、block、blockemail、bot、browsearchive、changetags、createaccount、createpage、createtalk、delete、deletedhistory、deletedtext、deletelogentry、deleterevision、edit、editcontentmodel、editinterface、editprotected、editmyoptions、editmyprivateinfo、editmyusercss、editmyuserjs、editmywatchlist、editsemiprotected、editusercssjs、editusercss、edituserjs、hideuser、import、importupload、ipblock-exempt、managechangetags、markbotedits、mergehistory、minoredit、move、movefile、move-categorypages、move-rootuserpages、move-subpages、nominornewtalk、noratelimit、override-export-depth、pagelang、passwordreset、patrol、patrolmarks、protect、purge、read、reupload、reupload-own、reupload-shared、rollback、sendemail、siteadmin、suppressionlog、suppressredirect、suppressrevision、unblockself、undelete、unwatchedpages、upload、upload_by_url、userrights、userrights-interwiki、viewmyprivateinfo、viewmywatchlist、viewsuppressed、writeapi、renameuser、spamblacklistlog、skipcaptcha、mf-uploadbutton
値の最大値は 50 (ボットの場合は 500) です。
pcexcluderights

Exclude users having the given rights. Does not include rights granted by implicit or auto-promoted groups like *, user, or autoconfirmed.

値 (|で区切る): apihighlimits、applychangetags、autoconfirmed、autocreateaccount、autopatrol、bigdelete、block、blockemail、bot、browsearchive、changetags、createaccount、createpage、createtalk、delete、deletedhistory、deletedtext、deletelogentry、deleterevision、edit、editcontentmodel、editinterface、editprotected、editmyoptions、editmyprivateinfo、editmyusercss、editmyuserjs、editmywatchlist、editsemiprotected、editusercssjs、editusercss、edituserjs、hideuser、import、importupload、ipblock-exempt、managechangetags、markbotedits、mergehistory、minoredit、move、movefile、move-categorypages、move-rootuserpages、move-subpages、nominornewtalk、noratelimit、override-export-depth、pagelang、passwordreset、patrol、patrolmarks、protect、purge、read、reupload、reupload-own、reupload-shared、rollback、sendemail、siteadmin、suppressionlog、suppressredirect、suppressrevision、unblockself、undelete、unwatchedpages、upload、upload_by_url、userrights、userrights-interwiki、viewmyprivateinfo、viewmywatchlist、viewsuppressed、writeapi、renameuser、spamblacklistlog、skipcaptcha、mf-uploadbutton
値の最大値は 50 (ボットの場合は 500) です。
pclimit

返す投稿者の数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
pccontinue

When more results are available, use this to continue.

prop=deletedrevisions (drv)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

Get deleted revision information.

May be used in several ways:

  1. Get deleted revisions for a set of pages, by setting titles or pageids. Ordered by title and timestamp.
  2. Get data about a set of deleted revisions by setting their IDs with revids. Ordered by revision ID.
パラメーター:
drvprop

Which properties to get for each revision:

ids
版のID。
flags
Revision flags (minor).
timestamp
版のタイムスタンプ。
user
その版を作成した利用者。
userid
その版の作成者の利用者ID。
size
その版の長さ (バイト) 。
sha1
SHA-1 (base 16) of the revision.
contentmodel
Content model ID of the revision.
comment
その版の利用者によるコメント。
parsedcomment
その版の利用者による、構文解析されたコメント。
content
その版のテキスト。
tags
その版のタグ。
parsetree
The XML parse tree of revision content (requires content model wikitext).
値 (|で区切る): ids、flags、timestamp、user、userid、size、sha1、contentmodel、comment、parsedcomment、content、tags、parsetree
既定値: ids|timestamp|flags|comment|user
drvlimit

返す版の数を制限する。

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

Expand templates in revision content (requires drvprop=content).

Type: boolean (details)
drvgeneratexml
廃止予定です。

Generate XML parse tree for revision content (requires drvprop=content; replaced by drvprop=parsetree).

Type: boolean (details)
drvparse

Parse revision content (requires drvprop=content). For performance reasons, if this option is used, drvlimit is enforced to 1.

Type: boolean (details)
drvsection

Only retrieve the content of this section number.

drvdiffto

Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.

drvdifftotext

Text to diff each revision to. Only diffs a limited number of revisions. Overrides drvdiffto. If drvsection is set, only that section will be diffed against this text.

drvdifftotextpst

Perform a pre-save transform on the text before diffing it. Only valid when used with drvdifftotext.

Type: boolean (details)
drvcontentformat

Serialization format used for drvdifftotext and expected for output of content.

値 (次の値のいずれか1つ): text/x-wiki、text/javascript、application/json、text/css、text/plain
drvstart

列挙の始点となるタイムスタンプ。版IDの一覧を処理するときには無視されます。

Type: timestamp (allowed formats)
drvend

列挙の終点となるタイムスタンプ。版IDの一覧を処理するときには無視されます。

Type: timestamp (allowed formats)
drvdir

列挙の方向:

newer
古いものを先に表示します。注意: drvstart は drvend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: drvstart は drvend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
drvtag

このタグが付与された版のみ表示します。

drvuser

この利用者による版のみを一覧表示。

Type: user name
drvexcludeuser

この利用者による版を一覧表示しない。

Type: user name
drvcontinue

When more results are available, use this to continue.

例:
ページ Main Page および Talk:Main Page の削除された版とその内容を一覧表示する。
api.php?action=query&prop=deletedrevisions&titles=Main%20Page|Talk:Main%20Page&drvprop=user|comment|content [サンドボックスで開く]
削除された版 123456 に関する情報を一覧表示する。
api.php?action=query&prop=deletedrevisions&revids=123456 [サンドボックスで開く]

prop=duplicatefiles (df)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

List all files that are duplicates of the given files based on hash values.

パラメーター:
dflimit

How many duplicate files to return.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
dfcontinue

When more results are available, use this to continue.

dfdir

The direction in which to list.

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
dflocalonly

Look only for files in the local repository.

Type: boolean (details)
  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたページにあるすべての外部URL (インターウィキを除く) を返します。

パラメーター:
ellimit

返すリンクの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
eloffset

When more results are available, use this to continue.

Type: integer
elprotocol

URLのプロトコル。このパラメータが空であり、かつelquery が設定されている場合, protocol は http となります。すべての外部リンクを一覧表示するためにはこのパラメータと elquery の両方を空にしてください。

値 (次の値のいずれか1つ): 空欄にするか、または bitcoin、ftp、ftps、geo、git、gopher、http、https、irc、ircs、magnet、mailto、mms、news、nntp、redis、sftp、sip、sips、sms、ssh、svn、tel、telnet、urn、worldwind、xmpp
既定値: (空)
elquery

Search string without protocol. Useful for checking whether a certain page contains a certain external url.

elexpandurl

Expand protocol-relative URLs with the canonical protocol.

Type: boolean (details)
例:
Main Page の外部リンクの一覧を取得する。
api.php?action=query&prop=extlinks&titles=Main%20Page [サンドボックスで開く]

prop=fileusage (fu)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

Find all pages that use the given files.

パラメーター:
fuprop

取得するプロパティ:

pageid
各ページのページID。
title
各ページのページ名。
redirect
Flag if the page is a redirect.
値 (|で区切る): pageid、title、redirect
既定値: pageid|title|redirect
funamespace

Only include pages in these namespaces.

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
fushow

Show only items that meet these criteria:

redirect
Only show redirects.
!redirect
Only show non-redirects.
値 (|で区切る): redirect、!redirect
fulimit

How many to return.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
fucontinue

When more results are available, use this to continue.

prop=imageinfo (ii)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Returns file information and upload history.

パラメーター:
iiprop

取得するファイル情報:

timestamp
Adds timestamp for the uploaded version.
user
Adds the user who uploaded each file version.
userid
Add the ID of the user that uploaded each file version.
comment
Comment on the version.
parsedcomment
Parse the comment on the version.
canonicaltitle
Adds the canonical title of the file.
url
ファイルと説明ページへのURLを提供します。
size
バイト単位でファイルや高さ、幅、ページ数のサイズを追加します(該当する場合)。
dimensions
Alias for size.
sha1
Adds SHA-1 hash for the file.
mime
ファイルのMIMEタイプを追加します。
thumbmime
画像サムネイルのMIMEタイプを追加します(url と iiurlwidth パラメータが必須です)。
mediatype
ファイルのメディアタイプを追加します。
metadata
ファイルのバージョンの Exif メタデータを一覧表示します。
commonmetadata
Lists file format generic metadata for the version of the file.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted.
archivename
非最新バージョンのアーカイブバージョンのファイル名を追加します。
bitdepth
バージョンのビット深度を追加します。
uploadwarning
Used by the Special:Upload page to get information about an existing file. Not intended for use outside MediaWiki core.
値 (|で区切る): timestamp、user、userid、comment、parsedcomment、canonicaltitle、url、size、dimensions、sha1、mime、thumbmime、mediatype、metadata、commonmetadata、extmetadata、archivename、bitdepth、uploadwarning
既定値: timestamp|user
iilimit

How many file revisions to return per file.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 1
iistart

一覧表示の始点となるタイムスタンプ。

Type: timestamp (allowed formats)
iiend

一覧表示の終点となるタイムスタンプ。

Type: timestamp (allowed formats)
iiurlwidth

If iiprop=url is set, a URL to an image scaled to this width will be returned. For performance reasons if this option is used, no more than 50 scaled images will be returned.

Type: integer
既定値: -1
iiurlheight

Similar to iiurlwidth.

Type: integer
既定値: -1
iimetadataversion

Version of metadata to use. If latest is specified, use latest version. Defaults to 1 for backwards compatibility.

既定値: 1
iiextmetadatalanguage

What language to fetch extmetadata in. This affects both which translation to fetch, if multiple are available, as well as how things like numbers and various values are formatted.

既定値: ja
iiextmetadatamultilang

If translations for extmetadata property are available, fetch all of them.

Type: boolean (details)
iiextmetadatafilter

If specified and non-empty, only these keys will be returned for iiprop=extmetadata.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
iiurlparam

A handler specific parameter string. For example, PDFs might use page15-100px. iiurlwidth must be used and be consistent with iiurlparam.

既定値: (空)
iicontinue

When more results are available, use this to continue.

iilocalonly

Look only for files in the local repository.

Type: boolean (details)

prop=images (im)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたページに含まれるすべてのファイルを返します。

パラメーター:
imlimit

返す画像の数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
imcontinue

When more results are available, use this to continue.

imimages

Only list these files. Useful for checking whether a certain page has a certain file.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
imdir

The direction in which to list.

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
例:
Main Page で使用されているファイルの一覧を取得する。
api.php?action=query&prop=images&titles=Main%20Page [サンドボックスで開く]
Main Page で使用されているファイルに関する情報を取得する。
api.php?action=query&generator=images&titles=Main%20Page&prop=info [サンドボックスで開く]

prop=info (in)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

ページの基本的な情報を取得します。

パラメーター:
inprop

追加で取得するプロパティ:

protection
それぞれのページの保護レベルを一覧表示する。
talkid
The page ID of the talk page for each non-talk page.
watched
List the watched status of each page.
watchers
The number of watchers, if allowed.
visitingwatchers
The number of watchers of each page who have visited recent edits to that page, if allowed.
notificationtimestamp
The watchlist notification timestamp of each page.
subjectid
The page ID of the parent page for each talk page.
url
Gives a full URL, an edit URL, and the canonical URL for each page.
readable
Whether the user can read this page.
preload
Gives the text returned by EditFormPreloadText.
displaytitle
Gives the manner in which the page title is actually displayed.
値 (|で区切る): protection、talkid、watched、watchers、visitingwatchers、notificationtimestamp、subjectid、url、readable、preload、displaytitle
intestactions

Test whether the current user can perform certain actions on the page.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
intoken
廃止予定です。

Use action=query&meta=tokens instead.

値 (|で区切る): edit、delete、protect、move、block、unblock、email、import、watch
incontinue

When more results are available, use this to continue.

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

ページからのすべてのウィキ間リンクを返します。

パラメーター:
iwprop

各言語間リンクについて取得する追加のプロパティ:

url
完全なURLを追加します。
値 (|で区切る): url
iwprefix

この接頭辞のウィキ間リンクのみを返す。

iwtitle

検索するウィキ間リンク。iw と同時に使用しなければなりません。

iwdir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
iwlimit

返すウィキ間リンクの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
iwcontinue

When more results are available, use this to continue.

iwurl
廃止予定です。

完全なURLを取得するかどうか (iwpropとは同時に使用できません).

Type: boolean (details)
例:
Main Page にあるウィキ間リンクを取得する。
api.php?action=query&prop=iwlinks&titles=Main%20Page [サンドボックスで開く]
  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

ページからのすべての言語間リンクを返します。

パラメーター:
llprop

各言語間リンクについて取得する追加のプロパティ:

url
完全なURLを追加します。
langname
Adds the localised language name (best effort). Use llinlanguagecode to control the language.
autonym
ネイティブ言語名を追加します。
値 (|で区切る): url、langname、autonym
lllang

この言語コードの言語間リンクのみを返す。

lltitle

検索するリンク。lllangと同時に使用しなければなりません。

lldir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
llinlanguagecode

Language code for localised language names.

既定値: ja
lllimit

返す言語間リンクの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
llcontinue

When more results are available, use this to continue.

llurl
廃止予定です。

完全なURLを取得するかどうか (llpropとは同時に使用できません).

Type: boolean (details)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

ページからのすべてのリンクを返します。

パラメーター:
plnamespace

この名前空間へのリンクのみ表示する。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
pllimit

返すリンクの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
plcontinue

When more results are available, use this to continue.

pltitles

Only list links to these titles. Useful for checking whether a certain page links to a certain title.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
pldir

The direction in which to list.

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
例:
Main Page からのリンクを取得する。
api.php?action=query&prop=links&titles=Main%20Page [サンドボックスで開く]
Main Page からリンクされているページに関する情報を取得する。
api.php?action=query&generator=links&titles=Main%20Page&prop=info [サンドボックスで開く]
Main Page からの 利用者 および テンプレート 名前空間へのリンクを取得する。
api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10 [サンドボックスで開く]

prop=linkshere (lh)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

Find all pages that link to the given pages.

パラメーター:
lhprop

取得するプロパティ:

pageid
各ページのページID。
title
各ページのページ名。
redirect
Flag if the page is a redirect.
値 (|で区切る): pageid、title、redirect
既定値: pageid|title|redirect
lhnamespace

Only include pages in these namespaces.

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
lhshow

Show only items that meet these criteria:

redirect
Only show redirects.
!redirect
Only show non-redirects.
値 (|で区切る): redirect、!redirect
lhlimit

How many to return.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
lhcontinue

When more results are available, use this to continue.

prop=pageprops (pp)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

ページコンテンツで定義されている様々なページのプロパティを取得。

パラメーター:
ppcontinue

When more results are available, use this to continue.

ppprop

Only list these page properties (action=query&list=pagepropnames returns page property names in use). Useful for checking whether pages use a certain page property.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
例:
ページ Main Page および MeiaWiki のプロパティを取得する。
api.php?action=query&prop=pageprops&titles=Main%20Page|MediaWiki [サンドボックスで開く]

prop=redirects (rd)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

ページへのすべての転送を返します。

パラメーター:
rdprop

取得するプロパティ:

pageid
各リダイレクトのページID。
title
各リダイレクトのページ名。
fragment
Fragment of each redirect, if any.
値 (|で区切る): pageid、title、fragment
既定値: pageid|title
rdnamespace

Only include pages in these namespaces.

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
rdshow

Show only items that meet these criteria:

fragment
Only show redirects with a fragment.
!fragment
Only show redirects without a fragment.
値 (|で区切る): fragment、!fragment
rdlimit

返す転送の数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
rdcontinue

When more results are available, use this to continue.

prop=references (rf)

  • このモジュールは読み取りの権限を必要とします。
  • Source: Cite
  • License: GPL-2.0+

指定されたページに関連付けられた脚注のデータ表現を返す

パラメーター:
rfcontinue

When more results are available, use this to continue.

prop=revisions (rv)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

Get revision information.

May be used in several ways:

  1. Get data about a set of pages (last revision), by setting titles or pageids.
  2. Get revisions for one given page, by using titles or pageids with start, end, or limit.
  3. Get data about a set of revisions by setting their IDs with revids.
パラメーター:
rvprop

Which properties to get for each revision:

ids
版のID。
flags
Revision flags (minor).
timestamp
版のタイムスタンプ。
user
その版を作成した利用者。
userid
その版の作成者の利用者ID。
size
その版の長さ (バイト) 。
sha1
SHA-1 (base 16) of the revision.
contentmodel
Content model ID of the revision.
comment
その版の利用者によるコメント。
parsedcomment
その版の利用者による、構文解析されたコメント。
content
その版のテキスト。
tags
その版のタグ。
parsetree
The XML parse tree of revision content (requires content model wikitext).
値 (|で区切る): ids、flags、timestamp、user、userid、size、sha1、contentmodel、comment、parsedcomment、content、tags、parsetree
既定値: ids|timestamp|flags|comment|user
rvlimit

返す版の数を制限する。

May only be used with a single page (mode #2).
No more than 500 (5,000 for bots) allowed.
Type: integer or max
rvexpandtemplates

Expand templates in revision content (requires rvprop=content).

Type: boolean (details)
rvgeneratexml
廃止予定です。

Generate XML parse tree for revision content (requires rvprop=content; replaced by rvprop=parsetree).

Type: boolean (details)
rvparse

Parse revision content (requires rvprop=content). For performance reasons, if this option is used, rvlimit is enforced to 1.

Type: boolean (details)
rvsection

Only retrieve the content of this section number.

rvdiffto

Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.

rvdifftotext

Text to diff each revision to. Only diffs a limited number of revisions. Overrides rvdiffto. If rvsection is set, only that section will be diffed against this text.

rvdifftotextpst

Perform a pre-save transform on the text before diffing it. Only valid when used with rvdifftotext.

Type: boolean (details)
rvcontentformat

Serialization format used for rvdifftotext and expected for output of content.

値 (次の値のいずれか1つ): text/x-wiki、text/javascript、application/json、text/css、text/plain
rvstartid

From which revision ID to start enumeration.

May only be used with a single page (mode #2).
Type: integer
rvendid

Stop revision enumeration on this revision ID.

May only be used with a single page (mode #2).
Type: integer
rvstart

From which revision timestamp to start enumeration.

May only be used with a single page (mode #2).
Type: timestamp (allowed formats)
rvend

列挙の終点となるタイムスタンプ。

May only be used with a single page (mode #2).
Type: timestamp (allowed formats)
rvdir

列挙の方向:

newer
古いものを先に表示します。注意: rvstart は rvend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: rvstart は rvend 以降でなければなりません。
May only be used with a single page (mode #2).
値 (次の値のいずれか1つ): newer、older
既定値: older
rvuser

この利用者による版のみを結果に含める。

May only be used with a single page (mode #2).
Type: user name
rvexcludeuser

この利用者による版を結果に含めない。

May only be used with a single page (mode #2).
Type: user name
rvtag

このタグが付与された版のみを一覧表示する。

rvtoken
廃止予定です。

Which tokens to obtain for each revision.

値 (|で区切る): rollback
rvcontinue

When more results are available, use this to continue.

prop=stashimageinfo (sii)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Returns file information for stashed files.

パラメーター:
siifilekey

Key that identifies a previous upload that was stashed temporarily.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
siisessionkey
廃止予定です。

Alias for siifilekey, for backward compatibility.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
siiprop

取得するファイル情報:

timestamp
Adds timestamp for the uploaded version.
canonicaltitle
Adds the canonical title of the file.
url
ファイルと説明ページへのURLを提供します。
size
バイト単位でファイルや高さ、幅、ページ数のサイズを追加します(該当する場合)。
dimensions
Alias for size.
sha1
Adds SHA-1 hash for the file.
mime
ファイルのMIMEタイプを追加します。
thumbmime
画像サムネイルのMIMEタイプを追加します(url と siiurlwidth パラメータが必須です)。
metadata
ファイルのバージョンの Exif メタデータを一覧表示します。
commonmetadata
Lists file format generic metadata for the version of the file.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted.
bitdepth
バージョンのビット深度を追加します。
値 (|で区切る): timestamp、canonicaltitle、url、size、dimensions、sha1、mime、thumbmime、metadata、commonmetadata、extmetadata、bitdepth
既定値: timestamp|url
siiurlwidth

If siiprop=url is set, a URL to an image scaled to this width will be returned. For performance reasons if this option is used, no more than 50 scaled images will be returned.

Type: integer
既定値: -1
siiurlheight

Similar to siiurlwidth.

Type: integer
既定値: -1
siiurlparam

A handler specific parameter string. For example, PDFs might use page15-100px. siiurlwidth must be used and be consistent with siiurlparam.

既定値: (空)

prop=templates (tl)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたページでトランスクルードされているすべてのページを返します。

パラメーター:
tlnamespace

この名前空間のテンプレートのみ表示する。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
tllimit

返すテンプレートの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
tlcontinue

When more results are available, use this to continue.

tltemplates

Only list these templates. Useful for checking whether a certain page uses a certain template.

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
tldir

The direction in which to list.

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
例:
Main Page で使用されているテンプレートを取得する。
api.php?action=query&prop=templates&titles=Main%20Page [サンドボックスで開く]
Main Page で使用されているテンプレートに関する情報を取得する。
api.php?action=query&generator=templates&titles=Main%20Page&prop=info [サンドボックスで開く]
Main Page でトランスクルードされている 利用者 および テンプレート 名前空間のページを取得する。
api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10 [サンドボックスで開く]

prop=transcludedin (ti)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたページをトランスクルードしているすべてのページを検索します。

パラメーター:
tiprop

取得するプロパティ:

pageid
各ページのページID。
title
各ページのページ名。
redirect
Flag if the page is a redirect.
値 (|で区切る): pageid、title、redirect
既定値: pageid|title|redirect
tinamespace

Only include pages in these namespaces.

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
tishow

Show only items that meet these criteria:

redirect
Only show redirects.
!redirect
Only show non-redirects.
値 (|で区切る): redirect、!redirect
tilimit

How many to return.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
ticontinue

When more results are available, use this to continue.

例:
Main Page をトランスクルードしているページの一覧を取得する。
api.php?action=query&prop=transcludedin&titles=Main%20Page [サンドボックスで開く]
Main Page をトランスクルードしているページに関する情報を取得する。
api.php?action=query&generator=transcludedin&titles=Main%20Page&prop=info [サンドボックスで開く]

list=allcategories (ac)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

すべてのカテゴリを一覧表示します。

パラメーター:
acfrom

列挙を開始するカテゴリ。

accontinue

When more results are available, use this to continue.

acto

列挙を終了するカテゴリ。

acprefix

この値で始まるページ名のカテゴリを検索します。

acdir

並べ替えの方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
acmin

Only return categories with at least this many members.

Type: integer
acmax

Only return categories with at most this many members.

Type: integer
aclimit

返すカテゴリの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
acprop

取得するプロパティ:

size
カテゴリ内のページ数を追加します。
hidden
__HIDDENCAT__に隠されているタグカテゴリ。
値 (|で区切る): size、hidden
既定値: (空)
例:
カテゴリを、内包するページ数の情報と共に、一覧表示する。
api.php?action=query&list=allcategories&acprop=size [サンドボックスで開く]
List で始まるカテゴリページに関する情報を取得する。
api.php?action=query&generator=allcategories&gacprefix=List&prop=info [サンドボックスで開く]

list=alldeletedrevisions (adr)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

利用者によって削除された、または名前空間内の削除されたすべての版を一覧表示する。

パラメーター:
adrprop

Which properties to get for each revision:

ids
版のID。
flags
Revision flags (minor).
timestamp
版のタイムスタンプ。
user
その版を作成した利用者。
userid
その版の作成者の利用者ID。
size
その版の長さ (バイト) 。
sha1
SHA-1 (base 16) of the revision.
contentmodel
Content model ID of the revision.
comment
その版の利用者によるコメント。
parsedcomment
その版の利用者による、構文解析されたコメント。
content
その版のテキスト。
tags
その版のタグ。
parsetree
The XML parse tree of revision content (requires content model wikitext).
値 (|で区切る): ids、flags、timestamp、user、userid、size、sha1、contentmodel、comment、parsedcomment、content、tags、parsetree
既定値: ids|timestamp|flags|comment|user
adrlimit

返す版の数を制限する。

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

Expand templates in revision content (requires adrprop=content).

Type: boolean (details)
adrgeneratexml
廃止予定です。

Generate XML parse tree for revision content (requires adrprop=content; replaced by adrprop=parsetree).

Type: boolean (details)
adrparse

Parse revision content (requires adrprop=content). For performance reasons, if this option is used, adrlimit is enforced to 1.

Type: boolean (details)
adrsection

Only retrieve the content of this section number.

adrdiffto

Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.

adrdifftotext

Text to diff each revision to. Only diffs a limited number of revisions. Overrides adrdiffto. If adrsection is set, only that section will be diffed against this text.

adrdifftotextpst

Perform a pre-save transform on the text before diffing it. Only valid when used with adrdifftotext.

Type: boolean (details)
adrcontentformat

Serialization format used for adrdifftotext and expected for output of content.

値 (次の値のいずれか1つ): text/x-wiki、text/javascript、application/json、text/css、text/plain
adruser

この利用者による版のみを一覧表示する。

Type: user name
adrnamespace

この名前空間に含まれるページのみを一覧表示します。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
adrstart

列挙の始点となるタイムスタンプ。

adruser と同時に使用します。
Type: timestamp (allowed formats)
adrend

列挙の終点となるタイムスタンプ。

adruser と同時に使用します。
Type: timestamp (allowed formats)
adrdir

列挙の方向:

newer
古いものを先に表示します。注意: adrstart は adrend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: adrstart は adrend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
adrfrom

列挙の始点となるページ名。

adruser と同時に使用できません。
adrto

列挙の終点となるページ名。

adruser と同時に使用できません。
adrprefix

この値で始まるすべてのページ名を検索する。

adruser と同時に使用できません。
adrexcludeuser

この利用者による版を一覧表示しない。

adruser と同時に使用できません。
Type: user name
adrtag

このタグが付与された版のみを一覧表示する。

adrcontinue

When more results are available, use this to continue.

adrgeneratetitles

ジェネレーターとして使用する場合、版IDではなくページ名を生成します。

Type: boolean (details)
例:
利用者 Example による削除された直近の50版を一覧表示する。
api.php?action=query&list=alldeletedrevisions&adruser=Example&adrlimit=50 [サンドボックスで開く]
標準名前空間にある削除された最初の50版を一覧表示する。
api.php?action=query&list=alldeletedrevisions&adrdir=newer&adrlimit=50 [サンドボックスで開く]

list=allfileusages (af)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

存在しないものを含め、すべてのファイルの使用状況を一覧表示する。

パラメーター:
afcontinue

When more results are available, use this to continue.

affrom

列挙を開始するファイルのページ名。

afto

列挙を終了するファイルのページ名。

afprefix

この値で始まるページ名のすべてのファイルを検索する。

afunique

Only show distinct file titles. Cannot be used with afprop=ids. When used as a generator, yields target pages instead of source pages.

Type: boolean (details)
afprop

どの情報を結果に含めるか:

ids
使用しているページのページIDを追加します (afunique とは同時に使用できません)。
title
ファイルのページ名を追加します。
値 (|で区切る): ids、title
既定値: title
aflimit

返す項目の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
afdir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
例:
List file titles, including missing ones, with page IDs they are from, starting at B.
api.php?action=query&list=allfileusages&affrom=B&afprop=ids|title [サンドボックスで開く]
ユニークなファイルを一覧表示する。
api.php?action=query&list=allfileusages&afunique=&affrom=B [サンドボックスで開く]
ファイル名を、存在しないものに印をつけて、すべて取得する。
api.php?action=query&generator=allfileusages&gafunique=&gaffrom=B [サンドボックスで開く]
ファイルを含むページを取得します。
api.php?action=query&generator=allfileusages&gaffrom=B [サンドボックスで開く]

list=allimages (ai)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

順次すべての画像を列挙します。

パラメーター:
aisort

並べ替えに使用するプロパティ。

値 (次の値のいずれか1つ): name、timestamp
既定値: name
aidir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending、newer、older
既定値: ascending
aifrom

列挙の始点となる画像タイトル。aisort=name を指定した場合のみ使用できます。

aito

列挙の終点となる画像のページ名。aisort=name を指定した場合のみ使用できます。

aicontinue

When more results are available, use this to continue.

aistart

列挙の始点となるタイムスタンプ。aisort=timestamp を指定した場合のみ使用できます。

Type: timestamp (allowed formats)
aiend

列挙の終点となるタイムスタンプ。aisort=timestamp を指定した場合のみ使用できます。

Type: timestamp (allowed formats)
aiprop

取得するファイル情報:

timestamp
Adds timestamp for the uploaded version.
user
Adds the user who uploaded each file version.
userid
Add the ID of the user that uploaded each file version.
comment
Comment on the version.
parsedcomment
Parse the comment on the version.
canonicaltitle
Adds the canonical title of the file.
url
ファイルと説明ページへのURLを提供します。
size
バイト単位でファイルや高さ、幅、ページ数のサイズを追加します(該当する場合)。
dimensions
Alias for size.
sha1
Adds SHA-1 hash for the file.
mime
ファイルのMIMEタイプを追加します。
mediatype
ファイルのメディアタイプを追加します。
metadata
ファイルのバージョンの Exif メタデータを一覧表示します。
commonmetadata
Lists file format generic metadata for the version of the file.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted.
bitdepth
バージョンのビット深度を追加します。
値 (|で区切る): timestamp、user、userid、comment、parsedcomment、canonicaltitle、url、size、dimensions、sha1、mime、mediatype、metadata、commonmetadata、extmetadata、bitdepth
既定値: timestamp|url
aiprefix

この値で始まるすべての画像タイトルを検索する。aisort=name を指定した場合のみ使用できます。

aiminsize

画像の最小バイト数を制限する。

Type: integer
aimaxsize

画像の最大バイト数を制限する。

Type: integer
aisha1

画像の SHA1 ハッシュ値。aisha1base36 をオーバーライドします。

aisha1base36

SHA1 hash of image in base 36 (used in MediaWiki).

aiuser

この利用者によりアップロードされたファイルのみを返す。aisort=timestamp を指定した場合のみ使用できます。 aifilterbots とは同時に使用できません。

Type: user name
aifilterbots

ボットによりアップロードされたファイルを絞り込む方法。aisort=timestamp を指定した場合のみ使用できます。aiuser とは同時に使用できません。

値 (次の値のいずれか1つ): all、bots、nobots
既定値: all
aimime

検索対象のMIMEタイプ、たとえば image/jpeg

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
ailimit

返す画像の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
例:
B で始まるファイルの一覧を表示する。
api.php?action=query&list=allimages&aifrom=B [サンドボックスで開く]
Special:NewFiles のように、最近アップロードされたファイルの一覧を表示する。
api.php?action=query&list=allimages&aiprop=user|timestamp|url&aisort=timestamp&aidir=older [サンドボックスで開く]
MIMEタイプが image/png または image/gif であるファイルの一覧を表示する
api.php?action=query&list=allimages&aimime=image/png|image/gif [サンドボックスで開く]
T で始まる4つのファイルに関する情報を表示する。
api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo [サンドボックスで開く]
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられた名前空間へのすべてのリンクを一覧表示します。

パラメーター:
alcontinue

When more results are available, use this to continue.

alfrom

列挙を開始するリンクのページ名。

alto

列挙を終了するリンクのページ名。

alprefix

この値で始まるすべてのリンクされたページを検索する。

alunique

リンクされたページ名を一度だけ表示します。alprop=ids とは同時に使用できません。ジェネレーターとして使用される場合、リンク元ではなくリンク先のページを生成します。

Type: boolean (details)
alprop

どの情報を結果に含めるか:

ids
リンクしているページのページIDを追加します (alunique とは同時に使用できません)。
title
リンクのページ名を追加します。
値 (|で区切る): ids、title
既定値: title
alnamespace

列挙する名前空間。

値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
既定値: 0
allimit

返す項目の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
aldir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
例:
B で始まるリンクされたページ (存在しないページも含む)を、リンク元のページIDとともに表示する。
api.php?action=query&list=alllinks&alfrom=B&alprop=ids|title [サンドボックスで開く]
ユニークなリンクのタイトルを一覧。
api.php?action=query&list=alllinks&alunique=&alfrom=B [サンドボックスで開く]
リンクされているページを、存在しないものに印をつけて、すべて取得する。
api.php?action=query&generator=alllinks&galunique=&galfrom=B [サンドボックスで開く]
リンクを含むページを取得します。
api.php?action=query&generator=alllinks&galfrom=B [サンドボックスで開く]

list=allpages (ap)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

Enumerate all pages sequentially in a given namespace.

パラメーター:
apfrom

列挙を開始するページ名。

apcontinue

When more results are available, use this to continue.

apto

列挙を終了するページ名。

apprefix

この値で始まるすべてのページ名を検索します。

apnamespace

列挙する名前空間。

値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
既定値: 0
apfilterredir

Which pages to list.

値 (次の値のいずれか1つ): all、redirects、nonredirects
既定値: all
apminsize

ページの最低バイト数を制限する。

Type: integer
apmaxsize

ページの最大バイト数を制限する。

Type: integer
apprtype

保護されているページに絞り込む。

値 (|で区切る): edit、move、upload
apprlevel

保護レベルで絞り込む (aptype= パラメーターと同時に使用しなければなりません)。

値 (|で区切る): 空欄にするか、または autoconfirmed、sysop
apprfiltercascade

Filter protections based on cascadingness (ignored when apprtype isn't set).

値 (次の値のいずれか1つ): cascading、noncascading、all
既定値: all
aplimit

返すページの総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
apdir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
apfilterlanglinks

Filter based on whether a page has langlinks. Note that this may not consider langlinks added by extensions.

値 (次の値のいずれか1つ): withlanglinks、withoutlanglinks、all
既定値: all
apprexpiry

Which protection expiry to filter the page on:

indefinite
Get only pages with indefinite protection expiry.
definite
Get only pages with a definite (specific) protection expiry.
all
Get pages with any protections expiry.
値 (次の値のいずれか1つ): indefinite、definite、all
既定値: all

list=allredirects (ar)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

ある名前空間へのすべての転送を一覧表示する。

パラメーター:
arcontinue

When more results are available, use this to continue.

arfrom

列挙を開始するリダイレクトのページ名。

arto

列挙を終了するリダイレクトのページ名。

arprefix

この値で始まるすべてのページを検索する。

arunique

転送先ページ名を一度だけ表示します。arprop=ids|fragment|interwiki とは同時に使用できません。ジェネレーターとして使用される場合、転送元ではなく転送先のページを生成します。

Type: boolean (details)
arprop

どの情報を結果に含めるか:

ids
Adds the page ID of the redirecting page (cannot be used with arunique).
title
転送ページのページ名を追加します。
fragment
Adds the fragment from the redirect, if any (cannot be used with arunique).
interwiki
Adds the interwiki prefix from the redirect, if any (cannot be used with arunique).
値 (|で区切る): ids、title、fragment、interwiki
既定値: title
arnamespace

列挙する名前空間。

値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
既定値: 0
arlimit

返す項目の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
ardir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending

list=allrevisions (arv)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

すべての版を一覧表示する。

パラメーター:
arvprop

Which properties to get for each revision:

ids
版のID。
flags
Revision flags (minor).
timestamp
版のタイムスタンプ。
user
その版を作成した利用者。
userid
その版の作成者の利用者ID。
size
その版の長さ (バイト) 。
sha1
SHA-1 (base 16) of the revision.
contentmodel
Content model ID of the revision.
comment
その版の利用者によるコメント。
parsedcomment
その版の利用者による、構文解析されたコメント。
content
その版のテキスト。
tags
その版のタグ。
parsetree
The XML parse tree of revision content (requires content model wikitext).
値 (|で区切る): ids、flags、timestamp、user、userid、size、sha1、contentmodel、comment、parsedcomment、content、tags、parsetree
既定値: ids|timestamp|flags|comment|user
arvlimit

返す版の数を制限する。

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

Expand templates in revision content (requires arvprop=content).

Type: boolean (details)
arvgeneratexml
廃止予定です。

Generate XML parse tree for revision content (requires arvprop=content; replaced by arvprop=parsetree).

Type: boolean (details)
arvparse

Parse revision content (requires arvprop=content). For performance reasons, if this option is used, arvlimit is enforced to 1.

Type: boolean (details)
arvsection

Only retrieve the content of this section number.

arvdiffto

Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.

arvdifftotext

Text to diff each revision to. Only diffs a limited number of revisions. Overrides arvdiffto. If arvsection is set, only that section will be diffed against this text.

arvdifftotextpst

Perform a pre-save transform on the text before diffing it. Only valid when used with arvdifftotext.

Type: boolean (details)
arvcontentformat

Serialization format used for arvdifftotext and expected for output of content.

値 (次の値のいずれか1つ): text/x-wiki、text/javascript、application/json、text/css、text/plain
arvuser

この利用者による版のみを一覧表示する。

Type: user name
arvnamespace

この名前空間に含まれるページのみを一覧表示します。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
arvstart

列挙の始点となるタイムスタンプ。

Type: timestamp (allowed formats)
arvend

列挙の終点となるタイムスタンプ。

Type: timestamp (allowed formats)
arvdir

列挙の方向:

newer
古いものを先に表示します。注意: arvstart は arvend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: arvstart は arvend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
arvexcludeuser

この利用者による版を一覧表示しない。

Type: user name
arvcontinue

When more results are available, use this to continue.

arvgeneratetitles

ジェネレーターとして使用する場合、版IDではなくページ名を生成します。

Type: boolean (details)
例:
利用者 Example による直近の50版を一覧表示する。
api.php?action=query&list=allrevisions&arvuser=Example&arvlimit=50 [サンドボックスで開く]
標準名前空間にある最初の50版を一覧表示する。
api.php?action=query&list=allrevisions&arvdir=newer&arvlimit=50 [サンドボックスで開く]

list=alltransclusions (at)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

存在しないものも含めて、すべての参照読み込み ({{x}} で埋め込まれたページ) を一覧表示します。

パラメーター:
atcontinue

When more results are available, use this to continue.

atfrom

列挙を開始する参照読み込みのページ名。

atto

列挙を終了する参照読み込みのページ名。

atprefix

この値で始まるすべての参照読み込みされているページを検索する。

atunique

Only show distinct transcluded titles. Cannot be used with atprop=ids. When used as a generator, yields target pages instead of source pages.

Type: boolean (details)
atprop

どの情報を結果に含めるか:

ids
参照元のページIDを追加します (atunique とは同時に使用できません)。
title
参照読み込みのページ名を追加します。
値 (|で区切る): ids、title
既定値: title
atnamespace

列挙する名前空間。

値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
既定値: 10
atlimit

返す項目の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
atdir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
例:
参照読み込みされているページ (存在しないページも含む) を、参照元のページIDとともに、B で始まるものから一覧表示する。
api.php?action=query&list=alltransclusions&atfrom=B&atprop=ids|title [サンドボックスで開く]
List unique transcluded titles.
api.php?action=query&list=alltransclusions&atunique=&atfrom=B [サンドボックスで開く]
参照読み込みされたページを、存在しないものに印をつけて、すべて取得する。
api.php?action=query&generator=alltransclusions&gatunique=&gatfrom=B [サンドボックスで開く]
参照読み込みを含んでいるページを取得する。
api.php?action=query&generator=alltransclusions&gatfrom=B [サンドボックスで開く]

list=allusers (au)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

すべての登録利用者を一覧表示します。

パラメーター:
aufrom

列挙を開始する利用者名。

auto

列挙を終了する利用者名。

auprefix

この値で始まるすべての利用者を検索する。

audir

並べ替えの方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
augroup

このグループに所属する利用者のみを結果に含める。

値 (|で区切る): bot、sysop、bureaucrat
auexcludegroup

このグループに所属する利用者を結果から除外する。

値 (|で区切る): bot、sysop、bureaucrat
aurights

Only include users with the given rights. Does not include rights granted by implicit or auto-promoted groups like *, user, or autoconfirmed.

値 (|で区切る): apihighlimits、applychangetags、autoconfirmed、autocreateaccount、autopatrol、bigdelete、block、blockemail、bot、browsearchive、changetags、createaccount、createpage、createtalk、delete、deletedhistory、deletedtext、deletelogentry、deleterevision、edit、editcontentmodel、editinterface、editprotected、editmyoptions、editmyprivateinfo、editmyusercss、editmyuserjs、editmywatchlist、editsemiprotected、editusercssjs、editusercss、edituserjs、hideuser、import、importupload、ipblock-exempt、managechangetags、markbotedits、mergehistory、minoredit、move、movefile、move-categorypages、move-rootuserpages、move-subpages、nominornewtalk、noratelimit、override-export-depth、pagelang、passwordreset、patrol、patrolmarks、protect、purge、read、reupload、reupload-own、reupload-shared、rollback、sendemail、siteadmin、suppressionlog、suppressredirect、suppressrevision、unblockself、undelete、unwatchedpages、upload、upload_by_url、userrights、userrights-interwiki、viewmyprivateinfo、viewmywatchlist、viewsuppressed、writeapi、renameuser、spamblacklistlog、skipcaptcha、mf-uploadbutton
値の最大値は 50 (ボットの場合は 500) です。
auprop

どの情報を結果に含めるか:

blockinfo
利用者に対する現在のブロックに関する情報を追加します。
groups
利用者が所属する利用者グループを一覧表示します。これはサーバー資源を多めに使用するので、返る結果が制限値より少なくなります。
implicitgroups
Lists all the groups the user is automatically in.
rights
利用者が持っている権限を一覧表示します。
editcount
利用者の編集回数を追加します。
registration
可能な場合、利用者の登録日時のタイムスタンプを追加します (空白になるかもしれません)。
centralids
Adds the central IDs and attachment status for the user.
値 (|で区切る): blockinfo、groups、implicitgroups、rights、editcount、registration、centralids
aulimit

返す利用者名の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
auwitheditsonly

編集履歴のある利用者のみ一覧表示する。

Type: boolean (details)
auactiveusers

最近 30 日間のアクティブな利用者のみを一覧表示する。

Type: boolean (details)
auattachedwiki

With auprop=centralids, also indicate whether the user is attached with the wiki identified by this ID.

例:
Y で始まる利用者を一覧表示する。
api.php?action=query&list=allusers&aufrom=Y [サンドボックスで開く]
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたページにリンクしているすべてのページを検索します。

パラメーター:
bltitle

検索するページ名。blpageid とは同時に使用できません。

blpageid

検索するページID。bltitleとは同時に使用できません。

Type: integer
blcontinue

When more results are available, use this to continue.

blnamespace

列挙する名前空間。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
bldir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
blfilterredir

How to filter for redirects. If set to nonredirects when blredirect is enabled, this is only applied to the second level.

値 (次の値のいずれか1つ): all、redirects、nonredirects
既定値: 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).

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
blredirect

If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.

Type: boolean (details)

list=blocks (bk)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

ブロックされた利用者とIPアドレスを一覧表示します。

パラメーター:
bkstart

列挙の始点となるタイムスタンプ。

Type: timestamp (allowed formats)
bkend

列挙の終点となるタイムスタンプ。

Type: timestamp (allowed formats)
bkdir

列挙の方向:

newer
古いものを先に表示します。注意: bkstart は bkend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: bkstart は bkend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
bkids

一覧表示するブロックIDのリスト (任意)。

Type: list of integers
複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
bkusers

検索対象の利用者のリスト (任意)。

Type: list of user names
複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
bkip

Get all blocks applying to this IP address or CIDR range, including range blocks. Cannot be used together with bkusers. CIDR ranges broader than IPv4/16 or IPv6/19 are not accepted.

bklimit

一覧表示するブロックの最大数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
bkprop

取得するプロパティ:

id
ブロックのIDを追加します。
user
ブロックされた利用者の利用者名を追加します。
userid
ブロックされた利用者の利用者IDを追加します。
by
ブロック実行者の利用者名を追加します。
byid
ブロック実行者の利用者IDを追加します。
timestamp
ブロックが与えられたときのタイムスタンプを追加します。
expiry
ブロックの有効期限が切れたときのタイムスタンプを追加します。
reason
ブロックに指定された理由を追加します。
range
ブロックの影響を受けたIPアドレスの範囲を追加します。
flags
(autoblock, anononly, などとの) ban をタグ付けします。
値 (|で区切る): id、user、userid、by、byid、timestamp、expiry、reason、range、flags
既定値: id|user|by|timestamp|expiry|reason|flags
bkshow

これらの基準を満たす項目のみを表示します。 たとえば、IPアドレスの無期限ブロックのみを表示するには、bkshow=ip|!temp を設定します。

値 (|で区切る): account、!account、temp、!temp、ip、!ip、range、!range
bkcontinue

When more results are available, use this to continue.

例:
ブロックを一覧表示する。
api.php?action=query&list=blocks [サンドボックスで開く]
利用者Alice および Bob のブロックを一覧表示する。
api.php?action=query&list=blocks&bkusers=Alice|Bob [サンドボックスで開く]

list=categorymembers (cm)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたカテゴリ内のすべてのページを一覧表示します。

パラメーター:
cmtitle

一覧表示するカテゴリ (必須)。カテゴリ: 接頭辞を含まなければなりません。cmpageid とは同時に使用できません。

cmpageid

一覧表示するカテゴリのページID. cmtitle とは同時に使用できません。

Type: integer
cmprop

どの情報を結果に含めるか:

ids
ページIDを追加します。
title
ページ名と名前空間IDを追加します。
sortkey
カテゴリでのソートに使用するソートキーを追加します(16進数文字列)。
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
ページが含まれていたときのタイムスタンプを追加します。
値 (|で区切る): ids、title、sortkey、sortkeyprefix、type、timestamp
既定値: 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.

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
cmtype

Which type of category members to include. Ignored when cmsort=timestamp is set.

値 (|で区切る): page、subcat、file
既定値: page|subcat|file
cmcontinue

When more results are available, use this to continue.

cmlimit

返すページの最大数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
cmsort

並べ替えに使用するプロパティ。

値 (次の値のいずれか1つ): sortkey、timestamp
既定値: sortkey
cmdir

In which direction to sort.

値 (次の値のいずれか1つ): asc、desc、ascending、descending、newer、older
既定値: ascending
cmstart

列挙の始点となるタイムスタンプ。cmsort=timestampを指定した場合のみ使用できます。

Type: timestamp (allowed formats)
cmend

列挙の終点となるタイムスタンプ。cmsort=timestampを指定した場合のみ使用できます。

Type: timestamp (allowed formats)
cmstarthexsortkey

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

列挙の始点となるソートキーの接頭辞。cmsort=sortkeyを指定した場合のみ使用できます。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.

cmstartsortkey
廃止予定です。

代わりに cmstarthexsortkey を使用してください。

cmendsortkey
廃止予定です。

代わりに cmendhexsortkey を使用してください。

例:
Category:Physics に含まれる最初の10ページを取得する。
api.php?action=query&list=categorymembers&cmtitle=Category:Physics [サンドボックスで開く]
Category:Physics に含まれる最初の10ページのページ情報を取得する。
api.php?action=query&generator=categorymembers&gcmtitle=Category:Physics&prop=info [サンドボックスで開く]

list=deletedrevs (dr)

  • このモジュールは廃止予定です。
  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

List deleted revisions.

Operates in three modes:

  1. List deleted revisions for the given titles, sorted by timestamp.
  2. List deleted contributions for the given user, sorted by timestamp (no titles specified).
  3. List all deleted revisions in the given namespace, sorted by title and timestamp (no titles specified, druser not set).

Certain parameters only apply to some modes and are ignored in others.

パラメーター:
drstart

列挙の始点となるタイムスタンプ。

Modes: 1、2
Type: timestamp (allowed formats)
drend

列挙の終点となるタイムスタンプ。

Modes: 1、2
Type: timestamp (allowed formats)
drdir

列挙の方向:

newer
古いものを先に表示します。注意: drstart は drend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: drstart は drend 以降でなければなりません。
Modes: 1、3
値 (次の値のいずれか1つ): newer、older
既定値: older
drfrom

列挙の始点となるページ名。

Mode: 3
drto

列挙の終点となるページ名。

Mode: 3
drprefix

Search for all page titles that begin with this value.

Mode: 3
drunique

List only one revision for each page.

Mode: 3
Type: boolean (details)
drnamespace

この名前空間に含まれるページのみを一覧表示します。

Mode: 3
値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
既定値: 0
drtag

Only list revisions tagged with this tag.

druser

Only list revisions by this user.

Type: user name
drexcludeuser

この利用者による版を一覧表示しない。

Type: user name
drprop

どの情報を取得するか:

revid
削除された版の版IDを追加します。
parentid
ページの前の版の版IDを追加します。
user
版を作成した利用者を追加します。
userid
版を作成した利用者のIDを追加します。
comment
版のコメントを追加します。
parsedcomment
版のコメントを構文解析して追加します。
minor
版が細部の編集かどうか印をつけます。
len
版の長さ (バイト) を追加します。
sha1
版のSHA-1 (base 16) を追加します。
content
版の内容を追加します。
token
廃止予定です。編集トークンを返します。
tags
版のタグです。
値 (|で区切る): revid、parentid、user、userid、comment、parsedcomment、minor、len、sha1、content、token、tags
既定値: user|comment
drlimit

一覧表示する版の最大量。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
drcontinue

When more results are available, use this to continue.

例:
ページ Main Page および Talk:Main Page の最後に削除された版を内容と共に一覧表示する(モード 1)。
api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content [サンドボックスで開く]
Bob による、削除された最後の50投稿を一覧表示する(モード 2)。
api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50 [サンドボックスで開く]
標準名前空間にある削除された最初の50版を一覧表示する(モード 3)。
api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50 [サンドボックスで開く]
トーク名前空間にある削除された最初の50版を一覧表示する(モード 3)。
api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique= [サンドボックスで開く]

list=embeddedin (ei)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

Find all pages that embed (transclude) the given title.

パラメーター:
eititle

検索するページ名。eipageid とは同時に使用できません。

eipageid

検索するページID. eititleとは同時に使用できません。

Type: integer
eicontinue

When more results are available, use this to continue.

einamespace

列挙する名前空間。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
eidir

The direction in which to list.

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
eifilterredir

転送ページを絞り込む方法。

値 (次の値のいずれか1つ): all、redirects、nonredirects
既定値: all
eilimit

返すページの総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
例:
Template:Stub を参照読み込みしているページを表示する。
api.php?action=query&list=embeddedin&eititle=Template:Stub [サンドボックスで開く]
Template:Stub をトランスクルードしているページに関する情報を取得する。
api.php?action=query&generator=embeddedin&geititle=Template:Stub&prop=info [サンドボックスで開く]

list=exturlusage (eu)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたURLを含むページを一覧表示します。

パラメーター:
euprop

どの情報を結果に含めるか:

ids
ページのIDを追加します。
title
ページ名と名前空間IDを追加します。
url
ページ内で使用されているURLを追加します。
値 (|で区切る): ids、title、url
既定値: ids|title|url
euoffset

When more results are available, use this to continue.

Type: integer
euprotocol

URLのプロトコル。このパラメータが空であり、かつeuquery が設定されている場合, protocol は http となります。すべての外部リンクを一覧表示するためにはこのパラメータと euquery の両方を空にしてください。

値 (次の値のいずれか1つ): 空欄にするか、または bitcoin、ftp、ftps、geo、git、gopher、http、https、irc、ircs、magnet、mailto、mms、news、nntp、redis、sftp、sip、sips、sms、ssh、svn、tel、telnet、urn、worldwind、xmpp
既定値: (空)
euquery

プロトコルを除いた検索文字列。Special:LinkSearch も参照してください。すべての外部リンクを一覧表示するには空欄にしてください。

eunamespace

列挙するページ名前空間。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
eulimit

How many pages to return.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
euexpandurl

Expand protocol-relative URLs with the canonical protocol.

Type: boolean (details)

list=filearchive (fa)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

削除されたファイルをすべて順に列挙します。

パラメーター:
fafrom

列挙の始点となる画像のページ名。

fato

列挙の終点となる画像のページ名。

faprefix

Search for all image titles that begin with this value.

fadir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
fasha1

画像の SHA1 ハッシュ値。fasha1base36 をオーバーライドします。

fasha1base36

SHA1 hash of image in base 36 (used in MediaWiki).

faprop

どの画像情報を取得するか:

sha1
Adds SHA-1 hash for the image.
timestamp
バージョンがアップロードされたタイムスタンプを追加します。
user
画像のバージョンをアップロードした利用者を追加します。
size
バイト単位での画像や高さ、幅、ページ数のサイズを追加します(該当する場合)。
dimensions
Alias for size.
description
Adds description of the image version.
parseddescription
Parse the description of the version.
mime
画像の MIME を追加します。
mediatype
画像のメディア・タイプを追加します。
metadata
画像のバージョンの Exif メタデータを一覧表示します。
bitdepth
バージョンのビット深度を追加します。
archivename
非最新バージョンのアーカイブバージョンのファイル名を追加します。
値 (|で区切る): sha1、timestamp、user、size、dimensions、description、parseddescription、mime、mediatype、metadata、bitdepth、archivename
既定値: timestamp
falimit

How many images to return in total.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
facontinue

When more results are available, use this to continue.

例:
削除されたファイルの一覧を表示する。
api.php?action=query&list=filearchive [サンドボックスで開く]

list=imageusage (iu)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

Find all pages that use the given image title.

パラメーター:
iutitle

検索するページ名。iupageid とは同時に使用できません。

iupageid

検索するページID. iutitleとは同時に使用できません。

Type: integer
iucontinue

When more results are available, use this to continue.

iunamespace

列挙する名前空間。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
iudir

The direction in which to list.

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
iufilterredir

How to filter for redirects. If set to nonredirects when iuredirect is enabled, this is only applied to the second level.

値 (次の値のいずれか1つ): all、redirects、nonredirects
既定値: 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).

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
iuredirect

If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.

Type: boolean (details)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

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

パラメーター:
iwblprefix

インターウィキ接頭辞。

iwbltitle

検索するウィキ間リンク。iwblblprefixと同時に使用しなければなりません。

iwblcontinue

When more results are available, use this to continue.

iwbllimit

返すページの総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
iwblprop

取得するプロパティ:

iwprefix
インターウィキ接頭辞を追加します。
iwtitle
ウィキ間リンクのページ名を追加します。
値 (|で区切る): iwprefix、iwtitle
既定値: (空)
iwbldir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

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.

パラメーター:
lbllang

言語間リンクの言語。

lbltitle

検索する言語間リンク。lbllang と同時に使用しなければなりません。

lblcontinue

When more results are available, use this to continue.

lbllimit

返すページの総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
lblprop

取得するプロパティ:

lllang
言語間リンクの言語コードを追加します。
lltitle
言語間リンクのページ名を追加します。
値 (|で区切る): lllang、lltitle
既定値: (空)
lbldir

一覧表示する方向。

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending

list=logevents (le)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Get events from logs.

パラメーター:
leprop

取得するプロパティ:

ids
記録イベントのIDを追加します。
title
記録イベントにページ名を追加します。
type
記録イベントのタイプを追加します。
user
Adds the user responsible for the log event.
userid
Adds the user ID who was responsible for the log event.
timestamp
Adds the timestamp for the log event.
comment
記録イベントのコメントを追加します。
parsedcomment
記録イベントの構文解析されたコメントを追加します。
details
記録イベントに関する追加の詳細を一覧表示します。
tags
記録イベントのタグを一覧表示します。
値 (|で区切る): ids、title、type、user、userid、timestamp、comment、parsedcomment、details、tags
既定値: ids|title|type|user|timestamp|comment|details
letype

このタイプの記録項目のみに絞り込む。

値 (次の値のいずれか1つ): 空欄にするか、または renameuser、spamblacklist、block、protect、rights、delete、upload、move、import、patrol、merge、suppress、tag、managetags、contentmodel、newusers
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 (/).

値 (次の値のいずれか1つ): renameuser/renameuser、spamblacklist/*、block/block、block/reblock、block/unblock、contentmodel/change、contentmodel/new、delete/delete、delete/event、delete/restore、delete/revision、import/interwiki、import/upload、managetags/activate、managetags/create、managetags/deactivate、managetags/delete、merge/merge、move/move、move/move_redir、patrol/patrol、patrol/autopatrol、protect/modify、protect/move_prot、protect/protect、protect/unprotect、rights/autopromote、rights/rights、suppress/block、suppress/delete、suppress/event、suppress/reblock、suppress/revision、tag/update、upload/overwrite、upload/revert、upload/upload、newusers/newusers、newusers/create、newusers/create2、newusers/byemail、newusers/autocreate
lestart

列挙の始点となるタイムスタンプ。

Type: timestamp (allowed formats)
leend

列挙の終点となるタイムスタンプ。

Type: timestamp (allowed formats)
ledir

列挙の方向:

newer
古いものを先に表示します。注意: lestart は leend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: lestart は leend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
leuser

与えられた利用者による記録項目に絞り込む。

Type: user name
letitle

そのページに関連する記録項目に絞り込む。

lenamespace

与えられた名前空間内の記録項目に絞り込む。

値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
leprefix

この接頭辞ではじまる記録項目に絞り込む。

letag

このタグが付与された記録項目のみ表示する。

lelimit

返す記録項目の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
lecontinue

When more results are available, use this to continue.

例:
最近の記録項目を一覧表示する。
api.php?action=query&list=logevents [サンドボックスで開く]

list=mystashedfiles (msf)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Get a list of files in the current user's upload stash.

パラメーター:
msfprop

ファイルのどのプロパティを取得するか。

size
ファイルサイズと画像の大きさを取得します。
type
ファイルの MIME タイプとメディアタイプを取得します。
値 (|で区切る): size、type
既定値: (空)
msflimit

取得するファイルの数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
msfcontinue

When more results are available, use this to continue.

例:
Get the filekey, file size, and pixel size of files in the current user's upload stash.
api.php?action=query&list=mystashedfiles&msfprop=size [サンドボックスで開く]

list=pagepropnames (ppn)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Wiki内で使用されているすべてのページプロパティ名を一覧表示します。

パラメーター:
ppncontinue

When more results are available, use this to continue.

ppnlimit

返す名前の最大数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
例:
最初の10個のプロパティ名を取得する。
api.php?action=query&list=pagepropnames [サンドボックスで開く]

list=pageswithprop (pwp)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

与えられたページプロパティが使用されているすべてのページを一覧表示します。

パラメーター:
pwppropname

Page property for which to enumerate pages (action=query&list=pagepropnames returns page property names in use).

このパラメーターは必須です。
pwpprop

どの情報を結果に含めるか:

ids
ページIDを追加します。
title
ページ名と名前空間IDを追加します。
value
ページプロパティの値を追加。
値 (|で区切る): ids、title、value
既定値: ids|title
pwpcontinue

When more results are available, use this to continue.

pwplimit

返すページの最大数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
pwpdir

In which direction to sort.

値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
例:
{{DISPLAYTITLE:}} を使用している最初の10ページを一覧表示する。
api.php?action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value [サンドボックスで開く]
__NOTOC__ を使用している最初の10ページについての追加情報を取得する。
api.php?action=query&generator=pageswithprop&gpwppropname=notoc&prop=info [サンドボックスで開く]

list=prefixsearch (ps)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

ページ名の先頭一致検索を行います。

名前が似ていますが、このモジュールはSpecial:PrefixIndexと等価であることを意図しません。そのような目的ではaction=query&list=allpagesapprefix パラメーターと共に使用してください。このモジュールの目的は action=opensearch と似ています: 利用者から入力を受け取り、最も適合するページ名を提供するというものです。検索エンジンのバックエンドによっては、誤入力の訂正や、転送の回避、その他のヒューリスティクスが適用されることがあります。

パラメーター:
pssearch

検索文字列。

このパラメーターは必須です。
psnamespace

検索する名前空間。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
既定値: 0
pslimit

返す結果の最大数。

No more than 100 (200 for bots) allowed.
Type: integer or max
既定値: 10
psoffset

Number of results to skip.

Type: integer
既定値: 0

list=protectedtitles (pt)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

作成保護が掛けられているページを一覧表示します。

パラメーター:
ptnamespace

この名前空間に含まれるページのみを一覧表示します。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
ptlevel

この保護レベルのページのみを一覧表示します。

値 (|で区切る): autoconfirmed、sysop
ptlimit

返すページの総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
ptdir

列挙の方向:

newer
古いものを先に表示します。注意: ptstart は ptend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: ptstart は ptend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
ptstart

一覧表示の始点となる保護タイムスタンプ。

Type: timestamp (allowed formats)
ptend

一覧表示の終点となる保護タイムスタンプ。

Type: timestamp (allowed formats)
ptprop

取得するプロパティ:

timestamp
Adds the timestamp of when protection was added.
user
Adds the user that added the protection.
userid
Adds the user ID that added the protection.
comment
Adds the comment for the protection.
parsedcomment
Adds the parsed comment for the protection.
expiry
Adds the timestamp of when the protection will be lifted.
level
保護レベルを追加します。
値 (|で区切る): timestamp、user、userid、comment、parsedcomment、expiry、level
既定値: timestamp|level
ptcontinue

When more results are available, use this to continue.

例:
保護されているページを一覧表示する。
api.php?action=query&list=protectedtitles [サンドボックスで開く]
標準名前空間にある保護されたページへのリンクを検索する。
api.php?action=query&generator=protectedtitles&gptnamespace=0&prop=linkshere [サンドボックスで開く]

list=querypage (qp)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

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

パラメーター:
qppage

特別ページの名前です。これは大文字小文字を区別することに注意。

このパラメーターは必須です。
値 (次の値のいずれか1つ): 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
qpoffset

When more results are available, use this to continue.

Type: integer
既定値: 0
qplimit

返す結果の数。

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

list=random (rn)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

Get a set of random pages.

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.

パラメーター:
rnnamespace

この名前空間にあるページのみを返します。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
rnfilterredir

転送ページを絞り込む方法。

値 (次の値のいずれか1つ): all、redirects、nonredirects
既定値: nonredirects
rnredirect
廃止予定です。

代わりに rnfilterredir=redirects を使用してください。

Type: boolean (details)
rnlimit

返す無作為なページの数を制限する。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 1
rncontinue

When more results are available, use this to continue.

例:
標準名前空間から2つのページを無作為に返す。
api.php?action=query&list=random&rnnamespace=0&rnlimit=2 [サンドボックスで開く]
標準名前空間から無作為に選ばれた2つのページのページ情報を返す。
api.php?action=query&generator=random&grnnamespace=0&grnlimit=2&prop=info [サンドボックスで開く]

list=recentchanges (rc)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

最近の更新を一覧表示します。

パラメーター:
rcstart

列挙の始点となるタイムスタンプ。

Type: timestamp (allowed formats)
rcend

列挙の終点となるタイムスタンプ。

Type: timestamp (allowed formats)
rcdir

列挙の方向:

newer
古いものを先に表示します。注意: rcstart は rcend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: rcstart は rcend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
rcnamespace

この名前空間の変更のみに絞り込む。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
rcuser

この利用者による変更のみを一覧表示する。

Type: user name
rcexcludeuser

この利用者による変更を一覧表示しない。

Type: user name
rctag

このタグが付与された版のみ一覧表示する。

rcprop

Include additional pieces of information:

user
Adds the user responsible for the edit and tags if they are an IP.
userid
Adds the user ID responsible for the edit.
comment
Adds the comment for the edit.
parsedcomment
構文解析された編集コメントを追加します。
flags
編集のフラグを追加します。
timestamp
編集のタイムスタンプを追加します。
title
編集のページ名を追加します。
ids
ページID、最近の更新IDと新旧の版IDを追加します。
sizes
バイト単位の新旧のページの長さを追加します。
redirect
編集されたページが転送ページである場合、印を付けます。
patrolled
巡回可能な編集について、巡回済みかどうか印を付けます。
loginfo
記録項目に記録の情報 (記録ID, 記録タイプなど) を追加します。
tags
Lists tags for the entry.
sha1
Adds the content checksum for entries associated with a revision.
値 (|で区切る): user、userid、comment、parsedcomment、flags、timestamp、title、ids、sizes、redirect、patrolled、loginfo、tags、sha1
既定値: title|timestamp|ids
rctoken
廃止予定です。

代わりに action=query&meta=tokens を使用してください。

値 (|で区切る): patrol
rcshow

Show only items that meet these criteria. For example, to see only minor edits done by logged-in users, set rcshow=minor|!anon.

値 (|で区切る): minor、!minor、bot、!bot、anon、!anon、redirect、!redirect、patrolled、!patrolled、unpatrolled
rclimit

返す変更の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
rctype

Which types of changes to show.

値 (|で区切る): edit、new、log、external、categorize
既定値: edit|new|log|categorize
rctoponly

最新の版である変更のみを一覧表示する。

Type: boolean (details)
rccontinue

When more results are available, use this to continue.

rcgeneraterevisions

ジェネレータとして使用される場合、版IDではなくページ名を生成します。関連する版IDのない最近の変更の項目 (例えば、ほとんどの記録項目) は何も生成しません。

Type: boolean (details)

list=search (sr)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

全文検索を行います。

パラメーター:
srsearch

この値を含むページ名または本文を検索します。Wikiの検索バックエンド実装に応じて、あなたは特別な検索機能を呼び出すための文字列を検索することができます。

このパラメーターは必須です。
srnamespace

この名前空間内のみを検索します。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
既定値: 0
srwhat

実行する検索の種類です。

値 (次の値のいずれか1つ): title、text、nearmatch
srinfo

Which metadata to return.

値 (|で区切る): totalhits、suggestion、rewrittenquery
既定値: totalhits|suggestion|rewrittenquery
srprop

返すプロパティ:

size
バイト単位のページのサイズを追加します。
wordcount
ページのワード数を追加します。
timestamp
ページが最後に編集されたときのタイムスタンプを追加します。
snippet
Adds a parsed snippet of the page.
titlesnippet
Adds a parsed snippet of the page title.
redirecttitle
Adds the title of the matching redirect.
redirectsnippet
Adds a parsed snippet of the redirect title.
sectiontitle
合致するタイトルを追加します。
sectionsnippet
Adds a parsed snippet of the matching section title.
isfilematch
Adds a boolean indicating if the search matched file content.
categorysnippet
Adds a parsed snippet of the matching category.
score
Deprecated and ignored.
hasrelated
Deprecated and ignored.
値 (|で区切る): size、wordcount、timestamp、snippet、titlesnippet、redirecttitle、redirectsnippet、sectiontitle、sectionsnippet、isfilematch、categorysnippet、score、hasrelated
既定値: size|wordcount|timestamp|snippet
sroffset

When more results are available, use this to continue.

Type: integer
既定値: 0
srlimit

返すページの総数です。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
srinterwiki

Include interwiki results in the search, if available.

Type: boolean (details)
srenablerewrites

Enable internal query rewriting. Some search backends can rewrite the query into one its thinks gives better results, such as correcting spelling errors.

Type: boolean (details)

list=tags (tg)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

変更タグを一覧表示します。

パラメーター:
tgcontinue

When more results are available, use this to continue.

tglimit

一覧表示するタグの最大数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
tgprop

取得するプロパティ:

name
タグの名前を追加。
displayname
タグのためのシステムメッセージを追加します。
description
タグの説明を追加します。
hitcount
版の記録項目の数と、このタグを持っている記録項目の数を、追加します。
defined
Indicate whether the tag is defined.
source
Gets the sources of the tag, which may include extension for extension-defined tags and manual for tags that may be applied manually by users.
active
Whether the tag is still being applied.
値 (|で区切る): name、displayname、description、hitcount、defined、source、active
既定値: name

list=usercontribs (uc)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

利用者によるすべての編集を取得します。

パラメーター:
uclimit

返す投稿記録の最大数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
ucstart

The start timestamp to return from.

Type: timestamp (allowed formats)
ucend

The end timestamp to return to.

Type: timestamp (allowed formats)
uccontinue

When more results are available, use this to continue.

ucuser

投稿記録を取得する利用者。

Type: list of user names
複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
ucuserprefix

この値で始まる名前のすべての利用者の投稿記録を取得します。ucuser をオーバーライドします。

ucdir

列挙の方向:

newer
古いものを先に表示します。注意: ucstart は ucend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: ucstart は ucend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
ucnamespace

この名前空間への投稿記録のみを一覧表示する。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
ucprop

Include additional pieces of information:

ids
ページIDと版IDを追加します。
title
ページ名と名前空間IDを追加します。
timestamp
編集のタイムスタンプを追加します。
comment
編集のコメントを追加します。
parsedcomment
構文解析された編集コメントを追加します。
size
編集の新しいサイズを追加します。
sizediff
Adds the size delta of the edit against its parent.
flags
Adds flags of the edit.
patrolled
Tags patrolled edits.
tags
Lists tags for the edit.
値 (|で区切る): ids、title、timestamp、comment、parsedcomment、size、sizediff、flags、patrolled、tags
既定値: ids|title|timestamp|comment|size|flags
ucshow

Show only items that meet these criteria, e.g. non minor edits only: ucshow=!minor.

If ucshow=patrolled or ucshow=!patrolled is set, revisions older than $wgRCMaxAge (7776000 seconds) won't be shown.

値 (|で区切る): minor、!minor、patrolled、!patrolled、top、!top、new、!new
uctag

このタグが付与された版のみを一覧表示する。

uctoponly
廃止予定です。

最新の版である変更のみを一覧表示する。

Type: boolean (details)
例:
利用者 Example の投稿記録を表示する。
api.php?action=query&list=usercontribs&ucuser=Example [サンドボックスで開く]
Show contributions from all IP addresses with prefix 192.0.2..
api.php?action=query&list=usercontribs&ucuserprefix=192.0.2. [サンドボックスで開く]

list=users (us)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

利用者のリストについての情報を取得します。

パラメーター:
usprop

どの情報を結果に含めるか:

blockinfo
Tags if the user is blocked, by whom, and for what reason.
groups
Lists all the groups each user belongs to.
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.
値 (|で区切る): blockinfo、groups、implicitgroups、rights、editcount、registration、emailable、gender、centralids、cancreate
usattachedwiki

With usprop=centralids, indicate whether the user is attached with the wiki identified by this ID.

ususers

A list of users to obtain information for.

Type: list of user names
複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
ustoken
廃止予定です。

代わりに action=query&meta=tokens を使用してください。

値 (|で区切る): userrights

list=watchlist (wl)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

現在の利用者のウォッチリストにあるページへの最近の更新を取得します。

パラメーター:
wlallrev

Include multiple revisions of the same page within given timeframe.

Type: boolean (details)
wlstart

列挙の始点となるタイムスタンプ。

Type: timestamp (allowed formats)
wlend

列挙の終点となるタイムスタンプ。

Type: timestamp (allowed formats)
wlnamespace

この名前空間の変更のみに絞り込む。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
wluser

この利用者による変更のみを一覧表示する。

Type: user name
wlexcludeuser

この利用者による変更を一覧表示しない。

Type: user name
wldir

列挙の方向:

newer
古いものを先に表示します。注意: wlstart は wlend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: wlstart は wlend 以降でなければなりません。
値 (次の値のいずれか1つ): newer、older
既定値: older
wllimit

How many total results to return per request.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
wlprop

追加で取得するプロパティ:

ids
版IDとページIDを追加します。
title
ページ名を追加します。
flags
Adds flags for the edit.
user
Adds the user who made the edit.
userid
Adds user ID of whoever made the edit.
comment
編集のコメントを追加します。
parsedcomment
編集の構文解析されたコメントを追加します。
timestamp
編集のタイムスタンプを追加します。
patrol
Tags edits that are patrolled.
sizes
Adds the old and new lengths of the page.
notificationtimestamp
Adds timestamp of when the user was last notified about the edit.
loginfo
適切な場合にログ情報を追加します。
値 (|で区切る): ids、title、flags、user、userid、comment、parsedcomment、timestamp、patrol、sizes、notificationtimestamp、loginfo
既定値: ids|title|flags
wlshow

Show only items that meet these criteria. For example, to see only minor edits done by logged-in users, set wlshow=minor|!anon.

値 (|で区切る): minor、!minor、bot、!bot、anon、!anon、patrolled、!patrolled、unread、!unread
wltype

Which types of changes to show:

edit
Regular page edits.
new
Page creations.
log
Log entries.
external
External changes.
categorize
Category membership changes.
値 (|で区切る): edit、new、log、external、categorize
既定値: edit|new|log|categorize
wlowner

Used along with wltoken to access a different user's watchlist.

Type: user name
wltoken

A security token (available in the user's preferences) to allow access to another user's watchlist.

wlcontinue

When more results are available, use this to continue.

例:
現在の利用者のウォッチリストにある最近変更されたページの最新版を一覧表示します。
api.php?action=query&list=watchlist [サンドボックスで開く]
Fetch additional information about the top revision for recently changed pages on the current user's watchlist.
api.php?action=query&list=watchlist&wlprop=ids|title|timestamp|user|comment [サンドボックスで開く]
Fetch information about all recent changes to pages on the current user's watchlist.
api.php?action=query&list=watchlist&wlallrev=&wlprop=ids|title|timestamp|user|comment [サンドボックスで開く]
現在の利用者のウォッチリスト上の最近更新されたページに関する情報を取得する。
api.php?action=query&generator=watchlist&prop=info [サンドボックスで開く]
Fetch revision info for recent changes to pages on the current user's watchlist.
api.php?action=query&generator=watchlist&gwlallrev=&prop=revisions&rvprop=timestamp|user [サンドボックスで開く]
List the top revision for recently changed pages on the watchlist of user Example.
api.php?action=query&list=watchlist&wlowner=Example&wltoken=123ABC [サンドボックスで開く]

list=watchlistraw (wr)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: GPL-2.0+

現在の利用者のウォッチリストにあるすべてのページを取得します。

パラメーター:
wrcontinue

When more results are available, use this to continue.

wrnamespace

この名前空間に含まれるページのみを一覧表示します。

値 (|で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15
wrlimit

How many total results to return per request.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
wrprop

追加で取得するプロパティ:

changed
Adds timestamp of when the user was last notified about the edit.
値 (|で区切る): changed
wrshow

Only list items that meet these criteria.

値 (|で区切る): changed、!changed
wrowner

Used along with wrtoken to access a different user's watchlist.

Type: user name
wrtoken

A security token (available in the user's preferences) to allow access to another user's watchlist.

wrdir

列挙の方向:

newer
古いものを先に表示します。注意: wrstart は wrend 以前でなければなりません。
older
新しいものを先に表示します (既定)。注意: wrstart は wrend 以降でなければなりません。
値 (次の値のいずれか1つ): ascending、descending
既定値: ascending
wrfromtitle

Title (with namespace prefix) to begin enumerating from.

wrtotitle

Title (with namespace prefix) to stop enumerating at.

例:
List pages on the current user's watchlist.
api.php?action=query&list=watchlistraw [サンドボックスで開く]
現在の利用者のウォッチリスト上のページに関する情報を取得する。
api.php?action=query&generator=watchlistraw&gwrshow=changed&prop=info [サンドボックスで開く]

meta=allmessages (am)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Return messages from this site.

パラメーター:
ammessages

出力のためのメッセージ。 *(デフォルト)は、すべてのメッセージを意味します。

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
既定値: *
amprop

取得するプロパティ:

値 (|で区切る): default
amenableparser

Set to enable parser, will preprocess the wikitext of message (substitute magic words, handle templates, etc.).

Type: boolean (details)
amnocontent

設定した場合、出力内のメッセージの内容が含まれていません。

Type: boolean (details)
amincludelocal

Also include local messages, i.e. messages that don't exist in the software but do exist as a MediaWiki: page. This lists all MediaWiki: pages, so it will also list those that aren't really messages such as Common.js.

Type: boolean (details)
amargs

メッセージ中に展開される引数。

複数の値は | で区切ってください。 値の最大値は 50 (ボットの場合は 500) です。
amfilter

この文字列を含んだ名前のメッセージのみを返す。

amcustomised

変更された状態のメッセージのみを返す。

値 (次の値のいずれか1つ): all、modified、unmodified
既定値: all
amlang

返すメッセージの言語。

amfrom

Return messages starting at this message.

amto

Return messages ending at this message.

amtitle

Page name to use as context when parsing message (for amenableparser option).

amprefix

この接頭辞を持つメッセージを返す。

例:
ipb- で始まるメッセージを表示する。
api.php?action=query&meta=allmessages&amprefix=ipb- [サンドボックスで開く]
ドイツ語のメッセージ august および mainpage を表示する。
api.php?action=query&meta=allmessages&ammessages=august|mainpage&amlang=de [サンドボックスで開く]

meta=authmanagerinfo (ami)

Retrieve information about the current authentication status.

パラメーター:
amisecuritysensitiveoperation

Test whether the user's current authentication status is sufficient for the specified security-sensitive operation.

amirequestsfor

Fetch information about the authentication requests needed for the specified authentication action.

値 (次の値のいずれか1つ): login、login-continue、create、create-continue、link、link-continue、change、remove、unlink
amimergerequestfields

Merge field information for all authentication requests into one array.

Type: boolean (details)
amimessageformat

Format to use for returning messages.

値 (次の値のいずれか1つ): html、wikitext、raw、none
既定値: wikitext

meta=filerepoinfo (fri)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Return meta information about image repositories configured on the wiki.

パラメーター:
friprop

Which repository properties to get (there may be more available on some wikis):

apiurl
URL to the repository API - helpful for getting image info from the host.
name
The key of the repository - used in e.g. $wgForeignFileRepos and imageinfo return values.
displayname
The human-readable name of the repository wiki.
rooturl
Root URL for image paths.
local
Whether that repository is the local one or not.
値 (|で区切る): name、displayname、rootUrl、local、url、thumbUrl、initialCapital、scriptDirUrl、fetchDescription、descriptionCacheExpiry、apiurl、articlepath、server、favicon、scriptExtension、canUpload
既定値: name|displayname|rootUrl|local|url|thumbUrl|initialCapital|scriptDirUrl|fetchDescription|descriptionCacheExpiry|apiurl|articlepath|server|favicon|scriptExtension|canUpload
例:
ファイルリポジトリについての情報を取得します。
api.php?action=query&meta=filerepoinfo&friprop=apiurl|name|displayname [サンドボックスで開く]

meta=siteinfo (si)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Return general information about the site.

パラメーター:
siprop

どの情報を取得するか:

general
システム全体の情報。
namespaces
List of registered namespaces and their canonical names.
namespacealiases
List of registered namespace aliases.
specialpagealiases
特別ページの別名の一覧。
magicwords
マジックワードとこれらの別名の一覧。
interwikimap
Returns interwiki map (optionally filtered, optionally localised by using siinlanguagecode).
dbrepllag
Returns database server with the highest replication lag.
statistics
Returns site statistics.
usergroups
Returns user groups and the associated permissions.
libraries
Returns libraries installed on the wiki.
extensions
Returns extensions installed on the wiki.
fileextensions
Returns list of file extensions (file types) allowed to be uploaded.
rightsinfo
Returns wiki rights (license) information if available.
restrictions
Returns information on available restriction (protection) types.
languages
Returns a list of languages MediaWiki supports (optionally localised by using siinlanguagecode).
skins
Returns a list of all enabled skins (optionally localised by using siinlanguagecode, otherwise in the content language).
extensiontags
Returns a list of parser extension tags.
functionhooks
Returns a list of parser function hooks.
showhooks
Returns a list of all subscribed hooks (contents of $wgHooks).
variables
Returns a list of variable IDs.
protocols
Returns a list of protocols that are allowed in external links.
defaultoptions
Returns the default values for user preferences.
uploaddialog
Returns the upload dialog configuration.
値 (|で区切る): general、namespaces、namespacealiases、specialpagealiases、magicwords、interwikimap、dbrepllag、statistics、usergroups、libraries、extensions、fileextensions、rightsinfo、restrictions、languages、skins、extensiontags、functionhooks、showhooks、variables、protocols、defaultoptions、uploaddialog
既定値: general
sifilteriw

Return only local or only nonlocal entries of the interwiki map.

値 (次の値のいずれか1つ): local、!local
sishowalldb

List all database servers, not just the one lagging the most.

Type: boolean (details)
sinumberingroup

Lists the number of users in user groups.

Type: boolean (details)
siinlanguagecode

Language code for localised language names (best effort) and skin names.

meta=tokens

データ変更操作用のトークンを取得します。

パラメーター:
type

リクエストするトークンの種類。

値 (|で区切る): createaccount、csrf、login、patrol、rollback、userrights、watch
既定値: csrf
例:
csrfトークンを取得する (既定)。
api.php?action=query&meta=tokens [サンドボックスで開く]
ウォッチトークンおよび巡回トークンを取得する。
api.php?action=query&meta=tokens&type=watch|patrol [サンドボックスで開く]

meta=userinfo (ui)

  • このモジュールは読み取りの権限を必要とします。
  • Source: MediaWiki
  • License: GPL-2.0+

Get information about the current user.

パラメーター:
uiprop

どの情報を結果に含めるか:

blockinfo
Tags if the current user is blocked, by whom, and for what reason.
hasmsg
Adds a tag messages if the current user has pending messages.
groups
Lists all the groups the current user belongs to.
implicitgroups
Lists all the groups the current user is automatically a member of.
rights
Lists all the rights the current user has.
changeablegroups
Lists the groups the current user can add to and remove from.
options
Lists all preferences the current user has set.
preferencestoken
Deprecated. Get a token to change current user's preferences.
editcount
Adds the current user's edit count.
ratelimits
Lists all rate limits applying to the current user.
email
Adds the user's email address and email authentication date.
realname
利用者の本名を追加します。
acceptlang
Echoes the Accept-Language header sent by the client in a structured format.
registrationdate
Adds the user's registration date.
unreadcount
Adds the count of unread pages on the user's watchlist (maximum 999; returns 1000+ if more).
centralids
Adds the central IDs and attachment status for the user.
値 (|で区切る): blockinfo、hasmsg、groups、implicitgroups、rights、changeablegroups、options、preferencestoken、editcount、ratelimits、email、realname、acceptlang、registrationdate、unreadcount、centralids
uiattachedwiki

With uiprop=centralids, indicate whether the user is attached with the wiki identified by this ID.

例:
現在の利用者に関する情報を取得します。
api.php?action=query&meta=userinfo [サンドボックスで開く]
現在の利用者に関する追加情報を取得します。
api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg [サンドボックスで開く]