MediaWiki API ヘルプ

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

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

メイン モジュール

状態: MediaWiki APIは、積極的にサポートされ、改善された成熟した安定したインターフェースです。避けようとはしていますが、時には破壊的変更を行う必要があるかもしれません。更新の通知を受け取るには、mediawiki-api-announce メーリングリストに参加してください。

誤ったリクエスト: 誤ったリクエストが API に送られた場合、"MediaWiki-API-Error" HTTP ヘッダーが送信され、そのヘッダーの値と送り返されるエラーコードは同じ値にセットされます。より詳しい情報は API:Errors and warnings を参照してください。

パラメーター:
action

実行する操作です。

approve
版を承認するか承認を取り消すことで版を評価します。
block
利用者をブロックします。
changeauthenticationdata
現在の利用者の認証データを変更します。
changecontentmodel
ページのコンテンツモデルを変更します。
checktoken
action=query&meta=tokens のトークンの妥当性を確認します。
clearhasmsg
現在の利用者の hasmsg フラグを消去します。
clientlogin
インタラクティブフローを使用してウィキにログインします。
compare
2つの版間の差分を取得します。
createaccount
新しい利用者アカウントを作成します。
delete
ページを削除します。
edit
ページを作成、編集します。
emailuser
利用者にメールを送信します。
embedvideo
Get generated video embed code for given parameters.
expandtemplates
ウィキテキストに含まれるすべてのテンプレートを展開します。
feedcontributions
利用者の投稿記録フィードを返します。
feedrecentchanges
最近の更新フィードを返します。
feedwatchlist
ウォッチリストのフィードを返します。
filerevert
ファイルを古い版に差し戻します。
help
指定したモジュールのヘルプを表示します。
imagerotate
1つ以上の画像を回転させます。
import
別のウィキまたはXMLファイルからページをインポートする。
jsonconfig
JsonConfig サブシステムに直接アクセスできるようにします。
linkaccount
Link an account from a third-party provider to the current user.
login
ログインして認証クッキーを取得します。
logout
ログアウトしてセッションデータを消去します。
managetags
Perform management tasks relating to change tags.
mergehistory
ページの履歴を統合する。
move
ページを移動します。
opensearch
OpenSearch プロトコルを使用してウィキ内を検索します。
options
現在の利用者の設定を変更します。
paraminfo
API モジュールに関する情報を取得します。
parse
Parses content and returns parser output.
patrol
ページまたは版を巡回済みにする。
protect
ページの保護レベルを変更します。
purge
指定されたページのキャッシュを破棄します。
query
MediaWikiからデータを取得します。
removeauthenticationdata
Remove authentication data for the current user.
resetpassword
利用者にパスワードをリセットするメールを送信します。
revisiondelete
版の削除および復元を行います。
rollback
ページの最後の編集を取り消す。
rsd
Export an RSD (Really Simple Discovery) schema.
setnotificationtimestamp
Update the notification timestamp for watched pages.
setpagelanguage
ページの言語を変更します。
tag
個々の版または記録項目に対しタグの追加または削除を行います。
templatedata
TemplateData 拡張機能によって保存されたデータを取得します。
unblock
利用者のブロックを解除します。
undelete
削除されたページの版を復元します。
unlinkaccount
Remove a linked third-party account from the current user.
upload
Upload a file, or get the status of pending uploads.
userrights
利用者の所属グループを変更します。
validatepassword
Validate a password against the wiki's password policies.
watch
現在の利用者のウォッチリストにページを追加/除去します。
wbavailablebadges
Queries available badge items.
wbcreateclaim
Creates Wikibase claims.
wbcreateredirect
Creates Entity redirects.
wbeditentity
Creates a single new Wikibase entity and modifies it with serialised information.
wbformatentities
Formats entity IDs to HTML.
wbformatvalue
Formats DataValues.
wbgetclaims
Gets Wikibase claims.
wbgetentities
Gets the data for multiple Wikibase entities.
wblinktitles
Associates two pages on two different wikis with a Wikibase item.
wbmergeitems
Merges multiple items.
wbparsevalue
Parses values using a ValueParser.
wbremoveclaims
Removes Wikibase claims.
wbremovequalifiers
Removes a qualifier from a claim.
wbremovereferences
Removes one or more references of the same statement.
wbsearchentities
Searches for entities using labels and aliases.
wbsetaliases
Sets the aliases for a Wikibase entity.
wbsetclaim
Creates or updates an entire Statement or Claim.
wbsetclaimvalue
Sets the value of a Wikibase claim.
wbsetdescription
Sets a description for a single Wikibase entity.
wbsetlabel
Sets a label for a single Wikibase entity.
wbsetqualifier
Creates a qualifier or sets the value of an existing one.
wbsetreference
Creates a reference or sets the value of an existing one.
wbsetsitelink
Associates a page on a wiki with a Wikibase item or removes an already made such association.
webapp-manifest
Returns a webapp manifest.
cspreport
内部で使用。 Used by browsers to report violations of the Content Security Policy. This module should never be used, except when used automatically by a CSP compliant web browser.
jsondata
内部で使用。 Retrieve localized JSON data.
scribunto-console
内部で使用。 Internal module for servicing XHR requests from the Scribunto console.
stashedit
内部で使用。 Prepare an edit in shared cache.
値 (次の値のいずれか1つ): approveblockchangeauthenticationdatachangecontentmodelchecktokenclearhasmsgclientlogincomparecreateaccountdeleteeditemailuserembedvideoexpandtemplatesfeedcontributionsfeedrecentchangesfeedwatchlistfilereverthelpimagerotateimportjsonconfiglinkaccountloginlogoutmanagetagsmergehistorymoveopensearchoptionsparaminfoparsepatrolprotectpurgequeryremoveauthenticationdataresetpasswordrevisiondeleterollbackrsdsetnotificationtimestampsetpagelanguagetagtemplatedataunblockundeleteunlinkaccountuploaduserrightsvalidatepasswordwatchwbavailablebadgeswbcreateclaimwbcreateredirectwbeditentitywbformatentitieswbformatvaluewbgetclaimswbgetentitieswblinktitleswbmergeitemswbparsevaluewbremoveclaimswbremovequalifierswbremovereferenceswbsearchentitieswbsetaliaseswbsetclaimwbsetclaimvaluewbsetdescriptionwbsetlabelwbsetqualifierwbsetreferencewbsetsitelinkwebapp-manifestcspreportjsondatascribunto-consolestashedit
既定: help
format

出力する形式です。

json
データを JSON 形式で出力します。
jsonfm
データを JSON 形式 (HTML に埋め込んだ形式) で出力します。
none
何も出力しません。
php
データを PHP のシリアル化した形式で出力します。
phpfm
データを PHP のシリアル化した形式 (HTML に埋め込んだ形式) で出力します。
rawfm
データをデバッグ要素付きで JSON 形式 (HTML に埋め込んだ形式) で出力します。
xml
データを XML 形式で出力します。
xmlfm
データを XML 形式 (HTML に埋め込んだ形式) で出力します。
値 (次の値のいずれか1つ): jsonjsonfmnonephpphpfmrawfmxmlxmlfm
既定: jsonfm
maxlag

Maximum lag can be used when MediaWiki is installed on a database replicated cluster. To save actions causing any more site replication lag, this parameter can make the client wait until the replication lag is less than the specified value. In case of excessive lag, error code maxlag is returned with a message like Waiting for $host: $lag seconds lagged.
See Manual: Maxlag parameter for more information.

型: 整数
smaxage

s-maxage HTTP キャッシュ コントロール ヘッダー に、この秒数を設定します。エラーがキャッシュされることはありません。

型: 整数
既定: 0
maxage

max-age HTTP キャッシュ コントロール ヘッダー に、この秒数を設定します。エラーがキャッシュされることはありません。

型: 整数
既定: 0
assert

user に設定した場合は利用者がログインしていることを、 anon に設定した場合はログインしていないことを、bot の場合はボット利用者権限があることを検証します。

値 (次の値のいずれか1つ): anon、bot、user
assertuser

現在の利用者が指定された利用者であることを確認します。

型: 利用者名を使った利用者
requestid

任意の値を指定でき、その値が結果に含められます。リクエストを識別するために使用できます。

servedby

リクエストを処理したホスト名を結果に含めます。

型: 真偽値 (詳細)
curtimestamp

現在のタイムスタンプを結果に含めます。

型: 真偽値 (詳細)
responselanginfo

結果にuselangerrorlangに使用される言語を含めます。

型: 真偽値 (詳細)
origin

When accessing the API using a cross-domain AJAX request (CORS), set this to the originating domain. This must be included in any pre-flight request, and therefore must be part of the request URI (not the POST body).

For authenticated requests, this must match one of the origins in the Origin header exactly, so it has to be set to something like https://en.wikipedia.org or https://meta.wikimedia.org. If this parameter does not match the Origin header, a 403 response will be returned. If this parameter matches the Origin header and the origin is allowed, the Access-Control-Allow-Origin and Access-Control-Allow-Credentials headers will be set.

For non-authenticated requests, specify the value *. This will cause the Access-Control-Allow-Origin header to be set, but Access-Control-Allow-Credentials will be false and all user-specific data will be restricted.

uselang

メッセージの翻訳に使用する言語です。action=query&meta=siteinfosiprop=languages を付けると言語コードの一覧を返します。user を指定することで現在の利用者の個人設定の言語を、content を指定することでこのウィキの本文の言語を使用することもできます。

既定: user
variant

言語変種。基本言語が言語変種変換をサポートしている場合のみ機能します。

errorformat

警告およびエラーテキストの出力に使用する形式

plaintext
HTMLタグを除去し、実体を置換したウィキテキスト。
wikitext
パースされていないウィキテキスト。
html
HTML
raw
メッセージキーとパラメーター。
none
テキスト出力なし、エラーコードのみ。
bc
MediaWiki 1.29より前に使われていた形式。 errorlang および errorsuselocal は無視されます。
値 (次の値のいずれか1つ): bc、html、none、plaintext、raw、wikitext
既定: bc
errorlang

警告およびエラーで使用する言語。 action=query&meta=siteinfosiprop=languages があると言語コードの一覧を返し、 content を指定するとこのウィキのコンテンツ言語を使用し、uselang を指定すると uselang パラメーターと同じ値を使用します。

既定: uselang
errorsuselocal

指定された場合、エラーテキストはMediaWiki名前空間からローカルにカスタマイズされたメッセージを使用します。

型: 真偽値 (詳細)
例:
メイン モジュールのヘルプ
api.php?action=help [サンドボックスで開く]
すべてのヘルプを1つのページに
api.php?action=help&recursivesubmodules=1 [サンドボックスで開く]
権限:
writeapi
書き込み API を使用
権限を持つグループ: all、user および bot
apihighlimits
Use higher limits in API queries (slow queries: 500; fast queries: 5000). The limits for slow queries also apply to multivalue parameters.
権限を持つグループ: bot および sysop

action=approve

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: Approved Revs
  • ライセンス: GPL-2.0-or-later

版を承認するか承認を取り消すことで版を評価します。

パラメーター:
その他一般パラメーターが利用可能です。
revid

承認する版ID。

この変数は必須です。
型: 整数
unapprove

このパラメーターが設定されている場合、版を承認するのではなく承認を取り消します。

型: 真偽値 (詳細)
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=block

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

利用者をブロックします。

パラメーター:
その他一般パラメーターが利用可能です。
user

ブロックする利用者。

