MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
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.
 - 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タイプを追加します。
 - thumbmime
 - 画像サムネイルのMIMEタイプを追加します(url と iiurlwidth パラメータが必須です)。
 - 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.
 - 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
 
- 値 (|もしくは別の文字列で区切る): timestamp、user、userid、comment、parsedcomment、canonicaltitle、url、size、dimensions、sha1、mime、thumbmime、mediatype、metadata、commonmetadata、extmetadata、archivename、bitdepth、uploadwarning、badfile
 - 既定値: timestamp|user
 - iilimit
 How many file revisions to return per file.
- 500(botは5,000)より多くは受け付けません。
 - Type: integer or max
 - 既定値: 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.
- Type: integer
 - 既定値: -1
 - iiurlheight
 Similar to iiurlwidth.
- Type: integer
 - 既定値: -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.
- Type: boolean (details)
 - 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.
- Type: boolean (details)
 
- 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 [サンドボックスで開く]