MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

list=allimages (ai)

(main | query | allimages)
  • Denna modul kräver läsrättigheter.
  • Denna modul kan användas som en generator.
  • Source: MediaWiki
  • License: GPL-2.0+

Enumerate all images sequentially.

Parametrar:
aisort

Egenskap att sortera efter.

Ett av följande värden: name, timestamp
Default: name
aidir

Riktningen att lista mot.

Ett av följande värden: 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

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
Lägg till det användar-ID som laddade upp varje filversion.
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.
Värden (separerade med |): timestamp, user, userid, comment, parsedcomment, canonicaltitle, url, size, dimensions, sha1, mime, mediatype, metadata, commonmetadata, extmetadata, bitdepth
Default: timestamp|url
aiprefix

Sök för alla bild titlar som börjar med detta värde. Kan endast användas med aisort=name.

aiminsize

Begränsning på bilder med åtminstone så här många bytes.

Type: integer
aimaxsize

Begränsning på bilder med som mest så här många bytes.

Type: integer
aisha1

SHA1 hash av bild. Åsidosätter aisha1base36.

aisha1base36

SHA1 hash av bild i bas 36 (används i MediaWiki).

aiuser

Returnera enbart filer uppladdade av denna användare. Kan enbart användas med aisort=timestamp. Kan inte användas tillsammans med aifilterbots.

Type: user name
aifilterbots

Hur man filtrerar filer uppladdade av bots. Kan enbart användas med aisort=timestamp. Kan inte användas tillsammans med aiuser.

Ett av följande värden: all, bots, nobots
Default: all
aimime

Vilka MIME-typer du vill söka efter, t.ex. image/jpeg.

Separate values with |. Maximum number of values is 50 (500 for bots).
ailimit

Hur många bilder att returnera totalt.

Inte mer än 500 (5 000 för robotar) tillåts.
Type: integer or max
Default: 10
Examples:
Visa en lista över filer som börjar på bokstaven B.
api.php?action=query&list=allimages&aifrom=B [open in sandbox]
Visa en lista över nyligen överförda filer, ungefär som Special:Nya_filer.
api.php?action=query&list=allimages&aiprop=user|timestamp|url&aisort=timestamp&aidir=older [open in sandbox]
Visa en lista över filer med MIME-typen image/png eller image/gif
api.php?action=query&list=allimages&aimime=image/png|image/gif [open in sandbox]
Visa info om 4 filer som börjar med bokstaven T.
api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo [open in sandbox]