型: 利用者名、IP、IP範囲 および 利用者ID(例: #12345)のいずれかを使った利用者
userid
廃止予定です。

代わりに user=#ID を指定してください。

型: 整数
expiry

有効期限。相対的 (例: 5 months または 2 weeks) または絶対的 (e.g. 2014-09-18T12:34:56Z) どちらでも構いません。infinite, indefinite, もしくは never と設定した場合, 無期限ブロックとなります。

既定: never
reason

ブロックの理由。

既定値: (空)
anononly

匿名利用者のみブロックします(つまり、このIPアドレスからの匿名での編集を不可能にします)。

型: 真偽値 (詳細)
nocreate

アカウントの作成を禁止します。

型: 真偽値 (詳細)
autoblock

その利用者が最後に使用したIPアドレスと、ブロック後に編集を試みた際のIPアドレスを自動的にブロックします。

型: 真偽値 (詳細)
noemail

ウィキを通してメールを送信することを禁止します。(blockemail 権限が必要です)

型: 真偽値 (詳細)
hidename

ブロック記録から利用者名を秘匿します。(hideuser 権限が必要です)

型: 真偽値 (詳細)
allowusertalk

自身のトークページの編集を許可する ($wgBlockAllowsUTEdit に依存)。

型: 真偽値 (詳細)
reblock

その利用者がすでにブロックされている場合、ブロックを上書きします。

型: 真偽値 (詳細)
watchuser

その利用者またはIPアドレスの利用者ページとトークページをウォッチします。

型: 真偽値 (詳細)
tags

ブロック記録の項目に適用する変更タグ。

値 (| または別の文字列で区切る):
partial

サイト全体ではなく特定のページまたは名前空間での編集をブロックします。

型: 真偽値 (詳細)
pagerestrictions

利用者が編集できないようにするページのタイトルのリスト。partial に true が設定されている場合のみ適用します。

タイプ : ページタイトル
複数の値は | または代わりの文字で区切ってください。
値の最大値は 10 です。
既存のページのみ。
namespacerestrictions

利用者が編集できないようにする名前空間のID。partial に true が設定されている場合のみ適用します。

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
例:
IPアドレス 192.0.2.5 を何らかの理由で3日ブロックする。
api.php?action=block&user=192.0.2.5&expiry=3%20days&reason=First%20strike&token=123ABC [サンドボックスで開く]
利用者 Vandal を何らかの理由で無期限ブロックし、新たなアカウント作成とメールの送信を禁止する。
api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail=&token=123ABC [サンドボックスで開く]

action=changeauthenticationdata (changeauth)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

現在の利用者の認証データを変更します。

パラメーター:
その他一般パラメーターが利用可能です。
changeauthrequest

Use this authentication request, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=change.

この変数は必須です。
changeauthtoken

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
*
This module accepts additional parameters depending on the available authentication requests. Use action=query&meta=authmanagerinfo with amirequestsfor=change (or a previous response from this module, if applicable) to determine the requests available and the fields that they use.

action=changecontentmodel

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページのコンテンツモデルを変更します。

パラメーター:
その他一般パラメーターが利用可能です。
title

Title of the page to change the contentmodel of. Cannot be used together with pageid.

pageid

Page ID of the page to change the contentmodel of. Cannot be used together with title.

型: 整数
summary

Edit summary and log entry reason

tags

Change tags to apply to the log entry and edit.

値 (| または別の文字列で区切る):
model

新しいコンテンツのコンテンツモデル。

この変数は必須です。
値 (次の値のいずれか1つ): Scribunto、css、javascript、json、sanitized-css、text、wikitext
bot

Mark the content model change with a bot flag.

型: 真偽値 (詳細)
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=checktoken

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

action=query&meta=tokens のトークンの妥当性を確認します。

パラメーター:
その他一般パラメーターが利用可能です。
type

調べるトークンの種類。

この変数は必須です。
値 (次の値のいずれか1つ): createaccount、csrf、login、patrol、rollback、userrights、watch
token

調べるトークン。

この変数は必須です。
maxtokenage

トークンの最大有効期限 (秒)。

型: 整数

action=clearhasmsg

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

現在の利用者の hasmsg フラグを消去します。

例:
現在の利用者の hasmsg フラグを消去する。
api.php?action=clearhasmsg [サンドボックスで開く]

action=clientlogin (login)

  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

インタラクティブフローを使用してウィキにログインします。

The general procedure to use this module is:

  1. Fetch the fields available from action=query&meta=authmanagerinfo with amirequestsfor=login, and a login token from action=query&meta=tokens.
  2. Present the fields to the user, and obtain their submission.
  3. Post to this module, supplying loginreturnurl and any relevant fields.
  4. Check the status in the response.
    • If you received PASS or FAIL, you're done. The operation either succeeded or it didn't.
    • If you received UI, present the new fields to the user and obtain their submission. Then post to this module with logincontinue and the relevant fields set, and repeat step 4.
    • If you received REDIRECT, direct the user to the redirecttarget and wait for the return to loginreturnurl. Then post to this module with logincontinue and any fields passed to the return URL, and repeat step 4.
    • If you received RESTART, that means the authentication worked but we don't have a linked user account. You might treat this as UI or as FAIL.
パラメーター:
その他一般パラメーターが利用可能です。
loginrequests

Only use these authentication requests, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=login or from a previous response from this module.

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

Format to use for returning messages.

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

Merge field information for all authentication requests into one array.

型: 真偽値 (詳細)
loginpreservestate

Preserve state from a previous failed login attempt, if possible.

型: 真偽値 (詳細)
loginreturnurl

Return URL for third-party authentication flows, must be absolute. Either this or logincontinue is required.

Upon receiving a REDIRECT response, you will typically open a browser or web view to the specified redirecttarget URL for a third-party authentication flow. When that completes, the third party will send the browser or web view to this URL. You should extract any query or POST parameters from the URL and pass them as a logincontinue request to this API module.

logincontinue

This request is a continuation after an earlier UI or REDIRECT response. Either this or loginreturnurl is required.

型: 真偽値 (詳細)
logintoken

action=query&meta=tokens から取得した「login」トークン

この変数は必須です。
*
This module accepts additional parameters depending on the available authentication requests. Use action=query&meta=authmanagerinfo with amirequestsfor=login (or a previous response from this module, if applicable) to determine the requests available and the fields that they use.
例:
利用者 Example としてのログイン処理をパスワード ExamplePassword で開始する
api.php?action=clientlogin&username=Example&password=ExamplePassword&loginreturnurl=http://example.org/&logintoken=123ABC [サンドボックスで開く]
987654OATHTokenを提供する2段階認証のUIレスポンスの後にログインを続けます。
api.php?action=clientlogin&logincontinue=1&OATHToken=987654&logintoken=123ABC [サンドボックスで開く]

action=compare

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

2つの版間の差分を取得します。

"from" と "to" の両方の版番号、ページ名、もしくはページIDを渡す必要があります。

パラメーター:
その他一般パラメーターが利用可能です。
fromtitle

比較する1つ目のページ名。

fromid

比較する1つ目のページID。

型: 整数
fromrev

比較する1つ目の版。

型: 整数
fromslots

Override content of the revision specified by fromtitle, fromid or fromrev.

This parameter specifies the slots that are to be modified. Use fromtext-{slot}, fromcontentmodel-{slot}, and fromcontentformat-{slot} to specify content for each slot.

値 (| または別の文字列で区切る): main
fromtext-{slot}

Text of the specified slot. If omitted, the slot is removed from the revision.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
fromsection-{slot}

When fromtext-{slot} is the content of a single section, this is the section identifier. It will be merged into the revision specified by fromtitle, fromid or fromrev as if for a section edit.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
fromcontentformat-{slot}

Content serialization format of fromtext-{slot}.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
fromcontentmodel-{slot}

Content model of fromtext-{slot}. If not supplied, it will be guessed based on the other parameters.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of fromslots.
値 (次の値のいずれか1つ): Scribunto、css、javascript、json、sanitized-css、text、unknown、wikibase-item、wikibase-property、wikitext
frompst

fromtext-{slot}に保存前変換を行います。

型: 真偽値 (詳細)
fromtext
廃止予定です。

fromslots=mainを指定し、代わりにfromtext-main を使用してください。

fromcontentformat
廃止予定です。

fromslots=mainを指定し、代わりにfromcontentformat-main を使用してください。

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
fromcontentmodel
廃止予定です。

fromslots=mainを指定し、代わりにfromcontentmodel-main を使用してください。

値 (次の値のいずれか1つ): Scribunto、css、javascript、json、sanitized-css、text、unknown、wikibase-item、wikibase-property、wikitext
fromsection
廃止予定です。

'from' の内容のうち指定された節のみを使用します。

totitle

比較する2つ目のページ名。

toid

比較する2つ目のページID。

型: 整数
torev

比較する2つ目の版。

型: 整数
torelative

Use a revision relative to the revision determined from fromtitle, fromid or fromrev. All of the other 'to' options will be ignored.

値 (次の値のいずれか1つ): cur、next、prev
toslots

Override content of the revision specified by totitle, toid or torev.

This parameter specifies the slots that are to be modified. Use totext-{slot}, tocontentmodel-{slot}, and tocontentformat-{slot} to specify content for each slot.

値 (| または別の文字列で区切る): main
totext-{slot}

Text of the specified slot. If omitted, the slot is removed from the revision.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
tosection-{slot}

When totext-{slot} is the content of a single section, this is the section identifier. It will be merged into the revision specified by totitle, toid or torev as if for a section edit.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
tocontentformat-{slot}

Content serialization format of totext-{slot}.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
tocontentmodel-{slot}

Content model of totext-{slot}. If not supplied, it will be guessed based on the other parameters.

This is a templated parameter. When making the request, {slot} in the parameter's name should be replaced with values of toslots.
値 (次の値のいずれか1つ): Scribunto、css、javascript、json、sanitized-css、text、unknown、wikibase-item、wikibase-property、wikitext
topst

totextに保存前変換を行います。

型: 真偽値 (詳細)
totext
廃止予定です。

toslots=mainを指定し、代わりにtotext-main を使用してください。

tocontentformat
廃止予定です。

toslots=mainを指定し、代わりにtocontentformat-main を使用してください。

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
tocontentmodel
廃止予定です。

toslots=mainを指定し、代わりにtocontentmodel-main を使用してください。

値 (次の値のいずれか1つ): Scribunto、css、javascript、json、sanitized-css、text、unknown、wikibase-item、wikibase-property、wikitext
tosection
廃止予定です。

'to' の内容のうち指定された節のみを使用します。

prop

どの情報を取得するか:

diff
差分HTML。
diffsize
差分HTMLのサイズ (バイト数)。
rel
存在する場合、'from' の直前、および 'to' の直後の版ID。
ids
'from' および 'to' の版のページIDおよび版ID。
title
'from' および 'to' の版のページ名。
user
'from' および 'to' の版の投稿者の利用者名およびID。もし、その利用者が削除されていたら、fromuserhidden または touserhiddenプロパティを返します。
comment
'from' および 'to' の版のコメント。もし、その版のコメントが削除されていたら、fromcommenthidden または tocommenthiddenプロパティを返します。
parsedcomment
'from' および 'to' の版の整形済みコメント。もし、その版のコメントが削除されていたら、fromcommenthidden または tocommenthiddenプロパティを返します。
size
'from' および 'to' の版のサイズ。
timestamp
'from' および 'to' の版のタイムスタンプ。
値 (| または別の文字列で区切る): comment、diff、diffsize、ids、parsedcomment、rel、size、timestamp、title、user
既定: diff|ids|title
slots

Return individual diffs for these slots, rather than one combined diff for all slots.

値 (| または別の文字列で区切る): main
すべての値を指定するには、*を用いてください。

action=createaccount (create)

  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

新しい利用者アカウントを作成します。

The general procedure to use this module is:

  1. Fetch the fields available from action=query&meta=authmanagerinfo with amirequestsfor=create, and a createaccount token from action=query&meta=tokens.
  2. Present the fields to the user, and obtain their submission.
  3. Post to this module, supplying createreturnurl and any relevant fields.
  4. Check the status in the response.
    • If you received PASS or FAIL, you're done. The operation either succeeded or it didn't.
    • If you received UI, present the new fields to the user and obtain their submission. Then post to this module with createcontinue and the relevant fields set, and repeat step 4.
    • If you received REDIRECT, direct the user to the redirecttarget and wait for the return to createreturnurl. Then post to this module with createcontinue and any fields passed to the return URL, and repeat step 4.
    • If you received RESTART, that means the authentication worked but we don't have a linked user account. You might treat this as UI or as FAIL.
パラメーター:
その他一般パラメーターが利用可能です。
createrequests

Only use these authentication requests, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=create or from a previous response from this module.

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

Format to use for returning messages.

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

Merge field information for all authentication requests into one array.

型: 真偽値 (詳細)
createpreservestate

Preserve state from a previous failed login attempt, if possible.

If action=query&meta=authmanagerinfo returned true for hasprimarypreservedstate, requests marked as primary-required should be omitted. If it returned a non-empty value for preservedusername, that username must be used for the username parameter.

型: 真偽値 (詳細)
createreturnurl

Return URL for third-party authentication flows, must be absolute. Either this or createcontinue is required.

Upon receiving a REDIRECT response, you will typically open a browser or web view to the specified redirecttarget URL for a third-party authentication flow. When that completes, the third party will send the browser or web view to this URL. You should extract any query or POST parameters from the URL and pass them as a createcontinue request to this API module.

createcontinue

This request is a continuation after an earlier UI or REDIRECT response. Either this or createreturnurl is required.

型: 真偽値 (詳細)
createtoken

action=query&meta=tokens から取得した「createaccount」トークン

この変数は必須です。
*
This module accepts additional parameters depending on the available authentication requests. Use action=query&meta=authmanagerinfo with amirequestsfor=create (or a previous response from this module, if applicable) to determine the requests available and the fields that they use.

action=cspreport

  • このモジュールは内部的または不安定です。動作が予告なく変更される場合があります。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Used by browsers to report violations of the Content Security Policy. This module should never be used, except when used automatically by a CSP compliant web browser.

パラメーター:
その他一般パラメーターが利用可能です。
reportonly

Mark as being a report from a monitoring policy, not an enforced policy

型: 真偽値 (詳細)
source

このレポートをトリガしたCSPヘッダを生成した内容

既定: internal

action=delete

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページを削除します。

パラメーター:
その他一般パラメーターが利用可能です。
title

削除するページ名です。pageid とは同時に使用できません。

pageid

削除するページIDです。title とは同時に使用できません。

型: 整数
reason

削除の理由です。入力しない場合、自動的に生成された理由が使用されます。

tags

タグを変更し、削除記録の項目に適用します。

値 (| または別の文字列で区切る):
deletetalk

存在する場合、トークページも削除します。

型: 真偽値 (詳細)
watch
廃止予定です。

そのページを現在の利用者のウォッチリストに追加します。

型: 真偽値 (詳細)
watchlist

無条件に現在の利用者のウォッチリストに追加または除去するか、個人設定を利用(ボット利用者に対しては無視されます)するかウォッチを変更しないか。

値 (次の値のいずれか1つ): nochange、preferences、unwatch、watch
既定: preferences
unwatch
廃止予定です。

そのページを現在の利用者のウォッチリストから除去します。

型: 真偽値 (詳細)
oldimage

削除する古い画像のaction=query&prop=imageinfo&iiprop=archivename で取得できるような名前。

token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=edit

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページを作成、編集します。

パラメーター:
その他一般パラメーターが利用可能です。
title

編集するページ名です。pageid とは同時に使用できません。

pageid

編集するページIDです。title とは同時に使用できません。

型: 整数
section

節識別子です。先頭の節の場合は 0、新しい節の場合は newを指定します。

sectiontitle

section=newを使っているときの新しい節の名前です。

text

ページの本文。

summary

編集の要約。

このパラメーターが提供されていないか空のときには、編集の要約が自動生成される場合があります

section=newを使い、sectiontitleが提供されていないときには、このパラメーターの値は節名として利用され、編集の要約は自動生成されます。

tags

この版に適用する変更タグ。

値 (| または別の文字列で区切る):
minor

この編集に細部の変更の印を付ける

型: 真偽値 (詳細)
notminor

利用者設定で「すべての編集を既定で細部の編集とする」を指定してあっても、細部の編集とマークしません。

型: 真偽値 (詳細)
bot

この編集をボットの編集としてマークする。

型: 真偽値 (詳細)
baserevid

ID of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions. Self-conflicts cause the edit to fail unless basetimestamp is set.

型: 整数
basetimestamp

編集前の版のタイムスタンプ。編集競合を検出するために使用されます。 action=query&prop=revisions&rvprop=timestamp で取得できます。自身の競合は無視されます。

Type: timestamp (allowed formats)
starttimestamp

編集作業を開始したときのタイムスタンプ。編集競合を検出するために使用されます。適切な値は curtimestamp を使用して編集作業を開始するとき (たとえば、編集するページの本文を読み込んだとき) に取得できます。

Type: timestamp (allowed formats)
recreate

その間に削除されたページに関するエラーを上書きします。

型: 真偽値 (詳細)
createonly

すでにそのページが存在する場合は編集を行いません。

型: 真偽値 (詳細)
nocreate

そのページが存在しない場合にエラーを返します。

型: 真偽値 (詳細)
watch
廃止予定です。

そのページを現在の利用者のウォッチリストに追加します。

型: 真偽値 (詳細)
unwatch
廃止予定です。

そのページを現在の利用者のウォッチリストから除去します。

型: 真偽値 (詳細)
watchlist

無条件に現在の利用者のウォッチリストに追加または除去するか、個人設定を利用(ボット利用者に対しては無視されます)するかウォッチを変更しないか。

値 (次の値のいずれか1つ): nochange、preferences、unwatch、watch
既定: preferences
md5

The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.

prependtext

このテキストをページまたはセクションの先頭に追加します。text をオーバーライドします。

appendtext

このテキストをページまたは節の末尾に追加します。textを上書きします。

新しい節を追加するにはこのパラメーターではなく section=newを使用してください。

undo

この版を取り消します。text, prependtext および appendtext をオーバーライドします。

型: 整数
値の下限は必ず0以上です。
undoafter

undo からこの版までのすべての版を取り消します。設定しない場合、ひとつの版のみ取り消されます。

型: 整数
値の下限は必ず0以上です。
redirect

自動的に転送を解決します。

型: 真偽値 (詳細)
contentformat

Content serialization format used for the input text.

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
contentmodel

新しいコンテンツのコンテンツモデル。

値 (次の値のいずれか1つ): Scribunto、css、javascript、json、sanitized-css、text、unknown、wikibase-item、wikibase-property、wikitext
token

action=query&meta=tokens から取得した「csrf」トークン

このトークンは常に最後のパラメーターとして、または少なくとも text パラメーターより後に送信されるべきです。

この変数は必須です。

action=emailuser

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

利用者にメールを送信します。

パラメーター:
その他一般パラメーターが利用可能です。
target

送信先の利用者名。

この変数は必須です。
subject

題名。

この変数は必須です。
text

メールの本文。

この変数は必須です。
ccme

メールの複製を自分にも送信します。

型: 真偽値 (詳細)
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
例:
利用者 WikiSysopContent という本文のメールを送信。
api.php?action=emailuser&target=WikiSysop&text=Content&token=123ABC [サンドボックスで開く]

action=embedvideo

  • このモジュールは読み取りの権限を必要とします。
  • ソース: EmbedVideo
  • ライセンス: MIT

Get generated video embed code for given parameters.

パラメーター:
その他一般パラメーターが利用可能です。
service

Name of the service (youtube, twitch, ect)

この変数は必須です。
id

The ID of the video for that service

この変数は必須です。
dimensions

Either a numeric width (100) or width by height (100x100)

alignment

Alignment of video

description

Description of video

container

Accepts frame, or leave empty

urlargs

Additional arguments to pass in the video url (for some services)

autoresize

Auto resize video? (true or false)

action=expandtemplates

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

ウィキテキストに含まれるすべてのテンプレートを展開します。

パラメーター:
その他一般パラメーターが利用可能です。
title

ページの名前です。

text

変換するウィキテキストです。

この変数は必須です。
revid

Revision ID, for {{REVISIONID}} and similar variables.

型: 整数
prop

Which pieces of information to get.

Note that if no values are selected, the result will contain the wikitext, but the output will be in a deprecated format.

wikitext
展開されたウィキテキスト。
categories
Any categories present in the input that are not represented in the wikitext output.
properties
Page properties defined by expanded magic words in the wikitext.
volatile
Whether the output is volatile and should not be reused elsewhere within the page.
ttl
The maximum time after which caches of the result should be invalidated.
modules
Any ResourceLoader modules that parser functions have requested be added to the output. Either jsconfigvars or encodedjsconfigvars must be requested jointly with modules.
jsconfigvars
ページに固有のJavaScriptの設定変数を提供します。
encodedjsconfigvars
JSON文字列としてページに固有のJavaScriptの設定変数を提供します。
parsetree
入力のXML構文解析ツリー。
値 (| または別の文字列で区切る): categories、encodedjsconfigvars、jsconfigvars、modules、parsetree、properties、ttl、volatile、wikitext
includecomments

HTMLコメントを出力に含めるかどうか。

型: 真偽値 (詳細)
showstrategykeys

Whether to include internal merge strategy information in jsconfigvars.

型: 真偽値 (詳細)
generatexml
廃止予定です。

XMLの構文解析ツリーを生成します (replaced by prop=parsetree)

型: 真偽値 (詳細)
例:
ウィキテキスト {{Project:Sandbox}} を展開する。
api.php?action=expandtemplates&text={{Project:Sandbox}} [サンドボックスで開く]

action=feedcontributions

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

利用者の投稿記録フィードを返します。

パラメーター:
その他一般パラメーターが利用可能です。
feedformat

フィードの形式。

値 (次の値のいずれか1つ): atom、rss
既定: rss
user

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

この変数は必須です。
型: 利用者名、IP、IP範囲、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
namespace

この名前空間への投稿記録に絞り込む。

値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
year

この年以前。

型: 整数
month

この月以前。

型: 整数
tagfilter

このタグが付与された投稿記録に絞り込む。

値 (| または別の文字列で区切る): advanced mobile edit、mobile edit、mobile web edit、mw-blank、mw-changed-redirect-target、mw-contentmodelchange、mw-manual-revert、mw-new-redirect、mw-removed-redirect、mw-replace、mw-reverted、mw-rollback、mw-server-side-upload、mw-undo、wikieditor
既定値: (空)
deletedonly

削除された投稿記録のみ表示します。

型: 真偽値 (詳細)
toponly

最新版の編集のみ表示します。

型: 真偽値 (詳細)
newonly

ページ作成を伴う編集のみを表示します。

型: 真偽値 (詳細)
hideminor

細部の編集を非表示にします。

型: 真偽値 (詳細)
showsizediff

版間のサイズの増減を表示する。

型: 真偽値 (詳細)
例:
利用者 Example の投稿記録を取得する。
api.php?action=feedcontributions&user=Example [サンドボックスで開く]

action=feedrecentchanges

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

最近の更新フィードを返します。

パラメーター:
その他一般パラメーターが利用可能です。
feedformat

フィードの形式。

値 (次の値のいずれか1つ): atom、rss
既定: rss
namespace

この名前空間の結果のみに絞り込む。

値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
invert

選択されたものを除く、すべての名前空間。

型: 真偽値 (詳細)
associated

関連する(トークまたは標準)名前空間を含めます。

型: 真偽値 (詳細)
days

結果を絞り込む日数。

型: 整数
値の下限は必ず1以上です。
既定: 7
limit

返す結果の最大数。

型: 整数
値は1以上50以下です。
既定: 50
from

これ以降の編集を表示する。

Type: timestamp (allowed formats)
hideminor

細部の変更を隠す。

型: 真偽値 (詳細)
hidebots

ボットによる変更を隠す。

型: 真偽値 (詳細)
hideanons

未登録利用者による変更を隠す。

型: 真偽値 (詳細)
hideliu

登録利用者による変更を隠す。

型: 真偽値 (詳細)
hidepatrolled

巡回済みの変更を隠す。

型: 真偽値 (詳細)
hidemyself

現在の利用者による編集を非表示にする。

型: 真偽値 (詳細)
hidecategorization

カテゴリのメンバーの変更を非表示にする。

型: 真偽値 (詳細)
tagfilter

タグにより絞り込む。

target

このページからリンクされているページの変更のみを表示する。

showlinkedto

選択したページへのリンク元での変更の表示に切り替え

型: 真偽値 (詳細)

action=feedwatchlist

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

ウォッチリストのフィードを返します。

パラメーター:
その他一般パラメーターが利用可能です。
feedformat

フィードの形式。

値 (次の値のいずれか1つ): atom、rss
既定: rss
hours

現在からこの時間以内に変更されたページを一覧表示します。

型: 整数
値は1以上72以下です。
既定: 24
linktosections

可能であれば、変更された節に直接リンクする。

型: 真偽値 (詳細)
allrev

Include multiple revisions of the same page within given timeframe.

型: 真偽値 (詳細)
wlowner

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

型: 利用者名を使った利用者
wltoken

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

wlshow

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

値 (| または別の文字列で区切る): !anon、!autopatrolled、!bot、!minor、!patrolled、!unread、anon、autopatrolled、bot、minor、patrolled、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.
値 (| または別の文字列で区切る): categorize、edit、external、log、new
既定: edit|new|log|categorize
wlexcludeuser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
例:
ウォッチリストのフィードを表示する。
api.php?action=feedwatchlist [サンドボックスで開く]
ウォッチ中のページに対する過去6時間の更新をすべて表示する。
api.php?action=feedwatchlist&allrev=&hours=6 [サンドボックスで開く]

action=filerevert

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ファイルを古い版に差し戻します。

パラメーター:
その他一般パラメーターが利用可能です。
filename

対象のファイル名 (File: 接頭辞を含めない)。

この変数は必須です。
comment

アップロードのコメント。

既定値: (空)
archivename

Archive name of the revision to revert to.

この変数は必須です。
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=help

指定したモジュールのヘルプを表示します。

パラメーター:
その他一般パラメーターが利用可能です。
modules

ヘルプを表示するモジュールです (action パラメーターおよび format パラメーターの値、または main)。+ を使用して下位モジュールを指定できます。

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

指定したモジュールの下位モジュールのヘルプを含めます。

型: 真偽値 (詳細)
recursivesubmodules

下位モジュールのヘルプを再帰的に含めます。

型: 真偽値 (詳細)
wrap

Wrap the output in a standard API response structure.

型: 真偽値 (詳細)
toc

HTML 出力に目次を含めます。

型: 真偽値 (詳細)
例:
メイン モジュールのヘルプ
api.php?action=help [サンドボックスで開く]
action=query とそのすべての下位モジュールに関するヘルプ。
api.php?action=help&modules=query&submodules=1 [サンドボックスで開く]
すべてのヘルプを1つのページに
api.php?action=help&recursivesubmodules=1 [サンドボックスで開く]
ヘルプ モジュール自身のヘルプ
api.php?action=help&modules=help [サンドボックスで開く]
2つの下位モジュールのヘルプ
api.php?action=help&modules=query+info|query+categorymembers [サンドボックスで開く]

action=imagerotate

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

1つ以上の画像を回転させます。

パラメーター:
その他一般パラメーターが利用可能です。
rotation

画像を回転させる時計回りの角度。

この変数は必須です。
値 (次の値のいずれか1つ): 90、180、270
continue

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

tags

アップロード記録の項目に適用するタグ。

値 (| または別の文字列で区切る):
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
現在の利用者のウォッチリストにあるすべてのページを取得します。
wblistentityusage
Returns all pages that use the given entity IDs.
wbsearch
内部で使用。 Searches for entities using labels and aliases.
値 (次の値のいずれか1つ): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsbacklinkscategoriescategorymembersdeletedrevisionsduplicatefilesembeddedinexturlusagefileusageimagesimageusageiwbacklinkslangbacklinkslinkslinksherepageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangesredirectsrevisionssearchtemplatestranscludedinwatchlistwatchlistrawwblistentityusagewbsearch
redirects

titles, pageids, および revids, および 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.

型: 真偽値 (詳細)
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=import

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

別のウィキまたはXMLファイルからページをインポートする。

xml パラメーターでファイルを送信する場合、ファイルのアップロードとしてHTTP POSTされなければならない (例えば、multipart/form-dataを使用する) 点に注意してください。

パラメーター:
その他一般パラメーターが利用可能です。
summary

インポート操作内容の要約。

xml

XMLファイルをアップロード

ファイルアップロードには multipart/form-data を使って投稿してください。
interwikiprefix

For uploaded imports: interwiki prefix to apply to unknown usernames (and known users if assignknownusers is set).

interwikisource

ウィキ間の取り込みの場合: 取り込み元のウィキ。

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

ウィキ間インポートの場合: インポートするページ。

fullhistory

ウィキ間インポートの場合: 現在の版のみではなく全ての履歴をインポートする。

型: 真偽値 (詳細)
templates

ウィキ間インポートの場合: 読み込まれているテンプレートもインポートする。

型: 真偽値 (詳細)
namespace

この名前空間に取り込む。rootpageパラメーターとは同時に使用できません。

値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
assignknownusers

指定された利用者がこのウィキに存在する場合その利用者に編集を割り当てる。

型: 真偽値 (詳細)
rootpage

このページの下位ページとして取り込む。namespace パラメーターとは同時に使用できません。

tags

Change tags to apply to the entry in the import log and to the null revision on the imported pages.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=jsonconfig

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

JsonConfig サブシステムに直接アクセスできるようにします。

パラメーター:
その他一般パラメーターが利用可能です。
command

Which sub-action to perform on JsonConfig:

status
Shows JsonConfig configuration.
reset
Clears configurations from cache. Requires title parameter and jsonconfig-flush right.
reload
Reloads and caches configurations from config store. Requires title parameter and jsonconfig-reset right.
値 (次の値のいずれか1つ): reload、reset、status
既定: status
namespace

Namespace number of the title to process.

型: 整数
title

名前空間接頭辞なしで処理するタイトル。

既定値: (空)
content

For command=reload, use this content instead.

既定値: (空)

action=jsondata

  • このモジュールは内部的または不安定です。動作が予告なく変更される場合があります。
  • このモジュールは読み取りの権限を必要とします。
  • ソース: JsonConfig
  • ライセンス: GPL-2.0-or-later

Retrieve localized JSON data.

パラメーター:
その他一般パラメーターが利用可能です。
title

Title to get. By default assumes namespace to be "Data:"

この変数は必須です。

action=linkaccount (link)

  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Link an account from a third-party provider to the current user.

The general procedure to use this module is:

  1. Fetch the fields available from action=query&meta=authmanagerinfo with amirequestsfor=link, and a csrf token from action=query&meta=tokens.
  2. Present the fields to the user, and obtain their submission.
  3. Post to this module, supplying linkreturnurl and any relevant fields.
  4. Check the status in the response.
    • If you received PASS or FAIL, you're done. The operation either succeeded or it didn't.
    • If you received UI, present the new fields to the user and obtain their submission. Then post to this module with linkcontinue and the relevant fields set, and repeat step 4.
    • If you received REDIRECT, direct the user to the redirecttarget and wait for the return to linkreturnurl. Then post to this module with linkcontinue and any fields passed to the return URL, and repeat step 4.
    • If you received RESTART, that means the authentication worked but we don't have a linked user account. You might treat this as UI or as FAIL.
パラメーター:
その他一般パラメーターが利用可能です。
linkrequests

Only use these authentication requests, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=link or from a previous response from this module.

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

Format to use for returning messages.

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

Merge field information for all authentication requests into one array.

型: 真偽値 (詳細)
linkreturnurl

Return URL for third-party authentication flows, must be absolute. Either this or linkcontinue is required.

Upon receiving a REDIRECT response, you will typically open a browser or web view to the specified redirecttarget URL for a third-party authentication flow. When that completes, the third party will send the browser or web view to this URL. You should extract any query or POST parameters from the URL and pass them as a linkcontinue request to this API module.

linkcontinue

This request is a continuation after an earlier UI or REDIRECT response. Either this or linkreturnurl is required.

型: 真偽値 (詳細)
linktoken

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
*
This module accepts additional parameters depending on the available authentication requests. Use action=query&meta=authmanagerinfo with amirequestsfor=link (or a previous response from this module, if applicable) to determine the requests available and the fields that they use.

action=login (lg)

  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ログインして認証クッキーを取得します。

この操作は、Special:BotPasswordsと組み合わせて使用する必要があります。メインアカウントのログインに使用することは推奨されなくなり、警告なく失敗する可能性があります。メインアカウントに安全にログインするには、action=clientloginを使用します。

パラメーター:
その他一般パラメーターが利用可能です。
lgname

利用者名。

lgpassword

パスワード。

lgdomain

ドメイン (省略可能)

lgtoken

action=query&meta=tokens から取得した「login」トークン

action=logout

  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ログアウトしてセッションデータを消去します。

パラメーター:
その他一般パラメーターが利用可能です。
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
例:
現在の利用者をログアウトする。
api.php?action=logout&token=123ABC [サンドボックスで開く]

action=managetags

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Perform management tasks relating to change tags.

パラメーター:
その他一般パラメーターが利用可能です。
operation

実行する操作:

create
手動適用のための新たな変更タグを作成します。
delete
変更タグをデータベースから削除し、そのタグが使用されているすべての版、最近の更新項目、記録項目からそれを除去します。
activate
変更タグを有効化し、利用者がそのタグを手動で適用できるようにします。
deactivate
変更タグを無効化し、利用者がそのタグを手動で適用することができないようにします。
この変数は必須です。
値 (次の値のいずれか1つ): activate、create、deactivate、delete
tag

作成、削除、有効化、または無効化するタグ。タグの作成の場合、そのタグは存在しないものでなければなりません。タグの削除の場合、そのタグが存在しなければなりません。タグの有効化の場合、そのタグが存在し、かつ拡張機能によって使用されていないものでなければなりません。タグの無効化の場合、そのタグが現在有効であって手動で定義されたものでなければなりません。

この変数は必須です。
reason

タグを作成、削除、有効化、または無効化する追加の理由。

既定値: (空)
ignorewarnings

操作中に発生したすべての警告を無視するかどうか。

型: 真偽値 (詳細)
tags

タグを変更し、タグ管理記録の項目に適用します。

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=mergehistory

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページの履歴を統合する。

パラメーター:
その他一般パラメーターが利用可能です。
from

履歴統合元のページ名。fromid とは同時に使用できません。

fromid

履歴統合元のページ。from とは同時に使用できません。

型: 整数
to

履歴統合先のページ名。toid とは同時に使用できません。

toid

履歴統合先のページID。to とは同時に使用できません。

型: 整数
timestamp

Timestamp up to which revisions will be moved from the source page's history to the destination page's history. If omitted, the entire page history of the source page will be merged into the destination page.

Type: timestamp (allowed formats)
reason

履歴の統合の理由。

既定値: (空)
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=move

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページを移動します。

パラメーター:
その他一般パラメーターが利用可能です。
from

移動するページのページ名です。fromid とは同時に使用できません。

fromid

移動するページのページIDです。from とは同時に使用できません。

型: 整数
to

移動後のページ名。

この変数は必須です。
reason

改名の理由。

既定値: (空)
movetalk

存在する場合、トークページも名前を変更します。

型: 真偽値 (詳細)
movesubpages

可能であれば、下位ページも名前を変更します。

型: 真偽値 (詳細)
noredirect

転送ページを作成しません。

型: 真偽値 (詳細)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

値 (次の値のいずれか1つ): nochange、preferences、unwatch、watch
既定: preferences
ignorewarnings

あらゆる警告を無視

型: 真偽値 (詳細)
tags

Change tags to apply to the entry in the move log and to the null revision on the destination page.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=opensearch

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

OpenSearch プロトコルを使用してウィキ内を検索します。

パラメーター:
その他一般パラメーターが利用可能です。
search

検索文字列。

この変数は必須です。
namespace

検索する名前空間。searchが有効な名前空間接頭辞で始まる場合は無視されます。

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
既定: 0
limit

返す結果の最大数。

型: 整数または max
値は1以上500以下です。
既定: 10
suggest
廃止予定です。

使われなくなりました。

型: 真偽値 (詳細)
redirects

転送を処理する方法:

return
転送ページそのものを返します。
resolve
転送先のページを返します。limit より返される結果が少なくなるかもしれません。

歴史的な理由により、format=json では "return" が、他の形式では "resolve" が既定です。

値 (次の値のいずれか1つ): resolve、return
format

出力する形式。

値 (次の値のいずれか1つ): json、jsonfm、xml、xmlfm
既定: json
warningsaserror

If warnings are raised with format=json, return an API error instead of ignoring them.

型: 真偽値 (詳細)
例:
Te から始まるページを検索する。
api.php?action=opensearch&search=Te [サンドボックスで開く]

action=options

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

現在の利用者の設定を変更します。

Only options which are registered in core or in one of installed extensions, or options with keys prefixed with userjs- (intended to be used by user scripts), can be set.

パラメーター:
その他一般パラメーターが利用可能です。
reset

個人設定をサイトの既定値にリセットする。

型: 真偽値 (詳細)
resetkinds

reset が設定されている場合、リセットする設定項目の種類のリスト。

値 (| または別の文字列で区切る): all、registered、registered-checkmatrix、registered-multiselect、special、unused、userjs
既定: all
change

名前=値 の形式 (例えば skin=vector) で整形された変更のリスト。optionname|otheroption|... のように値が与えられなかった (イコール記号すら無い) 場合、設定は既定値にリセットされます。与えられた値がパイプ(|)を含む場合、ほかのセパレーターをお使いください。

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

The name of the option that should be set to the value given by optionvalue.

optionvalue

The value for the option specified by optionname.

token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=paraminfo

API モジュールに関する情報を取得します。

パラメーター:
その他一般パラメーターが利用可能です。
modules

モジュール名のリスト (action および format パラメーターまたは mainの値)。特定の下位モジュールの指定は+ 、全下位モジュールの指定は+*を使い、あるいは+**ですべての下位モジュールを再帰的に指定します。

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

ヘルプ文字列の形式。

値 (次の値のいずれか1つ): html、none、raw、wikitext
既定: none
querymodules
廃止予定です。

クエリモジュール名のリスト (prop, meta or list パラメーターの値)。querymodules=foo の代わりに modules=query+foo を使用してください。

値 (| または別の文字列で区切る): allcategories、alldeletedrevisions、allfileusages、allimages、alllinks、allmessages、allpages、allredirects、allrevisions、alltransclusions、allusers、authmanagerinfo、backlinks、blocks、categories、categoryinfo、categorymembers、contributors、deletedrevisions、deletedrevs、description、duplicatefiles、embeddedin、entityterms、extlinks、exturlusage、filearchive、filerepoinfo、fileusage、imageinfo、images、imageusage、info、iwbacklinks、iwlinks、langbacklinks、langlinks、languageinfo、links、linkshere、logevents、mystashedfiles、pagepropnames、pageprops、pageswithprop、pageterms、prefixsearch、protectedtitles、querypage、random、recentchanges、redirects、revisions、search、siteinfo、stashimageinfo、tags、templates、tokens、transcludedin、usercontribs、userinfo、users、watchlist、watchlistraw、wbcontentlanguages、wbentityusage、wblistentityusage、wbsearch、wbsubscribers、wikibase
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
mainmodule
廃止予定です。

Get information about the main (top-level) module as well. Use modules=main instead.

pagesetmodule
廃止予定です。

Get information about the pageset module (providing titles= and friends) as well.

formatmodules
廃止予定です。

List of format module names (value of format parameter). Use modules instead.

値 (| または別の文字列で区切る): json、jsonfm、none、php、phpfm、rawfm、xml、xmlfm

action=parse

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

Parses content and returns parser output.

See the various prop-modules of action=query to get information from the current version of a page.

There are several ways to specify the text to parse:

  1. Specify a page or revision, using page, pageid, or oldid.
  2. Specify content explicitly, using text, title, revid, and contentmodel.
  3. Specify only a summary to parse. prop should be given an empty value.
パラメーター:
その他一般パラメーターが利用可能です。
title

文字列が属するページのページ名。これを省略する場合、必ず contentmodel を指定しなければなりません。また、その場合 API がページ名として使用されます。

text

構文解析する文字列。コンテンツモデルを制御するためにはtitle または contentmodel を使用してください。

revid

Revision ID, for {{REVISIONID}} and similar variables.

型: 整数
summary

構文解析する要約

page

このページの内容を構文解析します。text および title とは同時に使用できません。

pageid

このページの内容を構文解析する。page をオーバーライドします。

型: 整数
redirects

もし pagepageid に転送ページが指定された場合、それを解決する。

型: 真偽値 (詳細)
oldid

この版の内容を構文解析する。page および pageid をオーバーライドします。

型: 整数
prop

どの情報を取得するか:

text
ウィキテキストの解析されたテキストを提供します。
langlinks
解析されたウィキテキストにおける言語リンクを提供します。
categories
構文解析されたウィキテキストのカテゴリを提供します。
categorieshtml
カテゴリのHTMLバージョンを提供します。
links
構文解析されたウィキテキスト内で内部リンクを提供します。
templates
構文解析されたウィキテキストでテンプレートを提供します。
images
構文解析されたウィキテキストの画像を提供します。
externallinks
構文解析されたウィキテキスト内で外部リンクを提供します。
sections
構文解析されたウィキテキスト内のセクションを提供します。
revid
構文解析されたページの版IDを追加します。
displaytitle
構文解析されたウィキテキストのタイトルを追加します。
subtitle
Adds the page subtitle for the parsed page.
headhtml
ページの<html><head>の要素を開いて<body>を開示し、Doctype を解析する。
modules
Gives the ResourceLoader modules used on the page. To load, use mw.loader.using(). Either jsconfigvars or encodedjsconfigvars must be requested jointly with modules.
jsconfigvars
ページに固有のJavaScriptの設定変数を提供します。適用するには、mw.config.set()を使用します。
encodedjsconfigvars
JSON文字列としてページに固有のJavaScriptの設定変数を提供します。
indicators
ページ上で使用されるページのステータスインジケータのHTMLを提供します。
iwlinks
構文解析されたウィキテキスト内でウィキ間リンクを提供します。
wikitext
構文解析されたオリジナルのウィキテキストを提供します。
properties
構文解析されたウィキテキスト内で定義されたさまざまなプロパティを提供します。
limitreportdata
Gives the limit report in a structured way. Gives no data, when disablelimitreport is set.
limitreporthtml
Gives the HTML version of the limit report. Gives no data, when disablelimitreport is set.
parsetree
版内容のXML構文解析ツリー (requires content model wikitext)
parsewarnings
Gives the warnings that occurred while parsing content (as wikitext).
parsewarningshtml
Gives the warnings that occurred while parsing content (as HTML).
headitems
廃止予定です。 ページの <head> の中に入れてアイテムを提供します。
値 (| または別の文字列で区切る): categories、categorieshtml、displaytitle、encodedjsconfigvars、externallinks、headhtml、images、indicators、iwlinks、jsconfigvars、langlinks、limitreportdata、limitreporthtml、links、modules、parsetree、parsewarnings、parsewarningshtml、properties、revid、sections、subtitle、templates、text、wikitext、headitems
既定: text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties|parsewarnings
wrapoutputclass

CSS class to use to wrap the parser output.

既定: mw-parser-output
pst

それを構文解析する前に、入力の上で事前保存の変換を実行してください。テキストで使用した場合のみ有効です。

型: 真偽値 (詳細)
onlypst

Do a pre-save transform (PST) on the input, but don't parse it. Returns the same wikitext, after a PST has been applied. Only valid when used with text.

型: 真偽値 (詳細)
effectivelanglinks
廃止予定です。

エクステンションによって供給された言語リンクが含まれています (for use with prop=langlinks).

型: 真偽値 (詳細)
section

その節の識別子の内容のみを構文解析します。

new のとき、ページに新しい節を追加するかのように textsectiontitle を解析します。

newtext を指定したときのみ許可されます。

sectiontitle

sectionnew のときの、新しい節の節名。

ページ編集とは異なり、これは summary が省略または空のときにはフォールバックしません。

disablepp
廃止予定です。

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

型: 真偽値 (詳細)
disablelimitreport

構文解析の出力で制限レポート (New PP limit report) を省略する。

型: 真偽値 (詳細)
disableeditsection

構文解析の出力で節リンクを省略する。

型: 真偽値 (詳細)
disablestylededuplication

Do not deduplicate inline stylesheets in the parser output.

型: 真偽値 (詳細)
showstrategykeys

Whether to include internal merge strategy information in jsconfigvars.

型: 真偽値 (詳細)
generatexml
廃止予定です。

Generate XML parse tree (requires content model wikitext; replaced by prop=parsetree).

型: 真偽値 (詳細)
preview

プレビューモードでのパース

型: 真偽値 (詳細)
sectionpreview

Parse in section preview mode (enables preview mode too).

型: 真偽値 (詳細)
disabletoc

Omit table of contents in output.

型: 真偽値 (詳細)
useskin

Apply the selected skin to the parser output. May affect the following properties: text, langlinks, headitems, modules, jsconfigvars, indicators.

値 (次の値のいずれか1つ): apioutput、fallback、minerva、vector、vector-2022
contentformat

Content serialization format used for the input text. Only valid when used with text.

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
contentmodel

Content model of the input text. If omitted, title must be specified, and default will be the model of the specified title. Only valid when used with text.

値 (次の値のいずれか1つ): Scribunto、css、javascript、json、sanitized-css、text、unknown、wikibase-item、wikibase-property、wikitext
mobileformat

Return parse output in a format suitable for mobile devices.

型: 真偽値 (詳細)

action=patrol

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページまたは版を巡回済みにする。

パラメーター:
その他一般パラメーターが利用可能です。
rcid

巡回済みにする最近の更新ID。

型: 整数
revid

巡回済みにする版ID。

型: 整数
tags

巡回記録の項目に適用する変更タグ。

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「patrol」トークン

この変数は必須です。

action=protect

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページの保護レベルを変更します。

パラメーター:
その他一般パラメーターが利用可能です。
title

保護(解除)するページ名です。pageid とは同時に使用できません。

pageid

保護(解除)するページIDです。title とは同時に使用できません。

型: 整数
protections

action=level の形式 (例えば、edit=sysop) で整形された、保護レベルの一覧。レベル all は誰もが操作できる、言い換えると制限が掛かっていないことを意味します。

注意: ここに列挙されなかった操作の制限は解除されます。

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

有効期限です。タイムスタンプがひとつだけ指定された場合は、それがすべての保護に適用されます。無期限の保護を行う場合はinfinite, indefinite, infinity, または never を指定します。

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

保護(解除)の理由。

既定値: (空)
tags

保護記録の項目に適用する変更タグ。

値 (| または別の文字列で区切る):
cascade

カスケード保護(すなわち、そのページが読み込んでいるテンプレートと使用されている画像も保護する)を有効にする。カスケード保護に対応しない保護レベルが与えられた場合は無視する。

型: 真偽値 (詳細)
watch
廃止予定です。

指定されると、保護(解除)するページが現在の利用者のウォッチリストに追加されます。

型: 真偽値 (詳細)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

値 (次の値のいずれか1つ): nochange、preferences、unwatch、watch
既定: preferences
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=purge

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

指定されたページのキャッシュを破棄します。

パラメーター:
その他一般パラメーターが利用可能です。
forcelinkupdate

リンクテーブルを更新し、その他の二次データの更新を行います。

型: 真偽値 (詳細)
forcerecursivelinkupdate

forcelinkupdateと同様、かつこのページをテンプレートとして使用するすべてのページについてリンクテーブルを更新します。

型: 真偽値 (詳細)
continue

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

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
現在の利用者のウォッチリストにあるすべてのページを取得します。
wblistentityusage
Returns all pages that use the given entity IDs.
wbsearch
内部で使用。 Searches for entities using labels and aliases.
値 (次の値のいずれか1つ): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsbacklinkscategoriescategorymembersdeletedrevisionsduplicatefilesembeddedinexturlusagefileusageimagesimageusageiwbacklinkslangbacklinkslinkslinksherepageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangesredirectsrevisionssearchtemplatestranscludedinwatchlistwatchlistrawwblistentityusagewbsearch
redirects

titles, pageids, および revids, および 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.

型: 真偽値 (詳細)

action=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.

パラメーター:
その他一般パラメーターが利用可能です。
prop

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

categories
ページが属するすべてのカテゴリを一覧表示します。
categoryinfo
与えられたカテゴリに関する情報を返します。
contributors
ページへのログインした投稿者の一覧と匿名投稿者の数を取得します。
deletedrevisions
削除された版の情報を取得します。
duplicatefiles
ハッシュ値に基づいて与えられたファイルの全ての重複ファイルを返します。
entityterms
Get the terms (labels, descriptions and aliases) of the entity on this page.
extlinks
与えられたページにあるすべての外部URL (インターウィキを除く) を返します。
fileusage
与えられたファイルを利用しているすべてのページを返します。
imageinfo
ファイルの情報とアップロード履歴を返します。
images
与えられたページに含まれるすべてのファイルを返します。
info
ページの基本的な情報を取得します。
iwlinks
ページからのすべてのウィキ間リンクを返します。
langlinks
ページからのすべての言語間リンクを返します。
links
ページからのすべてのリンクを返します。
linkshere
与えられたページにリンクしているすべてのページを返します。
pageprops
ページコンテンツで定義されている様々なページのプロパティを取得。
pageterms
Get the 脳科学辞典 terms (typically labels, descriptions and aliases) associated with a page via a sitelink.
redirects
ページへのすべての転送を返します。
revisions
版の情報を取得します。
stashimageinfo
Returns file information for stashed files.
templates
与えられたページで参照読み込みされているすべてのページを返します。
transcludedin
与えられたページを参照読み込みしているすべてのページを検索します。
wbentityusage
Returns all entity IDs used in the given pages.
description
内部で使用。 Get a short description a.k.a. subtitle explaining what the target page is about.
値 (| または別の文字列で区切る): categoriescategoryinfocontributorsdeletedrevisionsduplicatefilesentitytermsextlinksfileusageimageinfoimagesinfoiwlinkslanglinkslinkslinksherepagepropspagetermsredirectsrevisionsstashimageinfotemplatestranscludedinwbentityusagedescription
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
現在の利用者のウォッチリストにあるすべてのページを取得します。
wblistentityusage
Returns all pages that use the given entity IDs.
wbsubscribers
Get subscriptions to given entities.
deletedrevs
廃止予定です。 削除された版を一覧表示します。
wbsearch
内部で使用。 Searches for entities using labels and aliases.
値 (| または別の文字列で区切る): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsallusersbacklinksblockscategorymembersembeddedinexturlusagefilearchiveimageusageiwbacklinkslangbacklinkslogeventsmystashedfilespagepropnamespageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangessearchtagsusercontribsuserswatchlistwatchlistrawwblistentityusagewbsubscribersdeletedrevswbsearch
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
現在の利用者に関する情報を取得します。
wbcontentlanguages
Returns information about the content languages Wikibase accepts in different contexts.
wikibase
Get information about the Wikibase client and the associated Wikibase repository.
値 (| または別の文字列で区切る): allmessagesauthmanagerinfofilerepoinfolanguageinfositeinfotokensuserinfowbcontentlanguageswikibase
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
現在の利用者のウォッチリストにあるすべてのページを取得します。
wblistentityusage
Returns all pages that use the given entity IDs.
wbsearch
内部で使用。 Searches for entities using labels and aliases.
値 (次の値のいずれか1つ): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsbacklinkscategoriescategorymembersdeletedrevisionsduplicatefilesembeddedinexturlusagefileusageimagesimageusageiwbacklinkslangbacklinkslinkslinksherepageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangesredirectsrevisionssearchtemplatestranscludedinwatchlistwatchlistrawwblistentityusagewbsearch
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.

型: 真偽値 (詳細)

prop=categories (cl)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
clprop

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

sortkey
返されるカテゴリのソートキー(sortkey、UTF-8による表示)と人間可読のソートキー (sortkeyprefix) を追加します。
timestamp
カテゴリが追加されたときのタイムスタンプを追加します。
hidden
__HIDDENCAT__で隠されているカテゴリに印を付ける。
値 (| または別の文字列で区切る): hidden、sortkey、timestamp
clshow

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

値 (| または別の文字列で区切る): !hidden、hidden
cllimit

返すカテゴリの数。

型: 整数または max
値は1以上500以下です。
既定: 10
clcontinue

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

clcategories

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

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

昇順・降順の別。

値 (次の値のいずれか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)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
cicontinue

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

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

prop=contributors (pc)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
pcgroup

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

値 (| または別の文字列で区切る): bot、bureaucrat、interface-admin、suppress、sysop
pcexcludegroup

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

値 (| または別の文字列で区切る): bot、bureaucrat、interface-admin、suppress、sysop
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、approverevisions、autoconfirmed、autocreateaccount、autopatrol、bigdelete、block、blockemail、bot、browsearchive、changetags、createaccount、createpage、createtalk、delete、delete-redirect、deletechangetags、deletedhistory、deletedtext、deletelogentry、deleterevision、edit、editcontentmodel、editinterface、editmyoptions、editmyprivateinfo、editmyusercss、editmyuserjs、editmyuserjson、editmyuserjsredirect、editmywatchlist、editprotected、editsemiprotected、editsitecss、editsitejs、editsitejson、editusercss、edituserjs、edituserjson、gtag-exempt、hideuser、import、importupload、interwiki、ipblock-exempt、item-merge、item-redirect、item-term、managechangetags、markbotedits、mergehistory、minoredit、move、move-categorypages、move-rootuserpages、move-subpages、movefile、nominornewtalk、noratelimit、override-export-depth、pagelang、patrol、patrolmarks、property-create、property-term、protect、purge、read、reupload、reupload-own、reupload-shared、rollback、sendemail、siteadmin、suppressionlog、suppressredirect、suppressrevision、unblockself、undelete、unwatchedpages、upload、upload_by_url、userrights、userrights-interwiki、viewapprover、viewlinktolatest、viewmyprivateinfo、viewmywatchlist、viewsuppressed、writeapi
値の最大値は 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、approverevisions、autoconfirmed、autocreateaccount、autopatrol、bigdelete、block、blockemail、bot、browsearchive、changetags、createaccount、createpage、createtalk、delete、delete-redirect、deletechangetags、deletedhistory、deletedtext、deletelogentry、deleterevision、edit、editcontentmodel、editinterface、editmyoptions、editmyprivateinfo、editmyusercss、editmyuserjs、editmyuserjson、editmyuserjsredirect、editmywatchlist、editprotected、editsemiprotected、editsitecss、editsitejs、editsitejson、editusercss、edituserjs、edituserjson、gtag-exempt、hideuser、import、importupload、interwiki、ipblock-exempt、item-merge、item-redirect、item-term、managechangetags、markbotedits、mergehistory、minoredit、move、move-categorypages、move-rootuserpages、move-subpages、movefile、nominornewtalk、noratelimit、override-export-depth、pagelang、patrol、patrolmarks、property-create、property-term、protect、purge、read、reupload、reupload-own、reupload-shared、rollback、sendemail、siteadmin、suppressionlog、suppressredirect、suppressrevision、unblockself、undelete、unwatchedpages、upload、upload_by_url、userrights、userrights-interwiki、viewapprover、viewlinktolatest、viewmyprivateinfo、viewmywatchlist、viewsuppressed、writeapi
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
pclimit

返す投稿者の数。

型: 整数または max
値は1以上500以下です。
既定: 10
pccontinue

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

prop=deletedrevisions (drv)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

削除された版の情報を取得します。

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
その版を作成した利用者。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
userid
その版の作成者の利用者ID。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
size
その版の長さ (バイト) 。
slotsize
Length (bytes) of each revision slot.
sha1
SHA-1 (base 16) of the revision. If the content has been revision deleted, a sha1hidden property will be returned.
slotsha1
SHA-1 (base 16) of each revision slot. If the content has been revision deleted, a sha1hidden property will be returned.
contentmodel
Content model ID of each revision slot.
comment
その版の利用者によるコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
parsedcomment
その版の利用者による、構文解析されたコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
content
各版スロットの内容。コンテンツが版削除された場合には、プロパティ texthidden を返します。
tags
その版のタグ。
roles
List content slot roles that exist in the revision.
parsetree
廃止予定です。 Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model wikitext).
値 (| または別の文字列で区切る): comment、content、contentmodel、flags、ids、parsedcomment、roles、sha1、size、slotsha1、slotsize、tags、timestamp、user、userid、parsetree
既定: ids|timestamp|flags|comment|user
drvslots

Which revision slots to return data for, when slot-related properties are included in drvprops. If omitted, data from the main slot will be returned in a backwards-compatible format.

値 (| または別の文字列で区切る): main
すべての値を指定するには、*を用いてください。
drvlimit

返す版の数を制限する。

型: 整数または max
値は1以上500以下です。
drvexpandtemplates
廃止予定です。

Use action=expandtemplates instead. Expand templates in revision content (requires drvprop=content).

型: 真偽値 (詳細)
drvgeneratexml
廃止予定です。

Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires drvprop=content).

型: 真偽値 (詳細)
drvparse
廃止予定です。

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

型: 真偽値 (詳細)
drvsection

Only retrieve the content of the section with this identifier.

drvdiffto
廃止予定です。

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

drvdifftotext
廃止予定です。

Use action=compare instead. 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
廃止予定です。

Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with drvdifftotext.

型: 真偽値 (詳細)
drvcontentformat
廃止予定です。

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

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
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

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
drvexcludeuser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
drvcontinue

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

prop=description (desc)

  • このモジュールは内部的または不安定です。動作が予告なく変更される場合があります。
  • このモジュールは読み取りの権限を必要とします。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Get a short description a.k.a. subtitle explaining what the target page is about.

The description is plain text, on a single line, but otherwise arbitrary (potentially including raw HTML tags, which also should be interpreted as plain text). It must not be used in HTML unescaped!

