MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

prop=videoinfo (vi)

(main | query | videoinfo)
  • This module requires read rights.
  • Source: TimedMediaHandler
  • License: GPL-2.0+

Extends imageinfo to include video source (derivatives) information

Parameters:
viprop

What video information to get:

timestamp
Adds timestamp for the uploaded version.
user
Adds the user who uploaded the video version.
userid
Add the user ID that uploaded the video version.
comment
Comment on the version.
parsedcomment
Parse the comment on the version.
canonicaltitle
Adds the canonical title of the video file.
url
Gives URL to the video and the description page.
size
Adds the size of the video 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 video.
mime
Adds MIME type of the video.
thumbmime
Adds MIME type of the video thumbnail (requires url and param viurlwidth).
mediatype
Adds the media type of the video.
metadata
Lists Exif metadata for the version of the video.
commonmetadata
Lists file format generic metadata for the version of the video.
extmetadata
Lists formatted metadata combined from multiple sources. Results are HTML formatted.
archivename
Adds the filename of the archive version for non-latest versions.
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.
derivatives
Adds an array of the different format and quality versions of an audio or video file that are available.
Values (separate with |): timestamp, user, userid, comment, parsedcomment, canonicaltitle, url, size, dimensions, sha1, mime, thumbmime, mediatype, metadata, commonmetadata, extmetadata, archivename, bitdepth, uploadwarning, derivatives
Default: timestamp|user
vilimit

How many file revisions to return per file.

No more than 500 (5,000 for bots) allowed.
Type: integer or max
Default: 1
vistart

Timestamp to start listing from.

Type: timestamp (allowed formats)
viend

Timestamp to stop listing at.

Type: timestamp (allowed formats)
viurlwidth

If viprop=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
Default: -1
viurlheight

Similar to viurlwidth.

Type: integer
Default: -1
viurlparam

A handler specific parameter string. For example, PDFs might use page15-100px. viurlwidth must be used and be consistent with viurlparam.

Default: (empty)
vicontinue

When more results are available, use this to continue.