Wikimedia Commons API
Usage : commonsapi.php?image=IMAGENAME
IMAGENAME must not have an Image: prefix
Optional parameters:
- &thumbwidth=XX returns a URL to a thumbnail maximal XX pixel wide
- &thumbheight=YY returns a URL to a thumbnail maximal YY pixel high (requires thumbwidth)
- &languages=en|de|default returns only the languages for the listed codes; separate with "|" (default: all languages)
- &forcehtml deprecated, no longer needed (descriptions are now always returned as HTML)
- &versions adds information about all former versions of the file
- &meta adds meta information that is stored with the file (e.g., EXIF data)
- &sdc adds Structured Data on Commons (captions and "depicts" statements)
- &format=xml|json selects the output format (default and fallback: xml)
- &callback=FUNCTION wraps JSON output as JSONP (only with &format=json)
Examples :
Note: All returned attributes and texts are entity-encoded ("'<>& are replaced with XML entities).
(You want to help making this API better?
Data source for license information is here.
Bugs and feature requests go here.)