Ajuda API da MediaWiki
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
- Licença: GPL-2.0+
Enumerate all images sequentially.
- aisort
Property to sort by.
- Um dos seguintes valores: name, timestamp
- Padrão: name
- aidir
The direction in which to list.
- Um dos seguintes valores: ascending, descending, newer, older
- Padrão: 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
When more results are available, use this to continue.
- 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
Which file information to get:
- 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
- Gives URL to the file and the description page.
- size
- Adds the size of the file in bytes and the height, width and page count (if applicable).
- dimensions
- Alias for size.
- sha1
- Adds SHA-1 hash for the file.
- mime
- Adds MIME type of the file.
- mediatype
- Adds the media type of the file.
- metadata
- Lists Exif metadata for the version of the file.
- commonmetadata
- Lists file format generic metadata for the version of the file.
- extmetadata
- Lists formatted metadata combined from multiple sources. Results are HTML formatted.
- bitdepth
- Adds the bit depth of the version.
- Valores (separar com |): timestamp, user, userid, comment, parsedcomment, canonicaltitle, url, size, dimensions, sha1, mime, mediatype, metadata, commonmetadata, extmetadata, bitdepth
- Padrão: 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
Retorna apenas os arquivos enviados por este usuário. Só pode ser usado com aisort=timestamp. Não pode ser usado em conjunto com aifilterbots.
- Type: user name
- aifilterbots
Como filtrar arquivos enviados por bots. Só pode ser usado com aisort=timestamp. Não pode ser usado em conjunto com aiuser.
- Um dos seguintes valores: all, bots, nobots
- Padrão: all
- aimime
Quais tipos MIME pesquisar, ex.: image/jpeg.
- Separe os valores com |. Maximum number of values is 50 (500 for bots).
- ailimit
Quantas imagens retornar.
- No more than 500 (5 000 for bots) allowed.
- Type: integer or max
- Padrão: 10
- Mostra uma lista de arquivos começando com a letra B.
- api.php?action=query&list=allimages&aifrom=B
- Mostra uma lista de arquivos recentemente enviados, semelhante ao Special:NewFiles.
- api.php?action=query&list=allimages&aiprop=user|timestamp|url&aisort=timestamp&aidir=older
- Mostra uma lista de arquivos com o tipo MIME image/png ou image/gif
- api.php?action=query&list=allimages&aimime=image/png|image/gif
- Mostra informações sobre 4 arquivos começando com a letra T.
- api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo