MediaWiki API ヘルプ
ãã®ãã¼ã¸ã¯èªåçæããã MediaWiki API ã®èª¬æææ¸ãã¼ã¸ã§ãã
èª¬æææ¸ã¨ä¾: https://www.mediawiki.org/wiki/API
prop=imageinfo (ii)
- ãã®ã¢ã¸ã¥ã¼ã«ã¯èªã¿åãã®æ¨©éãå¿ è¦ã¨ãã¾ãã
- Source: MediaWiki
- License: GPL-2.0-or-later
Returns file information and upload history.
- 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.
- No more than 500 (5,000 for bots) allowed.
- 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 [ãµã³ãããã¯ã¹ã§éã]