パラメーター:
その他一般パラメーターが利用可能です。
desccontinue

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

型: 整数
既定: 0
descprefersource

Which description source to prefer if present:

local
Local descriptions via {{SHORTDESC:...}} parser function in the wikitext of the page.
central
Central descriptions from the associated 脳科学辞典 item.
値 (次の値のいずれか1つ): central、local
既定: local
例:
Get the description for the page 'London'.
api.php?action=query&prop=description&titles=London [サンドボックスで開く]
Get the description for the page 'London', preferring the central description if it exists.
api.php?action=query&prop=description&titles=London&descprefersource=central [サンドボックスで開く]

prop=duplicatefiles (df)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ハッシュ値に基づいて与えられたファイルの全ての重複ファイルを返します。

パラメーター:
その他一般パラメーターが利用可能です。
dflimit

返す重複ファイルの件数

型: 整数または max
値は1以上500以下です。
既定: 10
dfcontinue

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

dfdir

昇順・降順の別。

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

ローカルに保存されたファイルのみを調べる。

型: 真偽値 (詳細)

prop=entityterms (wbet)

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

Get the terms (labels, descriptions and aliases) of the entity on this page.

パラメーター:
その他一般パラメーターが利用可能です。
wbetcontinue

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

型: 整数
wbetlanguage

The language code to get terms in. If not specified, the user language is used.

値 (次の値のいずれか1つ): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uselang、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
既定: uselang
wbetterms

The types of terms to get, e.g. 'description', each returned as an array of strings keyed by their type, e.g. {"description": ["foo"]}. If not specified, all types are returned.

値 (| または別の文字列で区切る): alias、description、label
既定: alias|label|description
  • このモジュールは読み取りの権限を必要とします。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
ellimit

返すリンクの数。

型: 整数または max
値は1以上500以下です。
既定: 10
elcontinue

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

elprotocol

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

値 (次の値のいずれか1つ): 空もしくはbitcoin、ftp、ftps、geo、git、gopher、http、https、irc、ircs、magnet、mailto、matrix、mms、news、nntp、redis、sftp、sip、sips、sms、ssh、svn、tel、telnet、urn、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.

型: 真偽値 (詳細)

prop=fileusage (fu)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
fuprop

取得するプロパティ:

pageid
各ページのページID。
title
各ページのページ名。
redirect
ページがリダイレクトである場合マークします。
値 (| または別の文字列で区切る): pageid、redirect、title
既定: pageid|title|redirect
funamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
fushow

Show only items that meet these criteria:

redirect
リダイレクトのみを表示します。
!redirect
リダイレクトでないもののみを表示します。
値 (| または別の文字列で区切る): !redirect、redirect
fulimit

返す数。

型: 整数または max
値は1以上500以下です。
既定: 10
fucontinue

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

prop=imageinfo (ii)

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

ファイルの情報とアップロード履歴を返します。

パラメーター:
その他一般パラメーターが利用可能です。
iiprop

取得するファイル情報:

timestamp
アップロードされたバージョンのタイムスタンプを追加します。
user
各ファイルのバージョンをアップロードした利用者を追加します。その利用者が削除された版がある場合、 userhidden プロパティが返されます。
userid
各ファイルのバージョンをアップロードした利用者のIDを追加します。その利用者が削除された版がある場合、 userhidden プロパティが返されます。
comment
そのバージョンのコメント。コメントが版指定削除されている場合、 commenthidden プロパティが返されます。
parsedcomment
そのバージョンのコメントをパースします。コメントが版指定削除されている場合、 commenthidden プロパティが返されます。
canonicaltitle
そのファイルのカノニカルなタイトル。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
url
ファイルと説明ページへのURLを提供します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
size
バイト単位でファイルや高さ、幅、ページ数のサイズを追加します(該当する場合)。
dimensions
size の別名。
sha1
Adds SHA-1 hash for the file. If the file has been revision deleted, a filehidden property will be returned.
mime
ファイルのMIMEタイプを追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
thumbmime
画像サムネイルのMIMEタイプを追加します(url と iiurlwidth パラメータが必須です)。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
mediatype
ファイルのメディアタイプを追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
metadata
ファイルのバージョンの Exif メタデータを一覧表示します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
commonmetadata
Lists file format generic metadata for the version of the file. If the file has been revision deleted, a filehidden property will be returned.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted. If the file has been revision deleted, a filehidden property will be returned.
archivename
非最新バージョンのアーカイブバージョンのファイル名を追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
bitdepth
バージョンのビット深度を追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
uploadwarning
Used by the Special:Upload page to get information about an existing file. Not intended for use outside MediaWiki core.
badfile
Adds whether the file is on the MediaWiki:Bad image list
値 (| または別の文字列で区切る): archivename、badfile、bitdepth、canonicaltitle、comment、commonmetadata、dimensions、extmetadata、mediatype、metadata、mime、parsedcomment、sha1、size、thumbmime、timestamp、uploadwarning、url、user、userid
既定: timestamp|user
iilimit

How many file revisions to return per file.

型: 整数または max
値は1以上500以下です。
既定: 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.

型: 整数
既定: -1
iiurlheight

Similar to iiurlwidth.

型: 整数
既定: -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.

型: 真偽値 (詳細)
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.

既定値: (空)
iibadfilecontexttitle

If badfilecontexttitleprop=badfile is set, this is the page title used when evaluating the MediaWiki:Bad image list

iicontinue

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

iilocalonly

Look only for files in the local repository.

型: 真偽値 (詳細)

prop=images (im)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
imlimit

返す画像の数。

型: 整数または max
値は1以上500以下です。
既定: 10
imcontinue

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

imimages

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

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

昇順・降順の別。

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

prop=info (in)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
inprop

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

protection
それぞれのページの保護レベルを一覧表示する。
talkid
トークページでない各ページについて、そのトークページのページID。
watched
各ページのウォッチされている状態を一覧表示します。
watchers
許可されている場合、ウォッチしている人の数。
visitingwatchers
許可されている場合、各ページの最近の編集を訪問済みのそのページをウォッチしている人の数。
notificationtimestamp
各ページのウォッチリスト通知のタイムスタンプ。
subjectid
各トークページについて、親ページのページID。
associatedpage
関連付けられている主題またはトークページの接頭辞付きタイトル。
url
Gives a full URL, an edit URL, and the canonical URL for each page.
readable
廃止予定です。 利用者がこのページを読むことができるかどうか。代わりにintestactions=readを使用してください。
preload
Gives the text returned by EditFormPreloadText.
displaytitle
Gives the manner in which the page title is actually displayed.
varianttitles
Gives the display title in all variants of the site content language.
linkclasses
Gives the additional CSS classes (e.g. link colors) used for links to this page if they were to appear on the page named by inlinkcontext.
値 (| または別の文字列で区切る): associatedpage、displaytitle、linkclasses、notificationtimestamp、preload、protection、subjectid、talkid、url、varianttitles、visitingwatchers、watched、watchers、readable
inlinkcontext

The context title to use when determining extra CSS classes (e.g. link colors) when inprop contains linkclasses.

タイプ : ページタイトル
存在しないページでも可。
既定: メインページ
intestactions

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

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

Detail level for intestactions. Use the main module's errorformat and errorlang parameters to control the format of the messages returned.

boolean
Return a boolean value for each action.
full
Return messages describing why the action is disallowed, or an empty array if it is allowed.
quick
Like full but skipping expensive checks.
値 (次の値のいずれか1つ): boolean、full、quick
既定: boolean
incontinue

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

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

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

パラメーター:
その他一般パラメーターが利用可能です。
iwprop

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

url
完全なURLを追加します。
値 (| または別の文字列で区切る): url
iwprefix

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

iwtitle

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

iwdir

昇順・降順の別。

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

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

型: 整数または max
値は1以上500以下です。
既定: 10
iwcontinue

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

iwurl
廃止予定です。

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

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

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

パラメーター:
その他一般パラメーターが利用可能です。
llprop

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

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

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

lltitle

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

lldir

昇順・降順の別。

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

Language code for localised language names.

既定: ja
lllimit

返す言語間リンクの数。

型: 整数または max
値は1以上500以下です。
既定: 10
llcontinue

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

llurl
廃止予定です。

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

型: 真偽値 (詳細)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
plnamespace

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

値 (| または別の文字列で区切る): -1、-2、0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
pllimit

返すリンクの数。

型: 整数または max
値は1以上500以下です。
既定: 10
plcontinue

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

pltitles

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

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

昇順・降順の別。

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

prop=linkshere (lh)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
lhprop

取得するプロパティ:

pageid
各ページのページID。
title
各ページのページ名。
redirect
Flag if the page is a redirect.
値 (| または別の文字列で区切る): pageid、redirect、title
既定: 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、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
lhshow

これらの基準を満たす項目のみを表示します:

redirect
リダイレクトのみを表示します。
!redirect
リダイレクトでないもののみを表示します。
値 (| または別の文字列で区切る): !redirect、redirect
lhlimit

返す数。

型: 整数または max
値は1以上500以下です。
既定: 10
lhcontinue

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

prop=pageprops (pp)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
ppcontinue

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

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)です。

prop=pageterms (wbpt)

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

Get the 脳科学辞典 terms (typically labels, descriptions and aliases) associated with a page via a sitelink.

パラメーター:
その他一般パラメーターが利用可能です。
wbptcontinue

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

型: 整数
wbptlanguage

The language code to get terms in. If not specified, the user language is used.

値 (次の値のいずれか1つ): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uselang、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
既定: uselang
wbptterms

The types of terms to get, e.g. 'description', each returned as an array of strings keyed by their type, e.g. {"description": ["foo"]}. If not specified, all types are returned.

値 (| または別の文字列で区切る): alias、description、label
既定: alias|label|description
例:
Get all terms associated with the page 'London', in the user language.
api.php?action=query&prop=pageterms&titles=London [サンドボックスで開く]
Get labels and aliases associated with the page 'London', in English.
api.php?action=query&prop=pageterms&titles=London&wbptterms=label|alias&wbptlanguage=en [サンドボックスで開く]

prop=redirects (rd)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
rdprop

取得するプロパティ:

pageid
各リダイレクトのページID。
title
各リダイレクトのページ名。
fragment
Fragment of each redirect, if any.
値 (| または別の文字列で区切る): fragment、pageid、title
既定: 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、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
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

返す転送の数。

型: 整数または max
値は1以上500以下です。
既定: 10
rdcontinue

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

prop=revisions (rv)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

版の情報を取得します。

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
その版を作成した利用者。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
userid
その版の作成者の利用者ID。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
size
その版の長さ (バイト) 。
slotsize
Length (bytes) of each revision slot.
sha1
SHA-1 (base 16) of the revision. If the content has been revision deleted, a sha1hidden property will be returned.
slotsha1
SHA-1 (base 16) of each revision slot. If the content has been revision deleted, a sha1hidden property will be returned.
contentmodel
Content model ID of each revision slot.
comment
その版の利用者によるコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
parsedcomment
その版の利用者による、構文解析されたコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
content
各版スロットの内容。コンテンツが版削除された場合には、プロパティ texthidden を返します。
tags
その版のタグ。
roles
List content slot roles that exist in the revision.
parsetree
廃止予定です。 Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model wikitext).
値 (| または別の文字列で区切る): comment、content、contentmodel、flags、ids、parsedcomment、roles、sha1、size、slotsha1、slotsize、tags、timestamp、user、userid、parsetree
既定: ids|timestamp|flags|comment|user
rvslots

Which revision slots to return data for, when slot-related properties are included in rvprops. If omitted, data from the main slot will be returned in a backwards-compatible format.

値 (| または別の文字列で区切る): main
すべての値を指定するには、*を用いてください。
rvlimit

返す版の数を制限する。

May only be used with a single page (mode #2).
型: 整数または max
値は1以上500以下です。
rvexpandtemplates
廃止予定です。

Use action=expandtemplates instead. Expand templates in revision content (requires rvprop=content).

型: 真偽値 (詳細)
rvgeneratexml
廃止予定です。

Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires rvprop=content).

型: 真偽値 (詳細)
rvparse
廃止予定です。

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

型: 真偽値 (詳細)
rvsection

Only retrieve the content of the section with this identifier.

rvdiffto
廃止予定です。

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

rvdifftotext
廃止予定です。

Use action=compare instead. 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
廃止予定です。

Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with rvdifftotext.

型: 真偽値 (詳細)
rvcontentformat
廃止予定です。

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

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
rvstartid

Start enumeration from this revision's timestamp. The revision must exist, but need not belong to this page.

May only be used with a single page (mode #2).
型: 整数
rvendid

Stop enumeration at this revision's timestamp. The revision must exist, but need not belong to this page.

May only be used with a single page (mode #2).
型: 整数
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).
型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
rvexcludeuser

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

May only be used with a single page (mode #2).
型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
rvtag

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

rvcontinue

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

例:
ページAPI および メインページ の最新版のデータと本文を取得する。
api.php?action=query&prop=revisions&titles=API|%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&rvslots=*&rvprop=timestamp|user|comment|content [サンドボックスで開く]
メインページ の直近の5版を取得する。
api.php?action=query&prop=revisions&titles=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&rvlimit=5&rvprop=timestamp|user|comment [サンドボックスで開く]
メインページ の最初の5版を取得する。
api.php?action=query&prop=revisions&titles=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer [サンドボックスで開く]
メインページ の 2006-05-01 以降の最初の改版5版を取得する。
api.php?action=query&prop=revisions&titles=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer&rvstart=2006-05-01T00:00:00Z [サンドボックスで開く]
メインページ の匿名利用者 127.0.0.1 以外による最初の5版を取得する。
api.php?action=query&prop=revisions&titles=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&rvlimit=5&rvprop=timestamp|user|comment&rvexcludeuser=127.0.0.1 [サンドボックスで開く]
メインページ の利用者 MediaWiki default による最初の5版を取得する。
api.php?action=query&prop=revisions&titles=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&rvlimit=5&rvprop=timestamp|user|comment&rvuser=MediaWiki%20default [サンドボックスで開く]

prop=stashimageinfo (sii)

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

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
アップロードされたバージョンのタイムスタンプを追加します。
canonicaltitle
そのファイルのカノニカルなタイトル。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
url
ファイルと説明ページへのURLを提供します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
size
バイト単位でファイルや高さ、幅、ページ数のサイズを追加します(該当する場合)。
dimensions
size の別名。
sha1
Adds SHA-1 hash for the file. If the file has been revision deleted, a filehidden property will be returned.
mime
ファイルのMIMEタイプを追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
thumbmime
画像サムネイルのMIMEタイプを追加します(url と siiurlwidth パラメータが必須です)。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
metadata
ファイルのバージョンの Exif メタデータを一覧表示します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
commonmetadata
Lists file format generic metadata for the version of the file. If the file has been revision deleted, a filehidden property will be returned.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted. If the file has been revision deleted, a filehidden property will be returned.
bitdepth
バージョンのビット深度を追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
badfile
Adds whether the file is on the MediaWiki:Bad image list
値 (| または別の文字列で区切る): badfile、bitdepth、canonicaltitle、commonmetadata、dimensions、extmetadata、metadata、mime、sha1、size、thumbmime、timestamp、url
既定: 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.

型: 整数
既定: -1
siiurlheight

Similar to siiurlwidth.

型: 整数
既定: -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)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

与えられたページで参照読み込みされているすべてのページを返します。

パラメーター:
その他一般パラメーターが利用可能です。
tlnamespace

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

値 (| または別の文字列で区切る): -1、-2、0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
tllimit

返すテンプレートの数。

型: 整数または max
値は1以上500以下です。
既定: 10
tlcontinue

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

tltemplates

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

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

昇順・降順の別。

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

prop=transcludedin (ti)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

与えられたページを参照読み込みしているすべてのページを検索します。

パラメーター:
その他一般パラメーターが利用可能です。
tiprop

取得するプロパティ:

pageid
各ページのページID。
title
各ページのページ名。
redirect
ページがリダイレクトである場合マークします。
値 (| または別の文字列で区切る): pageid、redirect、title
既定: pageid|title|redirect
tinamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
tishow

Show only items that meet these criteria:

redirect
Only show redirects.
!redirect
Only show non-redirects.
値 (| または別の文字列で区切る): !redirect、redirect
tilimit

返す数。

型: 整数または max
値は1以上500以下です。
既定: 10
ticontinue

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

prop=wbentityusage (wbeu)

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

Returns all entity IDs used in the given pages.

パラメーター:
その他一般パラメーターが利用可能です。
wbeuprop

Properties to add to the result.

url
If enabled url of entity will be added
値 (| または別の文字列で区切る): url
wbeuaspect

Only return entity IDs that used this aspect.

S
The entity's sitelinks are used
L
The entity's label is used
D
The entity's description is used
T
The title of the local page corresponding to the entity is used
C
Statements from the entity are used
X
All aspects of an entity are or may be used
O
Something else about the entity is used. This currently implies alias usage and explicit checks for entity existence.
値 (| または別の文字列で区切る): C、D、L、O、S、T、X
wbeuentities

Only return page that used these entities.

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

How many entity usages to return.

型: 整数または max
値は1以上500以下です。
既定: 10
wbeucontinue

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

list=allcategories (ac)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
acfrom

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

accontinue

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

acto

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

acprefix

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

acdir

並べ替えの方向。

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

少なくともこの数のメンバーを持つカテゴリのみを返します。

型: 整数
acmax

多くともこの数のメンバーを持つカテゴリのみを返します。

型: 整数
aclimit

返すカテゴリの数。

型: 整数または max
値は1以上500以下です。
既定: 10
acprop

取得するプロパティ:

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

list=alldeletedrevisions (adr)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
adrprop

Which properties to get for each revision:

ids
版のID。
flags
Revision flags (minor).
timestamp
版のタイムスタンプ。
user
その版を作成した利用者。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
userid
その版の作成者の利用者ID。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
size
その版の長さ (バイト) 。
slotsize
Length (bytes) of each revision slot.
sha1
SHA-1 (base 16) of the revision. If the content has been revision deleted, a sha1hidden property will be returned.
slotsha1
SHA-1 (base 16) of each revision slot. If the content has been revision deleted, a sha1hidden property will be returned.
contentmodel
Content model ID of each revision slot.
comment
その版の利用者によるコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
parsedcomment
その版の利用者による、構文解析されたコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
content
各版スロットの内容。コンテンツが版削除された場合には、プロパティ texthidden を返します。
tags
その版のタグ。
roles
List content slot roles that exist in the revision.
parsetree
廃止予定です。 Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model wikitext).
値 (| または別の文字列で区切る): comment、content、contentmodel、flags、ids、parsedcomment、roles、sha1、size、slotsha1、slotsize、tags、timestamp、user、userid、parsetree
既定: ids|timestamp|flags|comment|user
adrslots

Which revision slots to return data for, when slot-related properties are included in adrprops. If omitted, data from the main slot will be returned in a backwards-compatible format.

値 (| または別の文字列で区切る): main
すべての値を指定するには、*を用いてください。
adrlimit

返す版の数を制限する。

型: 整数または max
値は1以上500以下です。
adrexpandtemplates
廃止予定です。

Use action=expandtemplates instead. Expand templates in revision content (requires adrprop=content).

型: 真偽値 (詳細)
adrgeneratexml
廃止予定です。

Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires adrprop=content).

型: 真偽値 (詳細)
adrparse
廃止予定です。

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

型: 真偽値 (詳細)
adrsection

Only retrieve the content of the section with this identifier.

adrdiffto
廃止予定です。

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

adrdifftotext
廃止予定です。

Use action=compare instead. 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
廃止予定です。

Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with adrdifftotext.

型: 真偽値 (詳細)
adrcontentformat
廃止予定です。

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

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
adruser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
adrnamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
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 と同時に使用できません。
型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
adrtag

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

adrcontinue

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

adrgeneratetitles

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

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

list=allfileusages (af)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
afcontinue

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

affrom

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

afto

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

afprefix

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

afunique

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

型: 真偽値 (詳細)
afprop

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

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

返す項目の総数。

型: 整数または max
値は1以上500以下です。
既定: 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)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
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. More detailed information on how to continue queries can be found on mediawiki.org.

aistart

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

Type: timestamp (allowed formats)
aiend

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

Type: timestamp (allowed formats)
aiprop

取得するファイル情報:

