Home
Wikipedia / MediaWiki
Wikimedia Enterprise Image Structure
Wikimedia Enterprise Image Structure
image schema from Wikimedia Enterprise API spec
Type: object
Properties: 10
Open Data Public APIs Open Knowledge Encyclopedia Knowledge Graph Open Source Non-Profit
image is a JSON Structure definition published by Wikipedia / MediaWiki, describing 10 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
Properties
content_url
identifier
name
width
height
thumbnail
caption
alternative_text
encoding_format
media_type
Meta-schema: https://json-structure.org/meta/core/v0/#
JSON Structure
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/wikipedia/refs/heads/main/json-structure/wikimedia-enterprise-image-structure.json",
"name": "image",
"description": "image schema from Wikimedia Enterprise API spec",
"type": "object",
"properties": {
"content_url": {
"description": "Image URL",
"type": "uri",
"example": "https://upload.wikimedia.org/wikipedia/en/thumb/0/03/Flag_of_Italy.svg/40px-Flag_of_Italy.svg.png"
},
"identifier": {
"type": "uuid",
"description": "Unique identifier for the image",
"example": "6c71e85942c77b40266b6d6150405719897682f4b56989100f7c5de97fa631d0"
},
"name": {
"type": "string",
"description": "Filename of the image",
"example": "./File:Flag_of_Italy.svg"
},
"width": {
"description": "image width in pixels",
"type": "int32",
"example": 156
},
"height": {
"description": "image height in pixels",
"type": "int32",
"example": 255
},
"thumbnail": {
"$ref": "#/components/schemas/thumbnail"
},
"caption": {
"type": "string",
"description": "caption describing the image",
"example": "Flag of Italy"
},
"alternative_text": {
"type": "string",
"description": "Alternative text description of the image for accessibility",
"example": "a flag divided in three vertical sections colored green, white, and red from left to right"
},
"encoding_format": {
"type": "string",
"format": "mime_type",
"description": "MIME type or encoding format of the image, constructed from the url",
"example": "image/png"
},
"media_type": {
"type": "string",
"enum": "unknown, bitmap, drawing, audio, video, multimedia, office, text, executable, archive",
"description": "Mediawiki media type of the image",
"example": "drawing"
}
}
}