Magnus' tools

Commons API

An XML (or JSON) summary of Wikimedia Commons files for re-users: URLs, size, descriptions, author, source, location, categories, and licences with their terms.

Usage

/commonsapi/?image=IMAGENAME, without the File: prefix. Several images are separated by |.

ParameterEffect
thumbwidth=XXAdds the URL of a thumbnail at most XX pixels wide
thumbheight=YY… and at most YY pixels high (requires thumbwidth)
languages=en|de|defaultOnly descriptions in these languages
versionsAdds all former versions of the file
metaAdds the metadata stored in the file, such as EXIF
sdcAdds structured data: captions and “depicts” statements
format=jsonJSON instead of XML
callback=NAMEWith format=json: JSONP

Examples

Licence terms come from Commons:Commons API.