MediaWiki API ヘルプ

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

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

list=allimages (ai)

(main | query | allimages)
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールはジェネレーターとして使用できます。
  • Source: MediaWiki
  • License: 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.

aistart

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

Type: timestamp (allowed formats)
aiend

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

Type: timestamp (allowed formats)
aiprop

取得するファイル情報:

;timestamp:Adds timestamp for the uploaded version.

;user:Adds the user who uploaded each file version.

;userid:Add the ID of the user that uploaded each file version.

;comment:Comment on the version.

;parsedcomment:Parse the comment on the version.

;canonicaltitle:Adds the canonical title of the file.

;url:ファイルと説明ページへのURLを提供します。

;size:バイト単位でファイルや高さ、幅、ページ数のサイズを追加します(該当する場合)。

;dimensions:Alias for size.

;sha1:Adds SHA-1 hash for the file.

;mime:ファイルのMIMEタイプを追加します。

;mediatype:ファイルのメディアタイプを追加します。

;metadata:ファイルのバージョンの Exif メタデータを一覧表示します。

;commonmetadata:Lists file format generic metadata for the version of the file.

;extmetadata:Lists formatted metadata combined from multiple sources. Results are HTML formatted.

;bitdepth:バージョンのビット深度を追加します。

;badfile:Adds whether the file is on the MediaWiki:Bad image list

値 (|もしくは別の文字列で区切る): timestamp、user、userid、comment、parsedcomment、canonicaltitle、url、size、dimensions、sha1、mime、mediatype、metadata、commonmetadata、extmetadata、bitdepth、badfile
既定値: timestamp|url
aiprefix

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

aiminsize

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

Type: integer
aimaxsize

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

Type: integer
aisha1

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

aisha1base36

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

aiuser

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

Type: user name
aifilterbots

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

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

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

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

返す画像の総数。

No more than 500 (5,000 for bots) allowed.
Type: integer or max
既定値: 10
例:
B で始まるファイルの一覧を表示する。
api.php?action=query&list=allimages&aifrom=B [サンドボックスで開く]
Special:NewFiles のように、最近アップロードされたファイルの一覧を表示する。
api.php?action=query&list=allimages&aiprop=user|timestamp|url&aisort=timestamp&aidir=older [サンドボックスで開く]
MIMEタイプが image/png または image/gif であるファイルの一覧を表示する
api.php?action=query&list=allimages&aimime=image/png|image/gif [サンドボックスで開く]
T で始まる4つのファイルに関する情報を表示する。
api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo [サンドボックスで開く]