MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=allimages (ai)
- This module requires read rights.
- This module can be used as a generator.
Enumerate all images sequentially.
Parameters:
- aifrom
The image title to start enumerating from. Can only be used with aisort=name.
- aito
The image title to stop enumerating at. Can only be used with aisort=name.
- aiprefix
Search for all image titles that begin with this value. Can only be used with aisort=name.
- aiminsize
Limit to images with at least this many bytes.
- aimaxsize
Limit to images with at most this many bytes.
- ailimit
How many images in total to return.
- No more than 500 (5,000 for bots) allowed.
- Default: 10
- aidir
The direction in which to list.
- One value: ascending, descending
- Default: ascending
- aisha1
SHA1 hash of image. Overrides aisha1base36.
- aisha1base36
SHA1 hash of image in base 36 (used in MediaWiki).
- aiprop
What image information to get:
- timestamp
- Adds timestamp for the uploaded version
- user
- Adds the user who uploaded the image version
- userid
- Add the user ID that uploaded the image version
- comment
- Comment on the version
- parsedcomment
- Parse the comment on the version
- canonicaltitle
- Adds the canonical title of the image file
- url
- Gives URL to the image and the description page
- size
- Adds the size of the image in bytes, its height and its width. Page count and duration are added if applicable
- dimensions
- Alias for size
- sha1
- Adds SHA-1 hash for the image
- mime
- Adds MIME type of the image
- thumbmime
- Adds MIME type of the image thumbnail (requires url and param urlwidth)
- mediatype
- Adds the media type of the image
- metadata
- Lists Exif metadata for the version of the image
- commonmetadata
- Lists file format generic metadata for the version of the image
- extmetadata
- Lists formatted metadata combined from multiple sources. Results are HTML formatted.
- bitdepth
- Adds the bit depth of the version
- uploadwarning
- Used by the Special:Upload page to get information about an existing file. Not intended for use outside MediaWiki core
- Values (separate with |): timestamp, user, userid, comment, parsedcomment, canonicaltitle, url, size, dimensions, sha1, mime, thumbmime, mediatype, metadata, commonmetadata, extmetadata, bitdepth, uploadwarning
- Default: timestamp|url
- aimime
What MIME types to search for, e.g. image/jpeg.
Examples:
- Simple Use Show a list of images starting at the letter "B"
- api.php?action=query&list=allimages&aifrom=B
- Using as Generator Show info about 4 images starting at the letter "T"
- api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo