MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=imageinfo (ii)
- このモジュールは読み取りの権限を必要とします。
 - ソース: MediaWiki
 - ライセンス: GPL-2.0-or-later
 
ファイルの情報とアップロード履歴を返します。
- iiprop
 取得するファイル情報:
- 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タイプを追加します。
 - thumbmime
 - 画像サムネイルのMIMEタイプを追加します(url と iiurlwidth パラメータが必須です)。
 - 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.
 - archivename
 - 非最新バージョンのアーカイブバージョンのファイル名を追加します。
 - bitdepth
 - バージョンのビット深度を追加します。
 - 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.
- iilocalonly
 Look only for files in the local repository.
- 型: 真偽値 (詳細)
 
- File:Albert Einstein Head.jpg の現在のバージョンに関する情報を取得する。
 - api.php?action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo [サンドボックスで開く]
 - Fetch information about versions of File:Test.jpg from 2008 and later.
 - api.php?action=query&titles=File:Test.jpg&prop=imageinfo&iilimit=50&iiend=2007-12-31T23:59:59Z&iiprop=timestamp|user|url [サンドボックスで開く]