MediaWiki API ヘルプ

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

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

action=query

(main | query)
  • このモジュールは読み取りの権限を必要とします。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

MediaWikiからデータを取得します。

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

パラメーター:
Other general parameters are available.
prop

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

categories
ページが属するすべてのカテゴリを一覧表示します。
categoryinfo
与えられたカテゴリに関する情報を返します。
contributors
ページへのログインした投稿者の一覧と匿名投稿者の数を取得します。
deletedrevisions
削除された版の情報を取得します。
duplicatefiles
ハッシュ値に基づいて与えられたファイルの全ての重複ファイルを返します。
extlinks
与えられたページにあるすべての外部URL (インターウィキを除く) を返します。
extracts
指定されたページのプレーンテキストまたは制限付きHTMLを返します。
fileusage
与えられたファイルを利用しているすべてのページを返します。
imageinfo
ファイルの情報とアップロード履歴を返します。
images
与えられたページに含まれるすべてのファイルを返します。
info
ページの基本的な情報を取得します。
iwlinks
ページからのすべてのウィキ間リンクを返します。
langlinks
ページからのすべての言語間リンクを返します。
links
ページからのすべてのリンクを返します。
linkshere
与えられたページにリンクしているすべてのページを返します。
pageimages
Returns information about images on the page, such as thumbnail and presence of photos.
pageprops
ページコンテンツで定義されている様々なページのプロパティを取得。
redirects
ページへのすべての転送を返します。
revisions
版の情報を取得します。
stashimageinfo
Returns file information for stashed files.
templates
与えられたページで参照読み込みされているすべてのページを返します。
transcludedin
与えられたページを参照読み込みしているすべてのページを検索します。
値 (| または別の文字列で区切る): categoriescategoryinfocontributorsdeletedrevisionsduplicatefilesextlinksextractsfileusageimageinfoimagesinfoiwlinkslanglinkslinkslinksherepageimagespagepropsredirectsrevisionsstashimageinfotemplatestranscludedin
list

どの一覧を取得するか。

allcategories
すべてのカテゴリを一覧表示します。
alldeletedrevisions
利用者によって削除された、または名前空間内の削除されたすべての版を一覧表示する。
allfileusages
存在しないものを含め、すべてのファイルの使用状況を一覧表示する。
allimages
順次すべての画像を列挙します。
alllinks
与えられた名前空間へのすべてのリンクを一覧表示します。
allpages
Enumerate all pages sequentially in a given namespace.
allredirects
ある名前空間へのすべての転送を一覧表示する。
allrevisions
すべての版を一覧表示する。
alltransclusions
存在しないものも含めて、すべての参照読み込み ({{x}} で埋め込まれたページ) を一覧表示します。
allusers
すべての登録利用者を一覧表示します。
backlinks
与えられたページにリンクしているすべてのページを検索します。
blocks
ブロックされた利用者とIPアドレスを一覧表示します。
categorymembers
与えられたカテゴリ内のすべてのページを一覧表示します。
embeddedin
Find all pages that embed (transclude) the given title.
exturlusage
与えられたURLを含むページを一覧表示します。
filearchive
削除されたファイルをすべて順に列挙します。
imageusage
Find all pages that use the given image title.
iwbacklinks
Find all pages that link to the given interwiki link.
langbacklinks
与えられた言語間リンクにリンクしているすべてのページを返します。
logevents
Get events from logs.
mystashedfiles
Get a list of files in the current user's upload stash.
pagepropnames
ウィキ内で使用されているすべてのページプロパティ名を一覧表示します。
pageswithprop
与えられたページプロパティが使用されているすべてのページを一覧表示します。
prefixsearch
ページ名の先頭一致検索を行います。
protectedtitles
作成保護が掛けられているページを一覧表示します。
querypage
Get a list provided by a QueryPage-based special page.
random
ランダムなページのセットを取得します。
recentchanges
最近の更新を一覧表示します。
search
全文検索を行います。
tags
変更タグを一覧表示します。
usercontribs
利用者によるすべての編集を取得します。
users
利用者のリストについての情報を取得します。
watchlist
現在の利用者のウォッチリストにあるページへの最近の更新を取得します。
watchlistraw
現在の利用者のウォッチリストにあるすべてのページを取得します。
deletedrevs
廃止予定です。 削除された版を一覧表示します。
値 (| または別の文字列で区切る): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsallusersbacklinksblockscategorymembersembeddedinexturlusagefilearchiveimageusageiwbacklinkslangbacklinkslogeventsmystashedfilespagepropnamespageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangessearchtagsusercontribsuserswatchlistwatchlistrawdeletedrevs
meta

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

allmessages
Return messages from this site.
authmanagerinfo
Retrieve information about the current authentication status.
filerepoinfo
Return meta information about image repositories configured on the wiki.
languageinfo
Return information about available languages.
siteinfo
Return general information about the site.
tokens
データ変更操作用のトークンを取得します。
userinfo
現在の利用者に関する情報を取得します。
値 (| または別の文字列で区切る): allmessagesauthmanagerinfofilerepoinfolanguageinfositeinfotokensuserinfo
indexpageids

Include an additional pageids section listing all returned page IDs.

型: 真偽値 (詳細)
export

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

型: 真偽値 (詳細)
exportnowrap

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

型: 真偽値 (詳細)
exportschema

Target the given version of the XML dump format when exporting. Can only be used with query+export.

値 (次の値のいずれか1つ): 0.10、0.11
既定: 0.11
iwurl

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

型: 真偽値 (詳細)
continue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

rawcontinue

Return raw query-continue data for continuation.

型: 真偽値 (詳細)
titles

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

複数の値は | または代わりの文字で区切ってください。
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
pageids

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

型: 整数のリスト
複数の値は | または代わりの文字で区切ってください。
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
revids

対象の版IDのリスト。

型: 整数のリスト
複数の値は | または代わりの文字で区切ってください。
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
generator

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

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

allcategories
すべてのカテゴリを一覧表示します。
alldeletedrevisions
利用者によって削除された、または名前空間内の削除されたすべての版を一覧表示する。
allfileusages
存在しないものを含め、すべてのファイルの使用状況を一覧表示する。
allimages
順次すべての画像を列挙します。
alllinks
与えられた名前空間へのすべてのリンクを一覧表示します。
allpages
Enumerate all pages sequentially in a given namespace.
allredirects
ある名前空間へのすべての転送を一覧表示する。
allrevisions
すべての版を一覧表示する。
alltransclusions
存在しないものも含めて、すべての参照読み込み ({{x}} で埋め込まれたページ) を一覧表示します。
backlinks
与えられたページにリンクしているすべてのページを検索します。
categories
ページが属するすべてのカテゴリを一覧表示します。
categorymembers
与えられたカテゴリ内のすべてのページを一覧表示します。
deletedrevisions
削除された版の情報を取得します。
duplicatefiles
ハッシュ値に基づいて与えられたファイルの全ての重複ファイルを返します。
embeddedin
Find all pages that embed (transclude) the given title.
exturlusage
与えられたURLを含むページを一覧表示します。
fileusage
与えられたファイルを利用しているすべてのページを返します。
images
与えられたページに含まれるすべてのファイルを返します。
imageusage
Find all pages that use the given image title.
iwbacklinks
Find all pages that link to the given interwiki link.
langbacklinks
与えられた言語間リンクにリンクしているすべてのページを返します。
links
ページからのすべてのリンクを返します。
linkshere
与えられたページにリンクしているすべてのページを返します。
pageswithprop
与えられたページプロパティが使用されているすべてのページを一覧表示します。
prefixsearch
ページ名の先頭一致検索を行います。
protectedtitles
作成保護が掛けられているページを一覧表示します。
querypage
Get a list provided by a QueryPage-based special page.
random
ランダムなページのセットを取得します。
recentchanges
最近の更新を一覧表示します。
redirects
ページへのすべての転送を返します。
revisions
版の情報を取得します。
search
全文検索を行います。
templates
与えられたページで参照読み込みされているすべてのページを返します。
transcludedin
与えられたページを参照読み込みしているすべてのページを検索します。
watchlist
現在の利用者のウォッチリストにあるページへの最近の更新を取得します。
watchlistraw
現在の利用者のウォッチリストにあるすべてのページを取得します。
値 (次の値のいずれか1つ): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsbacklinkscategoriescategorymembersdeletedrevisionsduplicatefilesembeddedinexturlusagefileusageimagesimageusageiwbacklinkslangbacklinkslinkslinksherepageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangesredirectsrevisionssearchtemplatestranscludedinwatchlistwatchlistraw
redirects

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

型: 真偽値 (詳細)
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 ban、en、crh、gan、iu、kk、ku、shi、sr、tg、uz および zh.

型: 真偽値 (詳細)