Wikipedia / MediaWiki · JSON Structure

Rest V1 Media Item Structure

media_item schema from Wikimedia REST API

Type: object Properties: 6 Required: 3
Open DataPublic APIsOpen KnowledgeEncyclopediaKnowledge GraphOpen-SourceNon-Profit

media_item is a JSON Structure definition published by Wikipedia / MediaWiki, describing 6 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name type section_id showInGallery caption original

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wikipedia/refs/heads/main/json-structure/rest-v1-media-item-structure.json",
  "name": "media_item",
  "description": "media_item schema from Wikimedia REST API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The file page title"
    },
    "type": {
      "type": "string",
      "enum": [
        "image",
        "video",
        "audio"
      ]
    },
    "section_id": {
      "type": "int32",
      "description": "section ID in which the item is found on the page"
    },
    "showInGallery": {
      "type": "boolean",
      "description": "whether the client should show the file in an image gallery presentation"
    },
    "caption": {
      "type": "object",
      "properties": {
        "html": {
          "type": "string",
          "description": "on-wiki caption for the media item, including all HTML markup"
        },
        "text": {
          "type": "string",
          "description": "plain text of the on-wiki caption for the media item"
        }
      }
    },
    "original": {
      "type": "object",
      "description": "reference to a Mathoid-rendered math formula image",
      "properties": {
        "source": {
          "type": "string",
          "description": "Mathoid image render URL"
        },
        "mime": {
          "type": "string",
          "description": "the Mathoid image mime type"
        }
      }
    }
  },
  "required": [
    "type",
    "section_id",
    "showInGallery"
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/rest-v1-media-item-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.