timestamp
アップロードされたバージョンのタイムスタンプを追加します。
user
各ファイルのバージョンをアップロードした利用者を追加します。その利用者が削除された版がある場合、 userhidden プロパティが返されます。
userid
各ファイルのバージョンをアップロードした利用者のIDを追加します。その利用者が削除された版がある場合、 userhidden プロパティが返されます。
comment
そのバージョンのコメント。コメントが版指定削除されている場合、 commenthidden プロパティが返されます。
parsedcomment
そのバージョンのコメントをパースします。コメントが版指定削除されている場合、 commenthidden プロパティが返されます。
canonicaltitle
そのファイルのカノニカルなタイトル。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
url
ファイルと説明ページへのURLを提供します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
size
バイト単位でファイルや高さ、幅、ページ数のサイズを追加します(該当する場合)。
dimensions
size の別名。
sha1
Adds SHA-1 hash for the file. If the file has been revision deleted, a filehidden property will be returned.
mime
ファイルのMIMEタイプを追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
mediatype
ファイルのメディアタイプを追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
metadata
ファイルのバージョンの Exif メタデータを一覧表示します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
commonmetadata
Lists file format generic metadata for the version of the file. If the file has been revision deleted, a filehidden property will be returned.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted. If the file has been revision deleted, a filehidden property will be returned.
bitdepth
バージョンのビット深度を追加します。ファイルが版指定削除されている場合、 filehidden プロパティが返されます。
badfile
Adds whether the file is on the MediaWiki:Bad image list
値 (| または別の文字列で区切る): badfile、bitdepth、canonicaltitle、comment、commonmetadata、dimensions、extmetadata、mediatype、metadata、mime、parsedcomment、sha1、size、timestamp、url、user、userid
既定: timestamp|url
aiprefix

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

aiminsize

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

型: 整数
aimaxsize

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

型: 整数
aisha1

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

aisha1base36

(MediaWiki で使用される)base 36による画像の SHA1 ハッシュ。

aiuser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
aifilterbots

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

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

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

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

返す画像の総数。

型: 整数または max
値は1以上500以下です。
既定: 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 [サンドボックスで開く]
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
alcontinue

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

alfrom

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

alto

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

alprefix

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

alunique

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

型: 真偽値 (詳細)
alprop

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

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

列挙する名前空間。

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

返す項目の総数。

型: 整数または max
値は1以上500以下です。
既定: 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)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Enumerate all pages sequentially in a given namespace.

パラメーター:
その他一般パラメーターが利用可能です。
apfrom

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

apcontinue

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

apto

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

apprefix

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

apnamespace

列挙する名前空間。

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

リストするページ

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

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

型: 整数
apmaxsize

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

型: 整数
apprtype

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

値 (| または別の文字列で区切る): edit、move、upload
apprlevel

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

値 (| または別の文字列で区切る): 空もしくはautoconfirmed、sysopを使用
apprfiltercascade

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

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

返すページの総数。

型: 整数または max
値は1以上500以下です。
既定: 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つ): all、withlanglinks、withoutlanglinks
既定: 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つ): all、definite、indefinite
既定: all

list=allredirects (ar)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
arcontinue

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

arfrom

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

arto

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

arprefix

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

arunique

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

型: 真偽値 (詳細)
arprop

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

ids
転送ページのページIDを追加します (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).
値 (| または別の文字列で区切る): fragment、ids、interwiki、title
既定: title
arnamespace

列挙する名前空間。

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

返す項目の総数。

型: 整数または max
値は1以上500以下です。
既定: 10
ardir

昇順・降順の別。

値 (次の値のいずれか1つ): ascending、descending
既定: ascending
例:
B で始まる転送先ページ (存在しないページも含む)を、転送元のページIDとともに表示する。
api.php?action=query&list=allredirects&arfrom=B&arprop=ids|title [サンドボックスで開く]
一意のターゲットページを一覧表示します。
api.php?action=query&list=allredirects&arunique=&arfrom=B [サンドボックスで開く]
存在しないものに印をつけて、すべて取得する。
api.php?action=query&generator=allredirects&garunique=&garfrom=B [サンドボックスで開く]
リダイレクトを含むページを取得します。
api.php?action=query&generator=allredirects&garfrom=B [サンドボックスで開く]

list=allrevisions (arv)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
arvprop

Which properties to get for each revision:

ids
版のID。
flags
Revision flags (minor).
timestamp
版のタイムスタンプ。
user
その版を作成した利用者。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
userid
その版の作成者の利用者ID。その利用者が版指定削除されていた場合、 userhidden プロパティが返されます。
size
その版の長さ (バイト) 。
slotsize
Length (bytes) of each revision slot.
sha1
SHA-1 (base 16) of the revision. If the content has been revision deleted, a sha1hidden property will be returned.
slotsha1
SHA-1 (base 16) of each revision slot. If the content has been revision deleted, a sha1hidden property will be returned.
contentmodel
Content model ID of each revision slot.
comment
その版の利用者によるコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
parsedcomment
その版の利用者による、構文解析されたコメント。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
content
各版スロットの内容。コンテンツが版削除された場合には、プロパティ texthidden を返します。
tags
その版のタグ。
roles
List content slot roles that exist in the revision.
parsetree
廃止予定です。 Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model wikitext).
値 (| または別の文字列で区切る): comment、content、contentmodel、flags、ids、parsedcomment、roles、sha1、size、slotsha1、slotsize、tags、timestamp、user、userid、parsetree
既定: ids|timestamp|flags|comment|user
arvslots

Which revision slots to return data for, when slot-related properties are included in arvprops. If omitted, data from the main slot will be returned in a backwards-compatible format.

値 (| または別の文字列で区切る): main
すべての値を指定するには、*を用いてください。
arvlimit

返す版の数を制限する。

型: 整数または max
値は1以上500以下です。
arvexpandtemplates
廃止予定です。

Use action=expandtemplates instead. Expand templates in revision content (requires arvprop=content).

型: 真偽値 (詳細)
arvgeneratexml
廃止予定です。

Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires arvprop=content).

型: 真偽値 (詳細)
arvparse
廃止予定です。

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

型: 真偽値 (詳細)
arvsection

Only retrieve the content of the section with this identifier.

arvdiffto
廃止予定です。

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

arvdifftotext
廃止予定です。

Use action=compare instead. 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
廃止予定です。

Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with arvdifftotext.

型: 真偽値 (詳細)
arvcontentformat
廃止予定です。

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

値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
arvuser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
arvnamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
arvstart

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

Type: timestamp (allowed formats)
arvend

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

Type: timestamp (allowed formats)
arvdir

列挙の方向:

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

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
arvcontinue

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

arvgeneratetitles

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

型: 真偽値 (詳細)

list=alltransclusions (at)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
atcontinue

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

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.

型: 真偽値 (詳細)
atprop

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

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

列挙する名前空間。

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

返す項目の総数。

型: 整数または max
値は1以上500以下です。
既定: 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)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
aufrom

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

auto

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

auprefix

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

audir

並べ替えの方向。

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

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

値 (| または別の文字列で区切る): bot、bureaucrat、interface-admin、suppress、sysop
auexcludegroup

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

値 (| または別の文字列で区切る): bot、bureaucrat、interface-admin、suppress、sysop
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、approverevisions、autoconfirmed、autocreateaccount、autopatrol、bigdelete、block、blockemail、bot、browsearchive、changetags、createaccount、createpage、createtalk、delete、delete-redirect、deletechangetags、deletedhistory、deletedtext、deletelogentry、deleterevision、edit、editcontentmodel、editinterface、editmyoptions、editmyprivateinfo、editmyusercss、editmyuserjs、editmyuserjson、editmyuserjsredirect、editmywatchlist、editprotected、editsemiprotected、editsitecss、editsitejs、editsitejson、editusercss、edituserjs、edituserjson、gtag-exempt、hideuser、import、importupload、interwiki、ipblock-exempt、item-merge、item-redirect、item-term、managechangetags、markbotedits、mergehistory、minoredit、move、move-categorypages、move-rootuserpages、move-subpages、movefile、nominornewtalk、noratelimit、override-export-depth、pagelang、patrol、patrolmarks、property-create、property-term、protect、purge、read、reupload、reupload-own、reupload-shared、rollback、sendemail、siteadmin、suppressionlog、suppressredirect、suppressrevision、unblockself、undelete、unwatchedpages、upload、upload_by_url、userrights、userrights-interwiki、viewapprover、viewlinktolatest、viewmyprivateinfo、viewmywatchlist、viewsuppressed、writeapi
値の最大値は 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、centralids、editcount、groups、implicitgroups、registration、rights
aulimit

返す利用者名の総数。

型: 整数または max
値は1以上500以下です。
既定: 10
auwitheditsonly

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

型: 真偽値 (詳細)
auactiveusers

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

型: 真偽値 (詳細)
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 [サンドボックスで開く]
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
bltitle

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

blpageid

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

型: 整数
blcontinue

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

blnamespace

列挙する名前空間。

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
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、nonredirects、redirects
既定: all
bllimit

返すページの総数。blredirect を有効化した場合は、各レベルに対し個別にlimitが適用されます (つまり、最大で 2 * bllimit 件の結果が返されます)。

型: 整数または max
値は1以上500以下です。
既定: 10
blredirect

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

型: 真偽値 (詳細)

list=blocks (bk)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
bkstart

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

Type: timestamp (allowed formats)
bkend

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

Type: timestamp (allowed formats)
bkdir

列挙の方向:

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

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

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

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

型: 利用者名、IP および IP範囲のいずれかを使った利用者のリスト
複数の値は | または代わりの文字で区切ってください。
値の最大値は 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

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

型: 整数または max
値は1以上500以下です。
既定: 10
bkprop

取得するプロパティ:

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

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

値 (| または別の文字列で区切る): !account、!ip、!range、!temp、account、ip、range、temp
bkcontinue

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

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

list=categorymembers (cm)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
cmtitle

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

cmpageid

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

型: 整数
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、sortkey、sortkeyprefix、timestamp、title、type
既定: 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、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
cmtype

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

値 (| または別の文字列で区切る): file、page、subcat
既定: page|subcat|file
cmcontinue

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

cmlimit

返すページの最大数。

型: 整数または max
値は1以上500以下です。
既定: 10
cmsort

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

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

並べ替え方向。

値 (次の値のいずれか1つ): asc、ascending、desc、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)

  • このモジュールは廃止予定です。
  • このモジュールは読み取りの権限を必要とします。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

削除された版を一覧表示します。

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

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

モード: 1、2
Type: timestamp (allowed formats)
drend

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

モード: 1、2
Type: timestamp (allowed formats)
drdir

列挙の方向:

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

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

モード: 3
drto

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

モード: 3
drprefix

Search for all page titles that begin with this value.

モード: 3
drunique

各ページに対して、ひとつの版のみを一覧表示します。

モード: 3
型: 真偽値 (詳細)
drnamespace

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

モード: 3
値 (次の値のいずれか1つ): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
既定: 0
drtag

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

druser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
drexcludeuser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
drprop

取得するプロパティ:

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

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

型: 整数または max
値は1以上500以下です。
既定: 10
drcontinue

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

例:
ページ メインページ および Talk:Main Page の最後に削除された版を内容と共に一覧表示する(モード 1)。
api.php?action=query&list=deletedrevs&titles=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8|%E3%83%88%E3%83%BC%E3%82%AF%3A%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&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)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
eititle

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

eipageid

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

型: 整数
eicontinue

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

einamespace

列挙する名前空間。

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
eidir

昇順・降順の別。

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

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

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

返すページの総数。

型: 整数または max
値は1以上500以下です。
既定: 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)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
euprop

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

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

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

euprotocol

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

値 (次の値のいずれか1つ): 空もしくはbitcoin、ftp、ftps、geo、git、gopher、http、https、irc、ircs、magnet、mailto、matrix、mms、news、nntp、redis、sftp、sip、sips、sms、ssh、svn、tel、telnet、urn、worldwind、xmppを使用
既定値: (空)
euquery

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

eunamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
eulimit

返すページの数。

型: 整数または max
値は1以上500以下です。
既定: 10
euexpandurl

Expand protocol-relative URLs with the canonical protocol.

型: 真偽値 (詳細)

list=filearchive (fa)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
fafrom

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

fato

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

faprefix

この値で始まるすべての画像タイトルを検索します。

fadir

昇順・降順の別。

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

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

fasha1base36

(MediaWiki で使用される)base 36による画像の SHA1 ハッシュ。

faprop

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

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

返す画像の総数。

型: 整数または max
値は1以上500以下です。
既定: 10
facontinue

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

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

list=imageusage (iu)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Find all pages that use the given image title.

パラメーター:
その他一般パラメーターが利用可能です。
iutitle

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

iupageid

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

型: 整数
iucontinue

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

iunamespace

列挙する名前空間。

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
iudir

昇順・降順の別。

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

型: 整数または max
値は1以上500以下です。
既定: 10
iuredirect

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

型: 真偽値 (詳細)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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. More detailed information on how to continue queries can be found on mediawiki.org.

iwbllimit

返すページの総数。

型: 整数または max
値は1以上500以下です。
既定: 10
iwblprop

取得するプロパティ:

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

昇順・降順の別。

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

与えられた言語間リンクにリンクしているすべてのページを返します。

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. More detailed information on how to continue queries can be found on mediawiki.org.

lbllimit

返すページの総数。

型: 整数または max
値は1以上500以下です。
既定: 10
lblprop

取得するプロパティ:

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

昇順・降順の別。

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

list=logevents (le)

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

Get events from logs.

パラメーター:
その他一般パラメーターが利用可能です。
leprop

取得するプロパティ:

ids
記録イベントのIDを追加します。
title
記録イベントにページ名を追加します。
type
記録イベントのタイプを追加します。
user
Adds the user responsible for the log event. If the user has been revision deleted, a userhidden property will be returned.
userid
Adds the user ID who was responsible for the log event. If the user has been revision deleted, a userhidden property will be returned.
timestamp
Adds the timestamp for the log event.
comment
記録イベントのコメントを追加します。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
parsedcomment
記録イベントの構文解析されたコメントを追加します。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
details
記録イベントに関する追加の詳細を一覧表示します。記録イベントが版指定削除されている場合、actionhiddenプロパティを返します。
tags
記録イベントのタグを一覧表示します。
値 (| または別の文字列で区切る): comment、details、ids、parsedcomment、tags、timestamp、title、type、user、userid
既定: ids|title|type|user|timestamp|comment|details
letype

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

