WordPress · JSON Structure

Wordpress Media Item Structure

A WordPress media attachment object

Type: object Properties: 10
CMSContent ManagementOpen-SourceWordPress

MediaItem is a JSON Structure definition published by WordPress, describing 10 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id date status type mime_type title alt_text source_url media_type media_details

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/wordpress/refs/heads/main/json-structure/wordpress-media-item-structure.json",
  "name": "MediaItem",
  "description": "A WordPress media attachment object",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "description": "Unique identifier for the media item",
      "example": 45
    },
    "date": {
      "type": "datetime",
      "description": "The date the media was uploaded",
      "example": "2026-03-10T09:00:00"
    },
    "status": {
      "type": "string",
      "description": "A named status for the object",
      "example": "inherit"
    },
    "type": {
      "type": "string",
      "description": "Type of Post for the object",
      "example": "attachment"
    },
    "mime_type": {
      "type": "string",
      "description": "The MIME type of the attachment",
      "example": "image/jpeg"
    },
    "title": {
      "$ref": "#/components/schemas/RenderedContent"
    },
    "alt_text": {
      "type": "string",
      "description": "Alternative text to display when attachment is not displayed",
      "example": "A sample photo"
    },
    "source_url": {
      "type": "string",
      "description": "URL to the original attachment file",
      "example": "https://example.com/wp-content/uploads/2026/03/photo.jpg"
    },
    "media_type": {
      "type": "string",
      "description": "Attachment type (image, video, audio, etc.)",
      "enum": [
        "image",
        "file"
      ],
      "example": "image"
    },
    "media_details": {
      "type": "object",
      "description": "Details about the media file including sizes",
      "properties": {
        "width": {
          "type": "int32",
          "example": 1920
        },
        "height": {
          "type": "int32",
          "example": 1080
        },
        "file": {
          "type": "string",
          "example": "2026/03/photo.jpg"
        }
      }
    }
  }
}

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/wordpress-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.