MediaWiki API ヘルプ

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

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

list=allimages (ai)

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

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

パラメーター:
aisort

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

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

昇順・降順の別。

値 (次の値のいずれか1つ): ascending、descending、newer、older
Default: 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. If the user has been revision deleted, a userhidden property will be returned.
userid
Add the ID of the user that uploaded each file version. If the user has been revision deleted, a userhidden property will be returned.
comment
Comment on the version. If the comment has been revision deleted, a commenthidden property will be returned.
parsedcomment
Parse the comment on the version. If the comment has been revision deleted, a commenthidden property will be returned.
canonicaltitle
Adds the canonical title of the file. If the file has been revision deleted, a filehidden property will be returned.
url
ファイルと説明ページへのURLを提供します。
size
バイト単位でファイルや高さ、幅、ページ数のサイズを追加します(該当する場合)。
dimensions
Alias for size.
sha1
Adds SHA-1 hash for the file. If the file has been revision deleted, a filehidden property will be returned.
mime
ファイルのMIMEタイプを追加します。
mediatype
ファイルのメディアタイプを追加します。
metadata
ファイルのバージョンの Exif メタデータを一覧表示します。
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
バージョンのビット深度を追加します。
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
Default: timestamp|url
aiprefix

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

aiminsize

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

型: 整数
aimaxsize

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

型: 整数
aisha1

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

aisha1base36

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

aiuser

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

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

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

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

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

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

返す画像の総数。

型: 整数または max
The value must be between 1 and 500.
Default: 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 [サンドボックスで開く]