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.
- Source: MediaWiki
- License: GPL-2.0-or-later
Enumerate all images sequentially.
- aisort
Property to sort by.
- One of the following values: name, timestamp
- Default: name
- aidir
The direction in which to list.
- One of the following values: ascending, descending, newer, older
- Default: ascending
- 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.
- aicontinue
Kui saadaval on rohkem tulemusi, kasuta seda jätkamiseks.
- aistart
The timestamp to start enumerating from. Can only be used with aisort=timestamp.
- Type: timestamp (allowed formats)
- aiend
The timestamp to end enumerating. Can only be used with aisort=timestamp.
- Type: timestamp (allowed formats)
- aiprop
Millist teavet faili kohta hankida:
- timestamp
- Lisab üles laaditud versiooni ajatempli.
- user
- Lisab kasutaja, kes iga failiversiooni üles laadis.
- userid
- Lisab iga failiversiooni üles laadinud kasutaja identifikaatori.
- comment
- Versioonikommentaar.
- parsedcomment
- Parsib versioonikommentaari.
- canonicaltitle
- Lisab faili kanoonilise pealkirja.
- url
- Tagastab faili ja kirjelduslehekülje internetiaadressi.
- size
- Lisab faili suuruse baitides, kõrguse ja laiuse ning lehekülgede arvu, kui see on kohane.
- dimensions
- Elemendi "size" rööpnimi.
- sha1
- Lisab faili SHA-1 räsiväärtuse.
- mime
- Lisab faili MIME tüübi.
- mediatype
- Lisab faili meediatüübi.
- metadata
- Loetleb failiversiooni Exif-metaandmed.
- commonmetadata
- Loetleb failiversiooni vormingu üldised metaandmed.
- extmetadata
- Loetleb mitme allika vormindatud ühendmetaandmed. Tulemused on HTML-vormingus.
- bitdepth
- Lisab versiooni bitisügavuse.
- badfile
- Adds whether the file is on the MediaWiki:Bad image list
- Values (separate with | or alternative): timestamp, user, userid, comment, parsedcomment, canonicaltitle, url, size, dimensions, sha1, mime, mediatype, metadata, commonmetadata, extmetadata, bitdepth, badfile
- Default: timestamp|url
- 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.
- Type: integer
- aimaxsize
Limit to images with at most this many bytes.
- Type: integer
- aisha1
SHA1 hash of image. Overrides aisha1base36.
- aisha1base36
SHA1 hash of image in base 36 (used in MediaWiki).
- aiuser
Only return files uploaded by this user. Can only be used with aisort=timestamp. Cannot be used together with aifilterbots.
- Type: user name
- aifilterbots
How to filter files uploaded by bots. Can only be used with aisort=timestamp. Cannot be used together with aiuser.
- One of the following values: all, bots, nobots
- Default: all
- aimime
What MIME types to search for, e.g. image/jpeg.
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- ailimit
How many images in total to return.
- No more than 500 (5000 for bots) allowed.
- Type: integer or max
- Default: 10
- Show a list of files starting at the letter B.
- api.php?action=query&list=allimages&aifrom=B [open in sandbox]
- Show a list of recently uploaded files, similar to Special:NewFiles.
- api.php?action=query&list=allimages&aiprop=user|timestamp|url&aisort=timestamp&aidir=older [open in sandbox]
- Show a list of files with MIME type image/png or image/gif
- api.php?action=query&list=allimages&aimime=image/png|image/gif [open in sandbox]
- Show info about 4 files starting at the letter T.
- api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo [open in sandbox]