値 (次の値のいずれか1つ): 空もしくはapproval、block、contentmodel、create、delete、import、interwiki、managetags、merge、move、newusers、patrol、protect、rights、suppress、tag、uploadを使用
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つ): approval/approve、approval/approvefile、approval/unapprove、block/block、block/reblock、block/unblock、contentmodel/change、contentmodel/new、create/create、delete/delete、delete/delete_redir、delete/delete_redir2、delete/event、delete/restore、delete/revision、import/interwiki、import/upload、interwiki/*、managetags/activate、managetags/create、managetags/deactivate、managetags/delete、merge/merge、move/move、move/move_redir、newusers/autocreate、newusers/byemail、newusers/create、newusers/create2、newusers/newusers、patrol/autopatrol、patrol/patrol、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
lestart

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

Type: timestamp (allowed formats)
leend

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

Type: timestamp (allowed formats)
ledir

列挙の方向:

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

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
letitle

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

lenamespace

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

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

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

letag

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

lelimit

返す記録項目の総数。

型: 整数または max
値は1以上500以下です。
既定: 10
lecontinue

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

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

list=mystashedfiles (msf)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
msfprop

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

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

取得するファイルの数。

型: 整数または max
値は1以上500以下です。
既定: 10
msfcontinue

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

例:
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)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
ppncontinue

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

ppnlimit

返す名前の最大数。

型: 整数または max
値は1以上500以下です。
既定: 10
例:
最初の10個のプロパティ名を取得する。
api.php?action=query&list=pagepropnames [サンドボックスで開く]

list=pageswithprop (pwp)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
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. More detailed information on how to continue queries can be found on mediawiki.org.

pwplimit

返すページの最大数。

型: 整数または max
値は1以上500以下です。
既定: 10
pwpdir

並べ替え方向。

値 (次の値のいずれか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)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

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

パラメーター:
その他一般パラメーターが利用可能です。
pssearch

検索文字列。

この変数は必須です。
psnamespace

検索する名前空間。pssearchが有効な名前空間接頭辞で始まる場合は無視されます。

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
既定: 0
pslimit

返す結果の最大数。

型: 整数または max
値は1以上500以下です。
既定: 10
psoffset

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

型: 整数
既定: 0

list=protectedtitles (pt)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
ptnamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
ptlevel

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

値 (| または別の文字列で区切る): autoconfirmed、sysop
ptlimit

返すページの総数。

型: 整数または max
値は1以上500以下です。
既定: 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
保護レベルを追加します。
値 (| または別の文字列で区切る): comment、expiry、level、parsedcomment、timestamp、user、userid
既定: timestamp|level
ptcontinue

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

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

list=querypage (qp)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
qppage

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

この変数は必須です。
値 (次の値のいずれか1つ): Ancientpages、BrokenRedirects、Deadendpages、DoubleRedirects、Fewestrevisions、ListDuplicatedFiles、Listredirects、Lonelypages、Longpages、MediaStatistics、Mostcategories、Mostimages、Mostinterwikis、Mostlinked、Mostlinkedcategories、Mostlinkedtemplates、Mostrevisions、Shortpages、Uncategorizedcategories、Uncategorizedimages、Uncategorizedpages、Uncategorizedtemplates、UnconnectedPages、Unusedcategories、Unusedimages、Unusedtemplates、Unwatchedpages、Wantedcategories、Wantedfiles、Wantedpages、Wantedtemplates、Withoutinterwiki
qpoffset

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

型: 整数
既定: 0
qplimit

返す結果の数。

型: 整数または max
値は1以上500以下です。
既定: 10

list=random (rn)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ランダムなページのセットを取得します。

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、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
rnfilterredir

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

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

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

型: 真偽値 (詳細)
rnlimit

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

型: 整数または max
値は1以上500以下です。
既定: 1
rncontinue

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

例:
標準名前空間から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)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
rcstart

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

Type: timestamp (allowed formats)
rcend

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

Type: timestamp (allowed formats)
rcdir

列挙の方向:

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

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

値 (| または別の文字列で区切る): -1、-2、0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
rcuser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
rcexcludeuser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
rctag

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

rcprop

Include additional pieces of information:

user
Adds the user responsible for the edit and tags if they are an IP. If the user has been revision deleted, a userhidden property will be returned.
userid
Adds the user ID responsible for the edit. If the user has been revision deleted, a userhidden property will be returned.
comment
Adds the comment for the edit. If the comment has been revision deleted, a commenthidden property will be returned.
parsedcomment
構文解析された編集コメントを追加します。コメントが版指定削除されている場合、commenthiddenプロパティを返します。
flags
編集のフラグを追加します。
timestamp
編集のタイムスタンプを追加します。
title
編集のページ名を追加します。
ids
ページID、最近の更新IDと新旧の版IDを追加します。
sizes
バイト単位の新旧のページの長さを追加します。
redirect
編集されたページが転送ページである場合、印を付けます。
patrolled
巡回可能な編集について、巡回済みかどうか印を付けます。
loginfo
記録項目に記録の情報 (記録ID, 記録タイプなど) を追加します。
tags
エントリのタグを一覧表示します。
sha1
Adds the content checksum for entries associated with a revision. If the content has been revision deleted, a sha1hidden property will be returned.
値 (| または別の文字列で区切る): comment、flags、ids、loginfo、parsedcomment、patrolled、redirect、sha1、sizes、tags、timestamp、title、user、userid
既定: title|timestamp|ids
rcshow

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

値 (| または別の文字列で区切る): !anon、!autopatrolled、!bot、!minor、!patrolled、!redirect、anon、autopatrolled、bot、minor、patrolled、redirect、unpatrolled
rclimit

返す変更の総数。

型: 整数または max
値は1以上500以下です。
既定: 10
rctype

Which types of changes to show.

値 (| または別の文字列で区切る): categorize、edit、external、log、new
既定: edit|new|log|categorize
rctoponly

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

型: 真偽値 (詳細)
rctitle

Filter entries to those related to a page.

rccontinue

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

rcgeneraterevisions

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

型: 真偽値 (詳細)
rcslot

Only list changes that touch the named slot.

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

list=search (sr)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

全文検索を行います。

パラメーター:
その他一般パラメーターが利用可能です。
srsearch

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

この変数は必須です。
srnamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
既定: 0
srlimit

返すページの総数です。

型: 整数または max
値は1以上500以下です。
既定: 10
sroffset

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

型: 整数
既定: 0
srwhat

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

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

どのメタデータを返すか。

値 (| または別の文字列で区切る): rewrittenquery、suggestion、totalhits
既定: totalhits|suggestion|rewrittenquery
srprop

返すプロパティ:

size
バイト単位のページのサイズを追加します。
wordcount
ページのワード数を追加します。
timestamp
ページが最後に編集されたときのタイムスタンプを追加します。
snippet
Adds a snippet of the page, with query term highlighting markup.
titlesnippet
Adds the page title, with query term highlighting markup.
redirecttitle
Adds the title of the matching redirect.
redirectsnippet
Adds the title of the matching redirect, with query term highlighting markup.
sectiontitle
合致するタイトルを追加します。
sectionsnippet
Adds the title of the matching section, with query term highlighting markup.
isfilematch
Adds a boolean indicating if the search matched file content.
categorysnippet
Adds the matching category name, with query term highlighting markup.
score
廃止予定です。 Ignored.
hasrelated
廃止予定です。 Ignored.
extensiondata
Adds extra data generated by extensions.
値 (| または別の文字列で区切る): categorysnippet、extensiondata、isfilematch、redirectsnippet、redirecttitle、sectionsnippet、sectiontitle、size、snippet、timestamp、titlesnippet、wordcount、hasrelated、score
既定: size|wordcount|timestamp|snippet
srinterwiki

Include interwiki results in the search, if available.

型: 真偽値 (詳細)
srenablerewrites

Enable internal query rewriting. Some search backends can rewrite the query into another which is thought to provide better results, for instance by correcting spelling errors.

型: 真偽値 (詳細)
srsort

Set the sort order of returned results.

値 (次の値のいずれか1つ): relevance
既定: relevance

list=tags (tg)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
tgcontinue

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

tglimit

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

型: 整数または max
値は1以上500以下です。
既定: 10
tgprop

取得するプロパティ:

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.
値 (| または別の文字列で区切る): active、defined、description、displayname、hitcount、source
既定値: (空)

list=usercontribs (uc)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
uclimit

返す投稿記録の最大数。

型: 整数または max
値は1以上500以下です。
既定: 10
ucstart

The start timestamp to return from, i.e. revisions before this timestamp.

Type: timestamp (allowed formats)
ucend

The end timestamp to return to, i.e. revisions after this timestamp.

Type: timestamp (allowed formats)
uccontinue

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

ucuser

投稿記録を取得する利用者。ucuseridsucuserprefix、またはuciprangeとは同時に使用できません。

型: 利用者名、IP および インターウィキの名前(例: "prefix>ExampleName")のいずれかを使った利用者のリスト
複数の値は | または代わりの文字で区切ってください。
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
ucuserids

投稿記録を取得する利用者のID。ucuserucuserprefixまたは uciprangeとは同時に使用できません。

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

この値で始まる名前のすべての利用者の投稿記録を取得します。ucuserucuseridsまたはuciprangeとは同時に使用できません。

uciprange

The CIDR range to retrieve contributions for. Cannot be used with ucuser, ucuserprefix, or ucuserids.

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、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
ucprop

Include additional pieces of information:

ids
ページIDと版IDを追加します。
title
ページ名と名前空間IDを追加します。
timestamp
編集のタイムスタンプを追加します。
comment
編集のコメントを追加します。コメントが履歴除去された場合には、プロパティ commenthidden を返します。
parsedcomment
構文解析された編集コメントを追加します。コメントが履歴除去された場合には、プロパティ commenthidden を返します。
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.
値 (| または別の文字列で区切る): comment、flags、ids、parsedcomment、patrolled、size、sizediff、tags、timestamp、title
既定: 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.

値 (| または別の文字列で区切る): !autopatrolled、!minor、!new、!patrolled、!top、autopatrolled、minor、new、patrolled、top
uctag

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

uctoponly
廃止予定です。

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

型: 真偽値 (詳細)
例:
利用者 Example の投稿記録を表示する。
api.php?action=query&list=usercontribs&ucuser=Example [サンドボックスで開く]
192.0.2. から始まるすべてのIPアドレスからの投稿記録を表示する。
api.php?action=query&list=usercontribs&ucuserprefix=192.0.2. [サンドボックスで開く]

list=users (us)

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

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

パラメーター:
その他一般パラメーターが利用可能です。
usprop

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

blockinfo
Tags if the user is blocked, by whom, and for what reason.
groups
Lists all the groups each user belongs to.
groupmemberships
Lists groups that each user has been explicitly assigned to, including the expiry date of each group membership.
implicitgroups
Lists all the groups a user is automatically a member of.
rights
Lists all the rights each user has.
editcount
Adds the user's edit count.
registration
Adds the user's registration timestamp.
emailable
Tags if the user can and wants to receive email through Special:Emailuser.
gender
Tags the gender of the user. Returns "male", "female", or "unknown".
centralids
Adds the central IDs and attachment status for the user.
cancreate
Indicates whether an account for valid but unregistered usernames can be created.
値 (| または別の文字列で区切る): blockinfo、cancreate、centralids、editcount、emailable、gender、groupmemberships、groups、implicitgroups、registration、rights
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.

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

A list of user IDs to obtain information for.

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

list=watchlist (wl)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
wlallrev

Include multiple revisions of the same page within given timeframe.

型: 真偽値 (詳細)
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、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
wluser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
wlexcludeuser

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

型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
wldir

列挙の方向:

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

How many total results to return per request.

型: 整数または max
値は1以上500以下です。
既定: 10
wlprop

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

ids
版IDとページIDを追加します。
title
ページ名を追加します。
flags
編集のフラグを追加します。
user
Adds the user who made the edit. If the user has been revision deleted, a userhidden property will be returned.
userid
Adds user ID of whoever made the edit. If the user has been revision deleted, a userhidden property will be returned.
comment
編集のコメントを追加します。コメントが履歴削除された場合は、プロパティ commenthidden を返します。
parsedcomment
編集の構文解析されたコメントを追加します。コメントが履歴除去された場合は、プロパティcommenthidden を返します。
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
適切な場合にログ情報を追加します。
tags
Lists tags for the entry.
expiry
Adds the expiry time.
値 (| または別の文字列で区切る): comment、expiry、flags、ids、loginfo、notificationtimestamp、parsedcomment、patrol、sizes、tags、timestamp、title、user、userid
既定: 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.

値 (| または別の文字列で区切る): !anon、!autopatrolled、!bot、!minor、!patrolled、!unread、anon、autopatrolled、bot、minor、patrolled、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.
値 (| または別の文字列で区切る): categorize、edit、external、log、new
既定: edit|new|log|categorize
wlowner

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

型: 利用者名を使った利用者
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. More detailed information on how to continue queries can be found on mediawiki.org.

例:
現在の利用者のウォッチリストにある最近変更されたページの最新版を一覧表示します。
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 additional information about the top revision for recently changed pages on the current user's watchlist, including when temporarily watched items will expire.
api.php?action=query&list=watchlist&wlprop=ids|title|timestamp|user|comment|expiry [サンドボックスで開く]
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)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

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

パラメーター:
その他一般パラメーターが利用可能です。
wrcontinue

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

wrnamespace

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

値 (| または別の文字列で区切る): 0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、120、121、122、123、828、829
すべての値を指定するには、*を用いてください。
wrlimit

How many total results to return per request.

型: 整数または max
値は1以上500以下です。
既定: 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.

型: 利用者名を使った利用者
wrtoken

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

wrdir

昇順・降順の別。

値 (次の値のいずれか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 [サンドボックスで開く]

list=wblistentityusage (wbeu)

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Returns all pages that use the given entity IDs.

パラメーター:
その他一般パラメーターが利用可能です。
wbeuprop

Properties to add to the result.

url
If enabled the url of the entity will be added to the result.
値 (| または別の文字列で区切る): url
wbeuaspect

Only return entity IDs that used this aspect.

S
The entity's sitelinks are used
L
The entity's label is used
D
The entity's description is used
T
The title of the local page corresponding to the entity is used
C
Statements from the entity are used
X
All aspects of an entity are or may be used
O
Something else about the entity is used. This currently implies alias usage and explicit checks for entity existence.
値 (| または別の文字列で区切る): C、D、L、O、S、T、X
wbeuentities

Entities that have been used.

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

How many entity usages to return.

型: 整数または max
値は1以上500以下です。
既定: 10
wbeucontinue

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

list=wbsearch (wbs)

  • このモジュールは内部的または不安定です。動作が予告なく変更される場合があります。
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Searches for entities using labels and aliases.

This can be used as a generator for other queries. Returns the matched term that should be displayed.

パラメーター:
その他一般パラメーターが利用可能です。
wbssearch

このテキストを検索する。

この変数は必須です。
wbslanguage

この言語で検索する。

値 (次の値のいずれか1つ): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
wbsstrictlanguage

Whether to disable language fallback

型: 真偽値 (詳細)
wbstype

Search for this type of entity.

値 (次の値のいずれか1つ): item、property
既定: item
wbslimit

Maximal number of results

型: 整数または max
値は0以上50以下です。
既定: 7
wbsprofile

The search profile to use.

default
The default profile, suitable for most purposes.
値 (次の値のいずれか1つ): default
既定: default

list=wbsubscribers (wbls)

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

Get subscriptions to given entities.

パラメーター:
その他一般パラメーターが利用可能です。
wblsentities

Entities to get subscribers

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

Properties to add to result

値 (| または別の文字列で区切る): url
既定値: (空)
wblslimit

Maximal number of results

型: 整数または max
値は1以上500以下です。
既定: 10
wblscontinue

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

meta=allmessages (am)

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

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

型: 真偽値 (詳細)
amnocontent

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

型: 真偽値 (詳細)
amincludelocal

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

型: 真偽値 (詳細)
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つ): change、create、create-continue、link、link-continue、login、login-continue、remove、unlink
amimergerequestfields

Merge field information for all authentication requests into one array.

型: 真偽値 (詳細)
amimessageformat

Format to use for returning messages.

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

meta=filerepoinfo (fri)

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

Return meta information about image repositories configured on the wiki.

パラメーター:
その他一般パラメーターが利用可能です。
friprop

Which repository properties to get (properties available may vary on other wikis).

canUpload
Whether files can be uploaded to this repository, e.g. via CORS and shared authentication.
displayname
The human-readable name of the repository wiki.
favicon
Repository wiki's favicon URL, from $wgFavicon.
initialCapital
Whether file names implicitly start with a capital letter.
local
Whether that repository is the local one or not.
name
The key of the repository - used in e.g. $wgForeignFileRepos and imageinfo return values.
rootUrl
Root URL path for image paths.
scriptDirUrl
Root URL path for the repository wiki's MediaWiki installation.
thumbUrl
Root URL path for thumbnail paths.
url
Public zone URL path.
値 (| または別の文字列で区切る): canUpload、displayname、favicon、initialCapital、local、name、rootUrl、scriptDirUrl、thumbUrl、url
既定: canUpload|displayname|favicon|initialCapital|local|name|rootUrl|scriptDirUrl|thumbUrl|url
例:
ファイルリポジトリについての情報を取得します。
api.php?action=query&meta=filerepoinfo&friprop=name|displayname [サンドボックスで開く]

meta=languageinfo (li)

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

Return information about available languages.

Continuation may be applied if retrieving the information takes too long for one request.

パラメーター:
その他一般パラメーターが利用可能です。
liprop

Which information to get for each language.

code
The language code. (This code is MediaWiki-specific, though there are overlaps with other standards.)
bcp47
The BCP-47 language code.
dir
The writing direction of the language (either ltr or rtl).
autonym
The autonym of the language, that is, the name in that language.
name
The name of the language in the language specified by the uselang parameter, with language fallbacks applied if necessary.
fallbacks
The language codes of the fallback languages configured for this language. The implicit final fallback to 'en' is not included (but some languages may fall back to 'en' explicitly).
variants
The language codes of the variants supported by this language.
値 (| または別の文字列で区切る): autonym、bcp47、code、dir、fallbacks、name、variants
既定: code
licode

Language codes of the languages that should be returned, or * for all languages.

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

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

meta=siteinfo (si)

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

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
アップロードが許可されているファイル拡張子の一覧を返します。
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).
languagevariants
Returns a list of language codes for which LanguageConverter is enabled, and the variants supported for each.
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.
値 (| または別の文字列で区切る): dbrepllag、defaultoptions、extensions、extensiontags、fileextensions、functionhooks、general、interwikimap、languages、languagevariants、libraries、magicwords、namespacealiases、namespaces、protocols、restrictions、rightsinfo、showhooks、skins、specialpagealiases、statistics、uploaddialog、usergroups、variables
既定: 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.

型: 真偽値 (詳細)
sinumberingroup

利用者グループに属する利用者の数を一覧表示します。

型: 真偽値 (詳細)
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)

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

現在の利用者に関する情報を取得します。

パラメーター:
その他一般パラメーターが利用可能です。
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.
groupmemberships
Lists groups that the current user has been explicitly assigned to, including the expiry date of each group membership.
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.
editcount
Adds the current user's edit count.
ratelimits
Lists all rate limits applying to the current user.
theoreticalratelimits
Lists all rate limits that would apply to the current user if they were not exempt from all ratelimits based on user rights or ip
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.
latestcontrib
Adds the date of user's latest contribution.
値 (| または別の文字列で区切る): acceptlang、blockinfo、centralids、changeablegroups、editcount、email、groupmemberships、groups、hasmsg、implicitgroups、latestcontrib、options、ratelimits、realname、registrationdate、rights、theoreticalratelimits、unreadcount
すべての値を指定するには、*を用いてください。
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 [サンドボックスで開く]

meta=wbcontentlanguages (wbcl)

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

Returns information about the content languages Wikibase accepts in different contexts.

パラメーター:
その他一般パラメーターが利用可能です。
wbclcontext

The context in which the content languages should be valid.

term
The terms (label, description, aliases) of an entity.
monolingualtext
A monolingual text value in a statement.
値 (次の値のいずれか1つ): monolingualtext、term
既定: term
wbclprop

The properties that should be returned about each language.

code
The language code.
autonym
The autonym of the language, that is, the name of the language in that language. May not be known for all languages.
name
The name of the language in the current language (specified via the uselang parameter), with language fallbacks applied if necessary. Usually, at least an English name is known for all content languages Wikibase accepts.
値 (| または別の文字列で区切る): autonym、code、name
既定: code
例:
Get the valid language codes for the terms of an entity.
api.php?action=query&meta=wbcontentlanguages [サンドボックスで開く]
Get the valid languages, with language code and autonym, for monolingual text values.
api.php?action=query&meta=wbcontentlanguages&wbclcontext=monolingualtext&wbclprop=code|autonym [サンドボックスで開く]

meta=wikibase (wb)

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

Get information about the Wikibase client and the associated Wikibase repository.

パラメーター:
その他一般パラメーターが利用可能です。
wbprop

Which properties to get:

url
Base URL, script path and article path of the Wikibase repository.
siteid
The siteid of this site.
値 (| または別の文字列で区切る): siteid、url
既定: url|siteid
例:
Get URL path and other information about Wikibase client and repository.
api.php?action=query&meta=wikibase [サンドボックスで開く]

action=removeauthenticationdata

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Remove authentication data for the current user.

パラメーター:
その他一般パラメーターが利用可能です。
request

Use this authentication request, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=remove.

この変数は必須です。
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=resetpassword

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

利用者にパスワードをリセットするメールを送信します。

パラメーター:
その他一般パラメーターが利用可能です。
user

User being reset.

型: 利用者名を使った利用者
email

Email address of the user being reset.

token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
例:
利用者 Example にパスワード再設定のメールを送信する。
api.php?action=resetpassword&user=Example&token=123ABC [サンドボックスで開く]
Send a password reset email for all users with email address user@example.com.
api.php?action=resetpassword&user=user@example.com&token=123ABC [サンドボックスで開く]

action=revisiondelete

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

版の削除および復元を行います。

パラメーター:
その他一般パラメーターが利用可能です。
type

Type of revision deletion being performed.

この変数は必須です。
値 (次の値のいずれか1つ): archive、filearchive、logging、oldimage、revision
target

Page title for the revision deletion, if required for the type.

ids

Identifiers for the revisions to be deleted.

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

What to hide for each revision.

値 (| または別の文字列で区切る): comment、content、user
show

What to unhide for each revision.

値 (| または別の文字列で区切る): comment、content、user
suppress

Whether to suppress data from administrators as well as others.

値 (次の値のいずれか1つ): no、nochange、yes
既定: nochange
reason

削除または復元の理由。

tags

Tags to apply to the entry in the deletion log.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=rollback

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページの最後の編集を取り消す。

If the last user who edited the page made multiple edits in a row, they will all be rolled back.

パラメーター:
その他一般パラメーターが利用可能です。
title

巻き戻すページ名です。pageid とは同時に使用できません。

pageid

巻き戻すページのページIDです。title とは同時に使用できません。

型: 整数
tags

巻き戻しに適用するタグ。

値 (| または別の文字列で区切る):
user

巻き戻し対象の編集を行った利用者名。

この変数は必須です。
型: 利用者名、IP、インターウィキの名前(例: "prefix>ExampleName") および 利用者ID(例: #12345)のいずれかを使った利用者
summary

Custom edit summary. If empty, default summary will be used.

既定値: (空)
markbot

巻き戻された編集と巻き戻しをボットの編集としてマークする。

型: 真偽値 (詳細)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

値 (次の値のいずれか1つ): nochange、preferences、unwatch、watch
既定: preferences
token

action=query&meta=tokens から取得した「rollback」トークン

互換性のために、ウェブUIで使用されるトークンも受理されます。

この変数は必須です。
例:
利用者 Example による メインページ への直近の一連の編集を巻き戻す。
api.php?action=rollback&title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&user=Example&token=123ABC [サンドボックスで開く]
IP利用者 192.0.2.5 による メインページ への最後の一連の編集を Reverting vandalism という理由で、それらの編集とその差し戻しをボットの編集としてマークして差し戻す。
api.php?action=rollback&title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&user=192.0.2.5&token=123ABC&summary=Reverting%20vandalism&markbot=1 [サンドボックスで開く]

action=rsd

(main | rsd)

Export an RSD (Really Simple Discovery) schema.

action=scribunto-console

  • このモジュールは内部的または不安定です。動作が予告なく変更される場合があります。
  • このモジュールは読み取りの権限を必要とします。
  • ソース: Scribunto
  • ライセンス: GPL-2.0-or-later AND MIT

Internal module for servicing XHR requests from the Scribunto console.

パラメーター:
その他一般パラメーターが利用可能です。
title

The title of the module to test.

content

The new content of the module.

session

Session token.

型: 整数
question

The next line to evaluate as a script.

この変数は必須です。
clear

Set to clear the current session state.

型: 真偽値 (詳細)

action=setnotificationtimestamp

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Update the notification timestamp for watched pages.

This affects the highlighting of changed pages in the watchlist and history, and the sending of email when the "ウォッチリストにあるページやファイルが更新されたら、メールを受け取る" preference is enabled.

パラメーター:
その他一般パラメーターが利用可能です。
entirewatchlist

Work on all watched pages.

型: 真偽値 (詳細)
timestamp

Timestamp to which to set the notification timestamp.

Type: timestamp (allowed formats)
torevid

Revision to set the notification timestamp to (one page only).

型: 整数
newerthanrevid

Revision to set the notification timestamp newer than (one page only).

型: 整数
continue

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

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
現在の利用者のウォッチリストにあるすべてのページを取得します。
wblistentityusage
Returns all pages that use the given entity IDs.
wbsearch
内部で使用。 Searches for entities using labels and aliases.
値 (次の値のいずれか1つ): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsbacklinkscategoriescategorymembersdeletedrevisionsduplicatefilesembeddedinexturlusagefileusageimagesimageusageiwbacklinkslangbacklinkslinkslinksherepageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangesredirectsrevisionssearchtemplatestranscludedinwatchlistwatchlistrawwblistentityusagewbsearch
redirects

titles, pageids, および revids, および 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.

型: 真偽値 (詳細)
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=setpagelanguage

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

ページの言語を変更します。

ページ言語の変更はこのウィキでは許可されていません。

この操作を利用するには、$wgPageLanguageUseDB を設定してください。

パラメーター:
その他一般パラメーターが利用可能です。
title

言語を変更したいページのページ名。pageid とは同時に使用できません。

pageid

言語を変更したいページのページID。title とは同時に使用できません。

型: 整数
lang

Language code of the language to change the page to. Use default to reset the page to the wiki's default content language.

この変数は必須です。
値 (次の値のいずれか1つ): ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、ak、aln、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、ban、ban-bali、bar、bbc、bbc-latn、bcc、bci、bcl、be、be-tarask、bg、bgn、bh、bho、bi、bjn、blk、bm、bn、bo、bpy、bqi、br、brh、bs、btm、bto、bug、bxr、ca、cbk-zam、cdo、ce、ceb、ch、chr、chy、ckb、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、default、din、diq、dsb、dtp、dty、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、eo、es、es-formal、et、eu、ext、fa、fat、ff、fi、fit、fj、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、ha、hak、haw、he、hi、hif、hif-latn、hil、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、kg、khw、ki、kiu、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mdf、mg、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mwl、my、myv、mzn、na、nah、nan、nap、nb、nds、nds-nl、ne、new、nia、niu、nl、nl-informal、nmz、nn、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、pa、pag、pam、pap、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、qug、rgn、rif、rm、rmc、rmy、rn、ro、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shn、shy、shy-latn、si、sjd、sje、sk、skr、skr-arab、sl、sli、sm、sma、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uz、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、wa、war、wls、wo、wuu、xal、xh、xmf、xsy、yi、yo、yrl、yue、za、zea、zgh、zh、zh-cn、zh-hans、zh-hant、zh-hk、zh-mo、zh-my、zh-sg、zh-tw、zu
reason

変更の理由。

tags

Change tags to apply to the log entry resulting from this action.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=stashedit

  • このモジュールは内部的または不安定です。動作が予告なく変更される場合があります。
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Prepare an edit in shared cache.

This is intended to be used via AJAX from the edit form to improve the performance of the page save.

パラメーター:
その他一般パラメーターが利用可能です。
title

編集されているページのページ名。

この変数は必須です。
section

節識別子です。先頭の節の場合は 0、新しい節の場合は newを指定します。

sectiontitle

新しい節の名前です。

text

ページの本文。

stashedtexthash

Page content hash from a prior stash to use instead.

summary

Change summary.

既定値: (空)
contentmodel

新しいコンテンツのコンテンツモデル。

この変数は必須です。
値 (次の値のいずれか1つ): Scribunto、css、javascript、json、sanitized-css、text、unknown、wikibase-item、wikibase-property、wikitext
contentformat

Content serialization format used for the input text.

この変数は必須です。
値 (次の値のいずれか1つ): application/json、application/octet-stream、application/unknown、application/vnd.php.serialized、application/x-binary、text/css、text/javascript、text/plain、text/unknown、text/x-wiki、unknown/unknown
baserevid

Revision ID of the base revision.

この変数は必須です。
型: 整数
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=tag

(main | tag)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

個々の版または記録項目に対しタグの追加または削除を行います。

パラメーター:
その他一般パラメーターが利用可能です。
rcid

One or more recent changes IDs from which to add or remove the tag.

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

One or more revision IDs from which to add or remove the tag.

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

One or more log entry IDs from which to add or remove the tag.

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

追加するタグ。手動で定義されたタグのみ追加可能です。

値 (| または別の文字列で区切る):
remove

Tags to remove. Only tags that are either manually defined or completely undefined can be removed.

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

変更の理由。

既定値: (空)
tags

Tags to apply to the log entry that will be created as a result of this action.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
例:
版ID 123に vandalism タグを理由を指定せずに追加する
api.php?action=tag&revid=123&add=vandalism&token=123ABC [サンドボックスで開く]
Wrongly applied という理由で spam タグを 記録項目ID 123 から取り除く
api.php?action=tag&logid=123&remove=spam&reason=Wrongly+applied&token=123ABC [サンドボックスで開く]

action=templatedata

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

TemplateData 拡張機能によって保存されたデータを取得します。

パラメーター:
その他一般パラメーターが利用可能です。
includeMissingTitles

Return data about titles even if they are missing or lack TemplateData. By default titles are only returned if they exist and have TemplateData.

型: 真偽値 (詳細)
doNotIgnoreMissingTitles
廃止予定です。

Return data about titles even if they are missing or lack TemplateData. By default (for backwards compatibility) titles are only returned if they exist and have TemplateData.

型: 真偽値 (詳細)
lang

この言語に地域化された値を返します。既定では、すべてのサポートされている翻訳が返されます。

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
現在の利用者のウォッチリストにあるすべてのページを取得します。
wblistentityusage
Returns all pages that use the given entity IDs.
wbsearch
内部で使用。 Searches for entities using labels and aliases.
値 (次の値のいずれか1つ): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsbacklinkscategoriescategorymembersdeletedrevisionsduplicatefilesembeddedinexturlusagefileusageimagesimageusageiwbacklinkslangbacklinkslinkslinksherepageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangesredirectsrevisionssearchtemplatestranscludedinwatchlistwatchlistrawwblistentityusagewbsearch
redirects

titles, pageids, および revids, および 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.

型: 真偽値 (詳細)
例:
Template:StubTemplate:ExampleのTemplateDataを返します。テンプレートが存在しないか存在してもTemplateDataがない場合は結果が返されます。
api.php?action=templatedata&titles=Template:Stub|Template:Example&includeMissingTitles=1 [サンドボックスで開く]
Return TemplateData for Template:Stub and Template:Example, with no results if the templates do not exist or do exist but have no TemplateData
api.php?action=templatedata&titles=Template:Stub|Template:Example [サンドボックスで開く]

action=unblock

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

利用者のブロックを解除します。

パラメーター:
その他一般パラメーターが利用可能です。
id

解除するブロックのID (list=blocksで取得できます)。user とは同時に使用できません。

型: 整数
user

ブロックを解除する利用者。idとは同時に使用できません。

型: 利用者名、IP、IP範囲 および 利用者ID(例: #12345)のいずれかを使った利用者
userid
廃止予定です。

Specify user=#ID instead.

型: 整数
reason

ブロック解除の理由。

既定値: (空)
tags

ブロック記録の項目に適用する変更タグ。

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
例:
ブロックID #105 を解除する。
api.php?action=unblock&id=105 [サンドボックスで開く]
Sorry Bob という理由で利用者 Bob のブロックを解除する。
api.php?action=unblock&user=Bob&reason=Sorry%20Bob [サンドボックスで開く]

action=undelete

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

削除されたページの版を復元します。

削除された版の一覧 (タイムスタンプを含む) はprop=deletedrevisionsに、また削除されたファイルのID一覧はlist=filearchiveで見つけることができます。

パラメーター:
その他一般パラメーターが利用可能です。
title

復元するページ名。

この変数は必須です。
reason

復元の理由。

既定値: (空)
tags

削除記録の項目に適用する変更タグ。

値 (| または別の文字列で区切る):
timestamps

復元する版のタイムスタンプ。timestampsfileids の両方が空の場合、すべての版が復元されます。

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

IDs of the file revisions to restore. If both timestamps and fileids are empty, all will be restored.

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

Undelete all revisions of the associated talk page, if any.

型: 真偽値 (詳細)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

値 (次の値のいずれか1つ): nochange、preferences、unwatch、watch
既定: preferences
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=unlinkaccount

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Remove a linked third-party account from the current user.

パラメーター:
その他一般パラメーターが利用可能です。
request

Use this authentication request, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=unlink.

この変数は必須です。
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
例:
Attempt to remove the current user's link for the provider associated with FooAuthenticationRequest.
api.php?action=unlinkaccount&request=FooAuthenticationRequest&token=123ABC [サンドボックスで開く]

action=upload

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Upload a file, or get the status of pending uploads.

Several methods are available:

  • Upload file contents directly, using the file parameter.
  • Upload the file in pieces, using the filesize, chunk, and offset parameters.
  • Have the MediaWiki server fetch a file from a URL, using the url parameter.
  • Complete an earlier upload that failed due to warnings, using the filekey parameter.

Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when sending the file.

パラメーター:
その他一般パラメーターが利用可能です。
filename

対象のファイル名。

comment

アップロードのコメント。新規ファイルのアップロードで text が指定されていない場合、初期ページテキストとしても使用されます。

既定値: (空)
tags

Change tags to apply to the upload log entry and file page revision.

値 (| または別の文字列で区切る):
text

新しいファイルの初期ページテキスト。

watch
廃止予定です。

このページをウォッチする。

型: 真偽値 (詳細)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

値 (次の値のいずれか1つ): nochange、preferences、watch
既定: preferences
ignorewarnings

あらゆる警告を無視する。

型: 真偽値 (詳細)
file

File contents.

ファイルアップロードには multipart/form-data を使って投稿してください。
url

ファイル取得元のURL.

filekey

Key that identifies a previous upload that was stashed temporarily.

sessionkey
廃止予定です。

Same as filekey, maintained for backward compatibility.

stash

If set, the server will stash the file temporarily instead of adding it to the repository.

型: 真偽値 (詳細)
filesize

Filesize of entire upload.

型: 整数
値は0以上104,857,600以下です。
offset

Offset of chunk in bytes.

型: 整数
値の下限は必ず0以上です。
chunk

Chunk contents.

ファイルアップロードには multipart/form-data を使って投稿してください。
async

Make potentially large file operations asynchronous when possible.

型: 真偽値 (詳細)
checkstatus

Only fetch the upload status for the given file key.

型: 真偽値 (詳細)
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=userrights

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

利用者の所属グループを変更します。

パラメーター:
その他一般パラメーターが利用可能です。
user

利用者。

型: 利用者名 および 利用者ID(例: #12345)のいずれかを使った利用者
userid
廃止予定です。

代わりに user=#ID を指定してください。

型: 整数
add

利用者をこのグループに追加するか、既にメンバーの場合は、そのグループのメンバーシップの有効期限を更新します。

値 (| または別の文字列で区切る): bot、bureaucrat、interface-admin、suppress、sysop
expiry

Expiry timestamps. May be relative (e.g. 5 months or 2 weeks) or absolute (e.g. 2014-09-18T12:34:56Z). If only one timestamp is set, it will be used for all groups passed to the add parameter. Use infinite, indefinite, infinity, or never for a never-expiring user group.

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

Remove the user from these groups.

値 (| または別の文字列で区切る): bot、bureaucrat、interface-admin、suppress、sysop
reason

変更の理由。

既定値: (空)
token

action=query&meta=tokens から取得した「userrights」トークン

互換性のために、ウェブUIで使用されるトークンも受理されます。

この変数は必須です。
tags

Change tags to apply to the entry in the user rights log.

値 (| または別の文字列で区切る):
例:
Add user FooBot to group bot, and remove from groups sysop and bureaucrat.
api.php?action=userrights&user=FooBot&add=bot&remove=sysop|bureaucrat&token=123ABC [サンドボックスで開く]
Add the user with ID 123 to group bot, and remove from groups sysop and bureaucrat.
api.php?action=userrights&userid=123&add=bot&remove=sysop|bureaucrat&token=123ABC [サンドボックスで開く]
利用者 SometimeSysop を 1ヶ月間 sysop グループに追加する。
api.php?action=userrights&user=SometimeSysop&add=sysop&expiry=1%20month&token=123ABC [サンドボックスで開く]

action=validatepassword

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

Validate a password against the wiki's password policies.

Validity is reported as Good if the password is acceptable, Change if the password may be used for login but must be changed, or Invalid if the password is not usable.

パラメーター:
その他一般パラメーターが利用可能です。
password

Password to validate.

この変数は必須です。
user

Username, for use when testing account creation. The named user must not exist.

型: 利用者名 および 利用者ID(例: #12345)のいずれかを使った利用者
email

Email address, for use when testing account creation.

realname

Real name, for use when testing account creation.

action=watch

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: MediaWiki
  • ライセンス: GPL-2.0-or-later

現在の利用者のウォッチリストにページを追加/除去します。

パラメーター:
その他一般パラメーターが利用可能です。
title
廃止予定です。

The page to (un)watch. Use titles instead.

unwatch

If set the page will be unwatched rather than watched.

型: 真偽値 (詳細)
continue

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

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
現在の利用者のウォッチリストにあるすべてのページを取得します。
wblistentityusage
Returns all pages that use the given entity IDs.
wbsearch
内部で使用。 Searches for entities using labels and aliases.
値 (次の値のいずれか1つ): allcategoriesalldeletedrevisionsallfileusagesallimagesalllinksallpagesallredirectsallrevisionsalltransclusionsbacklinkscategoriescategorymembersdeletedrevisionsduplicatefilesembeddedinexturlusagefileusageimagesimageusageiwbacklinkslangbacklinkslinkslinksherepageswithpropprefixsearchprotectedtitlesquerypagerandomrecentchangesredirectsrevisionssearchtemplatestranscludedinwatchlistwatchlistrawwblistentityusagewbsearch
redirects

titles, pageids, および revids, および 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.

型: 真偽値 (詳細)
token

action=query&meta=tokens から取得した「watch」トークン

この変数は必須です。

action=wbavailablebadges

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

Queries available badge items.

action=wbcreateclaim

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Creates Wikibase claims.

パラメーター:
その他一般パラメーターが利用可能です。
entity

主張を追加するエンティティのID

この変数は必須です。
snaktype

The type of the snak

この変数は必須です。
値 (次の値のいずれか1つ): novalue、somevalue、value
property

ID of the snaks property

この変数は必須です。
value

Value of the snak when creating a claim with a snak that has a value

summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)

action=wbcreateredirect

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Creates Entity redirects.

パラメーター:
その他一般パラメーターが利用可能です。
from

リダイレクトを作成するエンティティID

この変数は必須です。
to

リダイレクト先のエンティティID

この変数は必須です。
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)

action=wbeditentity

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Creates a single new Wikibase entity and modifies it with serialised information.

パラメーター:
その他一般パラメーターが利用可能です。
id

The identifier for the entity, including the prefix. Use either id or site and title together.

new

If set, a new entity will be created. Set this to the type of the entity to be created. It is not allowed to have this set when id is also set.

値 (次の値のいずれか1つ): item、property
site

An identifier for the site on which the page resides. Use together with title to make a complete sitelink.

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

Title of the page to associate. Use together with site to make a complete sitelink.

baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)
data

The serialized object that is used as the data source. A newly created entity will be assigned an 'id'.

この変数は必須です。
clear

If set, the complete entity is emptied before proceeding. The entity will not be saved before it is filled with the "data", possibly with parts excluded.

型: 真偽値 (詳細)
例:
Create a new empty item, return full entity structure
api.php?action=wbeditentity&new=item&data={} [サンドボックスで開く]
Create a new item and set labels for de and en
api.php?action=wbeditentity&new=item&data={"labels":{"de":{"language":"de","value":"de-value"},"en":{"language":"en","value":"en-value"}}} [サンドボックスで開く]
Create a new property containing the json data, return full entity structure
api.php?action=wbeditentity&new=property&data={"labels":{"en-gb":{"language":"en-gb","value":"Propertylabel"}},"descriptions":{"en-gb":{"language":"en-gb","value":"Propertydescription"}},"datatype":"string"} [サンドボックスで開く]
Clear all data from entity with ID Q999999998
api.php?action=wbeditentity&clear=true&id=Q999999998&data={} [サンドボックスで開く]
Clear all data from entity with ID Q999999998 and set a label for en
api.php?action=wbeditentity&clear=true&id=Q999999998&data={"labels":{"en":{"language":"en","value":"en-value"}}} [サンドボックスで開く]
Adds a label without overwriting it if it already exists
api.php?action=wbeditentity&id=Q999999998&data={"labels":[{"language":"no","value":"Bar","add":""}]} [サンドボックスで開く]
ラベルを除去
api.php?action=wbeditentity&id=Q999999998&data={"labels":[{"language":"en","value":"Foo","remove":""}]} [サンドボックスで開く]
Sets sitelink for nowiki, overwriting it if it already exists
api.php?action=wbeditentity&id=Q999999998&data={"sitelinks":{"nowiki":{"site":"nowiki","title":"København"}}} [サンドボックスで開く]
Sets description for nb, overwriting it if it already exists
api.php?action=wbeditentity&id=Q999999998&data={"descriptions":{"nb":{"language":"nb","value":"nb-Description-Here"}}} [サンドボックスで開く]
Creates a new claim on the item for the property P56 and a value of "ExampleString"
api.php?action=wbeditentity&id=Q999999998&data={"claims":[{"mainsnak":{"snaktype":"value","property":"P56","datavalue":{"value":"ExampleString","type":"string"}},"type":"statement","rank":"normal"}]} [サンドボックスで開く]
Removes the claims from the item with the provided GUIDs
api.php?action=wbeditentity&id=Q999999998&data={"claims":[{"id":"Q999999998$D8404CDA-25E4-4334-AF13-A3290BCD9C0F","remove":""},{"id":"Q999999998$GH678DSA-01PQ-28XC-HJ90-DDFD9990126X","remove":""}]} [サンドボックスで開く]
Sets the claim with the GUID to the value of the claim
api.php?action=wbeditentity&id=Q999999998&data={"claims":[{"id":"Q999999998$GH678DSA-01PQ-28XC-HJ90-DDFD9990126X","mainsnak":{"snaktype":"value","property":"P56","datavalue":{"value":"ChangedString","type":"string"}},"type":"statement","rank":"normal"}]} [サンドボックスで開く]

action=wbformatentities

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

Formats entity IDs to HTML.

The language can be specified with the global uselang parameter.

パラメーター:
その他一般パラメーターが利用可能です。
ids

The entity IDs to format.

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

action=wbformatvalue

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

Formats DataValues.

パラメーター:
その他一般パラメーターが利用可能です。
generate

The desired output format to generate.

値 (次の値のいずれか1つ): text/html、text/html; disposition=verbose、text/html; disposition=verbose-preview、text/plain、text/x-wiki
既定: text/x-wiki
datavalue

The data to format. This has to be the JSON serialization of a DataValue object.

この変数は必須です。
datatype

The value's data type. This is distinct from the value's type

値 (次の値のいずれか1つ): commonsMedia、entity-schema、external-id、geo-shape、globe-coordinate、math、monolingualtext、quantity、string、tabular-data、time、url、wikibase-item、wikibase-property
property

Property ID the data value belongs to, should be used instead of the datatype parameter.

options

The options the formatter should use. Provided as a JSON object.

action=wbgetclaims

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

Gets Wikibase claims.

パラメーター:
その他一般パラメーターが利用可能です。
entity

ID of the entity from which to obtain claims. Required unless claim GUID is provided.

property

Optional filter to only return claims with a main snak that has the specified property.

claim

A GUID identifying the claim. Required unless entity is provided. The GUID is the globally unique identifier for a claim, e.g. "q42$D8404CDA-25E4-4334-AF13-A3290BCD9C0F".

rank

Optional filter to return only the claims that have the specified rank

値 (次の値のいずれか1つ): deprecated、normal、preferred
props

Some parts of the claim are returned optionally. This parameter controls which ones are returned.

値 (| または別の文字列で区切る): references
既定: references

action=wbgetentities

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

Gets the data for multiple Wikibase entities.

パラメーター:
その他一般パラメーターが利用可能です。
ids

The IDs of the entities to get the data from

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

Identifier for the site on which the corresponding page resides. Use together with title, but only give one site for several titles or several sites for one title.

値 (| または別の文字列で区切る):
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
titles

The title of the corresponding page. Use together with sites, but only give one site for several titles or several sites for one title.

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

転送を解決するかどうか。 「no」が設定された場合、転送は削除されたエンティティのように扱われます。

値 (次の値のいずれか1つ): no、yes
既定: yes
props

The names of the properties to get back from each entity. Will be further filtered by any languages given.

値 (| または別の文字列で区切る): aliases、claims、datatype、descriptions、info、labels、sitelinks、sitelinks/urls
既定: info|sitelinks|aliases|labels|descriptions|claims|datatype
languages

By default the internationalized values are returned in all available languages. This parameter allows filtering these down to one or more languages by providing one or more language codes.

値 (| または別の文字列で区切る): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
languagefallback

Apply language fallback for languages defined in the languages parameter, with the current context of API call.

型: 真偽値 (詳細)
normalize

Try to normalize the page title against the client site. This only works if exactly one site and one page have been given.

型: 真偽値 (詳細)
sitefilter

Filter sitelinks in entities to those with these site IDs.

値 (| または別の文字列で区切る):
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
例:
Get entities with ID Q42 with all available attributes in all available languages
api.php?action=wbgetentities&ids=Q42 [サンドボックスで開く]
Get entities with ID P17 with all available attributes in all available languages
api.php?action=wbgetentities&ids=P17 [サンドボックスで開く]
Get entities with IDs Q42 and P17 with all available attributes in all available languages
api.php?action=wbgetentities&ids=Q42|P17 [サンドボックスで開く]
Get entities with ID Q42 with all available attributes in English language
api.php?action=wbgetentities&ids=Q42&languages=en [サンドボックスで開く]
Get entities with ID Q42 with all available attributes in any possible fallback language for the ii language
api.php?action=wbgetentities&ids=Q42&languages=ii&languagefallback= [サンドボックスで開く]
Get entities with ID Q42 showing all labels in all available languages
api.php?action=wbgetentities&ids=Q42&props=labels [サンドボックスで開く]
Get entities with IDs P17 and P3 showing only datatypes
api.php?action=wbgetentities&ids=P17|P3&props=datatype [サンドボックスで開く]
Get entities with ID Q42 showing all aliases in English language
api.php?action=wbgetentities&ids=Q42&props=aliases&languages=en [サンドボックスで開く]
Get entities with IDs Q1 and Q42 showing descriptions in English, German and French languages
api.php?action=wbgetentities&ids=Q1|Q42&props=descriptions&languages=en|de|fr [サンドボックスで開く]
Get the item for page "Berlin" on the site "enwiki", with language attributes in English language
api.php?action=wbgetentities&sites=enwiki&titles=Berlin&languages=en [サンドボックスで開く]
Get the item for page "Berlin" on the site "enwiki" after normalizing the title from "berlin"
api.php?action=wbgetentities&sites=enwiki&titles=berlin&normalize= [サンドボックスで開く]
Get the sitelinks for item Q42
api.php?action=wbgetentities&ids=Q42&props=sitelinks [サンドボックスで開く]
Get entities with ID Q42 showing only sitelinks from "enwiki"
api.php?action=wbgetentities&ids=Q42&sitefilter=enwiki [サンドボックスで開く]

action=wblinktitles

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Associates two pages on two different wikis with a Wikibase item.

パラメーター:
その他一般パラメーターが利用可能です。
tosite

An identifier for the site on which the page resides. Use together with totitle to make a complete sitelink.

この変数は必須です。
値 (次の値のいずれか1つ):
totitle

Title of the page to associate. Use together with tosite to make a complete sitelink.

この変数は必須です。
fromsite

An identifier for the site on which the page resides. Use together with fromtitle to make a complete sitelink.

この変数は必須です。
値 (次の値のいずれか1つ):
fromtitle

Title of the page to associate. Use together with fromsite to make a complete sitelink.

この変数は必須です。
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".

型: 真偽値 (詳細)

action=wbmergeitems

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Merges multiple items.

パラメーター:
その他一般パラメーターが利用可能です。
fromid

統合元の ID

この変数は必須です。
toid

統合先の ID

この変数は必須です。
ignoreconflicts

Array of elements of the item to ignore conflicts for. Can only contain values of "description", "sitelink" and "statement"

値 (| または別の文字列で区切る): description、sitelink、statement
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

版に適用するタグを変更します。

値 (| または別の文字列で区切る):
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".

型: 真偽値 (詳細)
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。

action=wbparsevalue

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

Parses values using a ValueParser.

パラメーター:
その他一般パラメーターが利用可能です。
datatype

Datatype of the value to parse. Determines the parser to use.

値 (次の値のいずれか1つ): commonsMedia、entity-schema、external-id、geo-shape、globe-coordinate、math、monolingualtext、quantity、string、tabular-data、time、url、wikibase-item、wikibase-property
property

Property ID the value to parse belongs to. Determines the parser to use.

parser
廃止予定です。

ID of the ValueParser to use. Deprecated. Use the datatype parameter instead.

値 (次の値のいずれか1つ): commonsMedia、entity-schema、external-id、geo-shape、globe-coordinate、globecoordinate、math、monolingualtext、null、quantity、string、tabular-data、time、url、wikibase-entityid、wikibase-item、wikibase-property
values

The values to parse

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

The options the parser should use. Provided as a JSON object.

validate

Whether to additionally verify the data passed in.

型: 真偽値 (詳細)
例:
Parse a plain string into a StringValue object.
api.php?action=wbparsevalue&datatype=string&values=foo|bar [サンドボックスで開く]
Parse 1994-02-08 to a TimeValue object with a precision of 9 (year).
api.php?action=wbparsevalue&datatype=time&values=1994-02-08&options={"precision":9} [サンドボックスで開く]
Parse 1994-02-08 to a TimeValue object with a precision of 14 (second) with validation enabled, resulting in a validation failure.
api.php?action=wbparsevalue&datatype=time&validate&values=1994-02-08&options={"precision":14} [サンドボックスで開く]
Parse foo into an object of whatever datatype P123 is, with validation enabled, potentially resulting in a validation failure depending on P123's datatype's expected input.
api.php?action=wbparsevalue&property=P123&validate&values=foo [サンドボックスで開く]

action=wbremoveclaims

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Removes Wikibase claims.

パラメーター:
その他一般パラメーターが利用可能です。
claim

One GUID or several (pipe-separated) GUIDs identifying the claims to be removed. All claims must belong to the same entity.

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

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".

型: 真偽値 (詳細)

action=wbremovequalifiers

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Removes a qualifier from a claim.

パラメーター:
その他一般パラメーターが利用可能です。
claim

A GUID identifying the claim from which to remove qualifiers

この変数は必須です。
qualifiers

Snak hashes of the qualifiers to remove

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

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)
例:
Remove qualifier with hash "1eb8793c002b1d9820c833d234a1b54c8e94187e" from claim with GUID of "Q999999998$D8404CDA-25E4-4334-AF13-A3290BCD9C0F"
api.php?action=wbremovequalifiers&claim=Q999999998$D8404CDA-25E4-4334-AF13-A3290BCD9C0F&qualifiers=1eb8793c002b1d9820c833d234a1b54c8e94187e&token=foobar&baserevid=7201010 [サンドボックスで開く]

action=wbremovereferences

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Removes one or more references of the same statement.

パラメーター:
その他一般パラメーターが利用可能です。
statement

A GUID identifying the statement for which a reference is being set

この変数は必須です。
references

The hashes of the references that should be removed

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

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)
例:
Remove reference with hash "455481eeac76e6a8af71a6b493c073d54788e7e9" from the statement with GUID of "Q999999998$D8404CDA-25E4-4334-AF13-A3290BCD9C0F"
api.php?action=wbremovereferences&statement=Q999999998$D8404CDA-25E4-4334-AF13-A3290BCD9C0F&references=455481eeac76e6a8af71a6b493c073d54788e7e9&token=foobar&baserevid=7201010 [サンドボックスで開く]

action=wbsearchentities

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

Searches for entities using labels and aliases.

Returns a label and description for the entity in the user language if possible. Returns details of the matched term. The matched term text is also present in the aliases key if different from the display label.

パラメーター:
その他一般パラメーターが利用可能です。
search

Search for this text.

この変数は必須です。
language

Search in this language. This only affects how entities are selected, not the language in which the results are returned: this is controlled by the "uselang" parameter.

この変数は必須です。
値 (次の値のいずれか1つ): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
strictlanguage

Whether to disable language fallback

型: 真偽値 (詳細)
type

Search for this type of entity.

値 (次の値のいずれか1つ): item、property
既定: item
limit

Maximal number of results

型: 整数または max
値は0以上50以下です。
既定: 7
continue

Offset where to continue a search

型: 整数
既定: 0
props

Return these properties for each entity.

値 (| または別の文字列で区切る): url
既定: url
profile

The search profile to use.

default
The default profile, suitable for most purposes.
値 (次の値のいずれか1つ): default
既定: default
例:
Search for "abc" in English language, with defaults for type and limit
api.php?action=wbsearchentities&search=abc&language=en [サンドボックスで開く]
Search for "abc" in English language with a limit of 50
api.php?action=wbsearchentities&search=abc&language=en&limit=50 [サンドボックスで開く]
Search for "abc" in English language with a limit of 2 and an offset of 2
api.php?action=wbsearchentities&search=abc&language=en&limit=2&continue=2 [サンドボックスで開く]
Search for "alphabet" in English language for type property
api.php?action=wbsearchentities&search=alphabet&language=en&type=property [サンドボックスで開く]
Search for "alphabet" in English language omitting url parameter
api.php?action=wbsearchentities&search=alphabet&language=en&props= [サンドボックスで開く]
Search for "Q1234" in English language, to match the entity ID.
api.php?action=wbsearchentities&search=Q1234&language=en [サンドボックスで開く]

action=wbsetaliases

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Sets the aliases for a Wikibase entity.

パラメーター:
その他一般パラメーターが利用可能です。
id

The identifier for the entity, including the prefix. Use either id or site and title together.

new

If set, a new entity will be created. Set this to the type of the entity you want to create.

値 (次の値のいずれか1つ): item、property
site

An identifier for the site on which the page resides. Use together with title to make a complete sitelink.

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

Title of the page to associate. Use together with site to make a complete sitelink.

baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)
add

List of aliases to add (can be combined with remove)

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

List of aliases to remove (can be combined with add)

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

A list of aliases that will replace the current list (cannot be combined with neither add nor remove)

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

The language for which to set the aliases

この変数は必須です。
値 (次の値のいずれか1つ): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
例:
Set the English aliases for the entity with ID Q999999998 to Foo and Bar
api.php?action=wbsetaliases&language=en&id=Q999999998&set=Foo|Bar [サンドボックスで開く]
Add Foo and Bar to the list of English aliases for the entity with ID Q999999998
api.php?action=wbsetaliases&language=en&id=Q999999998&add=Foo|Bar [サンドボックスで開く]
Remove Foo and Bar from the list of English aliases for the entity with ID Q999999998
api.php?action=wbsetaliases&language=en&id=Q999999998&remove=Foo|Bar [サンドボックスで開く]
Remove Foo from the list of English aliases for the entity with ID Q999999998 while adding Bar to it
api.php?action=wbsetaliases&language=en&id=Q999999998&remove=Foo&add=Bar [サンドボックスで開く]

action=wbsetclaim

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Creates or updates an entire Statement or Claim.

パラメーター:
その他一般パラメーターが利用可能です。
claim

Statement or Claim serialization

この変数は必須です。
index

The index within the entity's list of statements to move the statement to. Optional. Be aware that when setting an index that specifies a position not next to a statement whose main snak does not feature the same property, the whole group of statements whose main snaks feature the same property is moved. When not provided, an existing statement will stay in place while a new statement will be appended to the last one whose main snak features the same property.

型: 整数
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)
ignoreduplicatemainsnak

If this is true, and the entity already has a claim with the same main snak as the claim being sent in the request, then the request is ignored

型: 真偽値 (詳細)
例:
Set the claim with the given ID to property P1 with a string value of "City"
api.php?action=wbsetclaim&claim={"id":"Q999999998$5627445f-43cb-ed6d-3adb-760e85bd17ee","type":"claim","mainsnak":{"snaktype":"value","property":"P1","datavalue":{"value":"City","type":"string"}}} [サンドボックスで開く]
Set the claim with the given ID to property P1 with a string value of "City" and move the claim to the topmost position within the entity's subgroup of claims that feature the main snak property P1. In addition, move the whole subgroup to the top of all subgroups aggregated by property.
api.php?action=wbsetclaim&claim={"id":"Q999999998$5627445f-43cb-ed6d-3adb-760e85bd17ee","type":"claim","mainsnak":{"snaktype":"value","property":"P1","datavalue":{"value":"City","type":"string"}}}&index=0 [サンドボックスで開く]
Set the Statement with the given ID to Property P1 with a string value of "City" and set the Statement's References to a single Reference featuring the string value "The Economy of Cities" assigned to the Property P2.
api.php?action=wbsetclaim&claim={"id":"Q999999998$5627445f-43cb-ed6d-3adb-760e85bd17ee","type":"statement","mainsnak":{"snaktype":"value","property":"P1","datavalue":{"value":"City","type":"string"}},"references":[{"snaks":{"P2":[{"snaktype":"value","property":"P2","datavalue":{"value":"The Economy of Cities","type":"string"}}]},"snaks-order":["P2"]}],"rank":"normal"} [サンドボックスで開く]

action=wbsetclaimvalue

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Sets the value of a Wikibase claim.

パラメーター:
その他一般パラメーターが利用可能です。
claim

A GUID identifying the claim

この変数は必須です。
value

The value to set the DataValue of the main snak of the claim to

snaktype

The type of the snak

この変数は必須です。
値 (次の値のいずれか1つ): novalue、somevalue、value
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)

action=wbsetdescription

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Sets a description for a single Wikibase entity.

パラメーター:
その他一般パラメーターが利用可能です。
id

The identifier for the entity, including the prefix. Use either id or site and title together.

new

If set, a new entity will be created. Set this to the type of the entity you want to create.

値 (次の値のいずれか1つ): item、property
site

An identifier for the site on which the page resides. Use together with title to make a complete sitelink.

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

Title of the page to associate. Use together with site to make a complete sitelink.

baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)
language

Language of the description

この変数は必須です。
値 (次の値のいずれか1つ): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
value

The value to set for the description

例:
Set the string "An encyclopedia that everyone can edit" for page with ID "Q999999998" as a description in English language
api.php?action=wbsetdescription&id=Q999999998&language=en&value=An%20encyclopedia%20that%20everyone%20can%20edit [サンドボックスで開く]
Set the string "An encyclopedia that everyone can edit" as a description in English language for page with a sitelink to enwiki:Wikipedia
api.php?action=wbsetdescription&site=enwiki&title=Wikipedia&language=en&value=An%20encyclopedia%20that%20everyone%20can%20edit [サンドボックスで開く]

action=wbsetlabel

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Sets a label for a single Wikibase entity.

パラメーター:
その他一般パラメーターが利用可能です。
id

The identifier for the entity, including the prefix. Use either id or site and title together.

new

If set, a new entity will be created. Set this to the type of the entity you want to create.

値 (次の値のいずれか1つ): item、property
site

An identifier for the site on which the page resides. Use together with title to make a complete sitelink.

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

Title of the page to associate. Use together with site to make a complete sitelink.

baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)
language

ラベルの言語

この変数は必須です。
値 (次の値のいずれか1つ): aa、ab、abs、ace、ady、ady-cyrl、aeb、aeb-arab、aeb-latn、af、agq、ak、aln、als、alt、am、ami、an、ang、anp、ar、arc、arn、arq、ary、arz、as、ase、ast、atj、av、avk、awa、ay、az、azb、ba、bag、ban、ban-bali、bar、bas、bat-smg、bax、bbc、bbc-latn、bbj、bcc、bci、bcl、be、be-tarask、be-x-old、bfd、bg、bgn、bh、bho、bi、bjn、bkc、bkh、bkm、blk、bm、bn、bo、bpy、bqi、bqz、br、brh、bs、btm、bto、bug、bxr、byv、ca、cak、cbk-zam、cdo、ce、ceb、ch、cho、chr、chy、ckb、cnh、co、cps、cr、crh、crh-cyrl、crh-latn、cs、csb、cu、cv、cy、da、dag、de、de-at、de-ch、de-formal、din、diq、dsb、dtp、dty、dua、dv、dz、ee、egl、el、eml、en、en-ca、en-gb、en-us、eo、es、es-419、es-formal、et、eto、etu、eu、ewo、ext、fa、fat、ff、fi、fit、fiu-vro、fj、fkv、fmp、fo、fon、fr、frc、frp、frr、fur、fy、ga、gaa、gag、gan、gan-hans、gan-hant、gcr、gd、gl、gld、glk、gn、gom、gom-deva、gom-latn、gor、got、gpe、grc、gsw、gu、guc、gur、guw、gv、gya、ha、hak、haw、he、hi、hif、hif-latn、hil、ho、hr、hrx、hsb、hsn、ht、hu、hu-formal、hy、hyw、hz、ia、id、ie、ig、ii、ik、ike-cans、ike-latn、ilo、inh、io、is、isu、it、iu、ja、jam、jbo、jut、jv、ka、kaa、kab、kbd、kbd-cyrl、kbp、kcg、kea、ker、kg、khw、ki、kiu、kj、kjp、kk、kk-arab、kk-cn、kk-cyrl、kk-kz、kk-latn、kk-tr、kl、km、kn、ko、ko-kp、koi、kr、krc、kri、krj、krl、ks、ks-arab、ks-deva、ksf、ksh、ksw、ku、ku-arab、ku-latn、kum、kv、kw、ky、la、lad、lb、lbe、lem、lez、lfn、lg、li、lij、liv、lki、lld、lmo、ln、lns、lo、loz、lrc、lt、ltg、lus、luz、lv、lzh、lzz、mad、mai、map-bms、mcn、mcp、mdf、mg、mh、mhr、mi、min、mk、ml、mn、mni、mnw、mo、mos、mr、mrh、mrj、ms、ms-arab、mt、mua、mus、mwl、my、myv、mzn、na、nah、nan、nan-hani、nap、nb、nds、nds-nl、ne、new、ng、nge、nia、niu、nl、nl-informal、nla、nmg、nmz、nn、nnh、nnz、no、nod、nov、nqo、nrm、nso、nv、ny、nyn、nys、oc、ojb、olo、om、or、os、osa-latn、ota、pa、pag、pam、pap、pap-aw、pcd、pcm、pdc、pdt、pfl、pi、pih、pl、pms、pnb、pnt、prg、ps、pt、pt-br、pwn、qu、quc、qug、rgn、rif、rm、rmc、rmf、rmy、rn、ro、roa-rup、roa-tara、rsk、ru、rue、rup、ruq、ruq-cyrl、ruq-latn、rw、rwr、ryu、sa、sah、sat、sc、scn、sco、sd、sdc、sdh、se、se-fi、se-no、se-se、sei、ses、sg、sgs、sh、shi、shi-latn、shi-tfng、shn、shy、shy-latn、si、simple、sjd、sje、sju、sk、skr、skr-arab、sl、sli、sm、sma、smj、smn、sms、sn、so、sq、sr、sr-ec、sr-el、srn、sro、srq、ss、st、stq、sty、su、sv、sw、syl、szl、szy、ta、tay、tcy、tdd、te、tet、tg、tg-cyrl、tg-latn、th、ti、tk、tl、tly、tly-cyrl、tn、to、tpi、tr、tru、trv、ts、tt、tt-cyrl、tt-latn、tum、tvu、tw、ty、tyv、tzm、udm、ug、ug-arab、ug-latn、uk、ur、uz、uz-cyrl、uz-latn、ve、vec、vep、vi、vls、vmf、vmw、vo、vot、vro、vut、wa、war、wes、wls、wo、wuu、wya、xal、xh、xmf、xsy、yas、yat、yav、ybb、yi、yo、yrl、yue、za、zea、zgh、zh、zh-classical、zh-cn、zh-hans、zh-hant、zh-hk、zh-min-nan、zh-mo、zh-my、zh-sg、zh-tw、zh-yue、zu
value

値の言語

例:
Set the string "Wikimedia" for page with ID "Q999999998" as a label in English language and report it as pretty printed JSON.
api.php?action=wbsetlabel&id=Q999999998&language=en&value=Wikimedia&format=jsonfm [サンドボックスで開く]
Set the English language label to "Earth" for the item with sitelink enwiki => "Earth".
api.php?action=wbsetlabel&site=enwiki&title=Earth&language=en&value=Earth [サンドボックスで開く]

action=wbsetqualifier

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Creates a qualifier or sets the value of an existing one.

パラメーター:
その他一般パラメーターが利用可能です。
claim

A GUID identifying the claim for which a qualifier is being set

この変数は必須です。
property

ID of the snaks property. Should only be provided when creating a new qualifier or changing the property of an existing one

value

The new value of the qualifier. Should only be provided for PropertyValueSnak qualifiers

snaktype

The type of the snak. Should only be provided when creating a new qualifier or changing the type of an existing one

値 (次の値のいずれか1つ): novalue、somevalue、value
snakhash

The hash of the snak to modify. Should only be provided for existing qualifiers

summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "ボット".

型: 真偽値 (詳細)

action=wbsetreference

  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Creates a reference or sets the value of an existing one.

パラメーター:
その他一般パラメーターが利用可能です。
statement

A GUID identifying the statement for which a reference is being set

この変数は必須です。
snaks

The snaks to set the reference to. JSON object with property IDs pointing to arrays containing the snaks for that property

この変数は必須です。
snaks-order

The order of the snaks. JSON array of property ID strings

reference

A hash of the reference that should be updated. Optional. When not provided, a new reference is created

index

The index within the statement's list of references where to move the reference to. Optional. When not provided, an existing reference will stay in place while a new reference will be appended.

型: 整数
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".

型: 真偽値 (詳細)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: WikibaseClient
  • ライセンス: GPL-2.0-or-later

Associates a page on a wiki with a Wikibase item or removes an already made such association.

パラメーター:
その他一般パラメーターが利用可能です。
id

The identifier for the entity, including the prefix. Use either id or site and title together.

new

If set, a new entity will be created. Set this to the type of the entity you want to create.

値 (次の値のいずれか1つ): item、property
site

An identifier for the site on which the page resides. Use together with title to make a complete sitelink.

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

Title of the page to associate. Use together with site to make a complete sitelink.

baserevid

The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.

型: 整数
summary

Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.

tags

Change tags to apply to the revision.

値 (| または別の文字列で区切る):
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".

型: 真偽値 (詳細)
linksite

The identifier of the site on which the page to link resides

この変数は必須です。
値 (次の値のいずれか1つ):
linktitle

The title of the page to link. If this parameter is an empty string or both linktitle and badges are not set, the link will be removed.

badges

The IDs of items to be set as badges. They will replace the current ones. If this parameter is not set, the badges will not be changed

値 (| または別の文字列で区切る):
例:
Add a sitelink to the English page "Hydrogen" to the item with ID Q999999998, if the sitelink does not exist
api.php?action=wbsetsitelink&id=Q999999998&linksite=enwiki&linktitle=Hydrogen [サンドボックスで開く]
Add a sitelink to the English page "Hydrogen" to the item with ID Q999999998, if the sitelink does not exist. Also appends "Loves Oxygen" to the edit summary.
api.php?action=wbsetsitelink&id=Q999999998&linksite=enwiki&linktitle=Hydrogen&summary=Loves%20Oxygen [サンドボックスで開く]
Add a sitelink to the German page "Wasserstoff" to the item that is linked with the English page "Hydrogen", if the sitelink does not exist
api.php?action=wbsetsitelink&site=enwiki&title=Hydrogen&linksite=dewiki&linktitle=Wasserstoff [サンドボックスで開く]
Remove the German sitelink from the item
api.php?action=wbsetsitelink&site=enwiki&title=Hydrogen&linksite=dewiki [サンドボックスで開く]
Add a sitelink to the Polish page "Wodór" to the item that is linked with the English page "Hydrogen", with one badge pointing to the item with ID "Q149"
api.php?action=wbsetsitelink&site=enwiki&title=Hydrogen&linksite=plwiki&linktitle=Wodór&badges=Q149 [サンドボックスで開く]
Change badges for the link to the Polish page from the item with ID Q999999998 to two badges pointing to the items with IDs "Q2" and "Q149" without providing the link title
api.php?action=wbsetsitelink&id=Q999999998&linksite=plwiki&badges=Q2|Q149 [サンドボックスで開く]
Change the link to the Polish page from the item with ID Q999999998 without changing badges
api.php?action=wbsetsitelink&id=Q999999998&linksite=plwiki&linktitle=Warszawa [サンドボックスで開く]
Change the link to the Polish page from the item with ID Q999999998 and remove all of its badges
api.php?action=wbsetsitelink&id=Q999999998&linksite=plwiki&linktitle=Wodór&badges= [サンドボックスで開く]

action=webapp-manifest

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

Returns a webapp manifest.

format=json

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

データを JSON 形式で出力します。

パラメーター:
その他一般パラメーターが利用可能です。
callback

指定すると、指定した関数呼び出しで出力をラップします。安全のため、利用者固有のデータはすべて制限されます。

utf8

指定すると、大部分の非 ASCII 文字 (すべてではありません) を、16 進のエスケープ シーケンスに置換する代わりに UTF-8 として符号化します。formatversion1 でない場合は既定です。

型: 真偽値 (詳細)
ascii

指定すると、すべての非ASCII文字を16進エスケープにエンコードします。formatversion1 の場合既定です。

型: 真偽値 (詳細)
formatversion

Output formatting

1
Backwards-compatible format (XML-style booleans, * keys for content nodes, etc.).
2
Modern format.
latest
Use the latest format (currently 2), may change without warning.
値 (次の値のいずれか1つ): 1、2、latest
既定: 1

format=jsonfm

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

データを JSON 形式 (HTML に埋め込んだ形式) で出力します。

パラメーター:
その他一般パラメーターが利用可能です。
wrappedhtml

Return the pretty-printed HTML and associated ResourceLoader modules as a JSON object.

型: 真偽値 (詳細)
callback

指定すると、指定した関数呼び出しで出力をラップします。安全のため、利用者固有のデータはすべて制限されます。

utf8

指定すると、大部分の非 ASCII 文字 (すべてではありません) を、16 進のエスケープ シーケンスに置換する代わりに UTF-8 として符号化します。formatversion1 でない場合は既定です。

型: 真偽値 (詳細)
ascii

指定すると、すべての非ASCII文字を16進エスケープにエンコードします。formatversion1 の場合既定です。

型: 真偽値 (詳細)
formatversion

Output formatting

1
(説明なし)
2
(説明なし)
latest
(説明なし)
値 (次の値のいずれか1つ): 1、2、latest
既定: 1

format=none

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

何も出力しません。

format=php

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

データを PHP のシリアル化した形式で出力します。

パラメーター:
その他一般パラメーターが利用可能です。
formatversion

Output formatting

1
Backwards-compatible format (XML-style booleans, * keys for content nodes, etc.).
2
Modern format.
latest
Use the latest format (currently 2), may change without warning.
値 (次の値のいずれか1つ): 1、2、latest
既定: 1

format=phpfm

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

データを PHP のシリアル化した形式 (HTML に埋め込んだ形式) で出力します。

パラメーター:
その他一般パラメーターが利用可能です。
wrappedhtml

Return the pretty-printed HTML and associated ResourceLoader modules as a JSON object.

型: 真偽値 (詳細)
formatversion

Output formatting

1
(説明なし)
2
(説明なし)
latest
(説明なし)
値 (次の値のいずれか1つ): 1、2、latest
既定: 1

format=rawfm

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

データをデバッグ要素付きで JSON 形式 (HTML に埋め込んだ形式) で出力します。

パラメーター:
その他一般パラメーターが利用可能です。
wrappedhtml

Return the pretty-printed HTML and associated ResourceLoader modules as a JSON object.

型: 真偽値 (詳細)

format=xml

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

データを XML 形式で出力します。

パラメーター:
その他一般パラメーターが利用可能です。
xslt

指定すると、XSLスタイルシートとして名付けられたページを追加します。値は、必ず、MediaWiki 名前空間の、ページ名の末尾が .xsl でのタイトルである必要があります。

includexmlnamespace

指定すると、XML 名前空間を追加します。

型: 真偽値 (詳細)

format=xmlfm

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

データを XML 形式 (HTML に埋め込んだ形式) で出力します。

パラメーター:
その他一般パラメーターが利用可能です。
wrappedhtml

Return the pretty-printed HTML and associated ResourceLoader modules as a JSON object.

型: 真偽値 (詳細)
xslt

指定すると、XSLスタイルシートとして名付けられたページを追加します。値は、必ず、MediaWiki 名前空間の、ページ名の末尾が .xsl でのタイトルである必要があります。

includexmlnamespace

指定すると、XML 名前空間を追加します。

型: 真偽値 (詳細)

データ型

Input to MediaWiki should be NFC-normalized UTF-8. MediaWiki may attempt to convert other input, but this may cause some operations (such as edits with MD5 checks) to fail.

Parameters that take multiple values are normally submitted with the values separated using the pipe character, e.g. param=value1|value2 or param=value1%7Cvalue2. If a value must contain the pipe character, use U+001F (Unit Separator) as the separator and prefix the value with U+001F, e.g. param=%1Fvalue1%1Fvalue2.

Some parameter types in API requests need further explanation:

boolean

真偽値のパラメーターはHTMLのチェックボックスのように機能します: パラメーターが指定されていれば、値に関わらず、真であると推定します。偽の値については、パタメーター自体を省略してください。

expiry

期間は、相対値(例えば、5 months2 weeks)または絶対値(例えば、2014-09-18T12:34:56Z)のどちらかで指定します。期間を定めない場合は、infinite, indefinite, infinity または never を用います。

timestamp

Timestamps may be specified in several formats, see the Timestamp library input formats documented on mediawiki.org for details. ISO 8601 date and time is recommended: 2001-01-15T14:56:00Z. Additionally, the string now may be used to specify the current timestamp.

Templated parameters

Templated parameters support cases where an API module needs a value for each value of some other parameter. For example, if there were an API module to request fruit, it might have a parameter fruits to specify which fruits are being requested and a templated parameter {fruit}-quantity to specify how many of each fruit to request. An API client that wants 1 apple, 5 bananas, and 20 strawberries could then make a request like fruits=apples|bananas|strawberries&apples-quantity=1&bananas-quantity=5&strawberries-quantity=20.

クレジット

API の開発者:

  • Yuri Astrakhan (作成者、2006年9月-2007年9月の主任開発者)
  • Roan Kattouw (2007年9月-2009年の主任開発者)
  • Victor Vasiliev
  • Bryan Tong Minh
  • Sam Reed
  • Brad Jorsch (2013年-2020年の主任開発者)

コメント、提案、質問は mediawiki-api@lists.wikimedia.org にお送りください。 バグはこちらへご報告ください: https://phabricator.wikimedia.org/