Instagram · JSON Structure

Instagram Graph Api Media Structure

Media schema from Instagram Graph API

Type: object Properties: 14
InstagramMetaPhotosSocial MediaVideosContent Publishing

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

Properties

id caption media_type media_url thumbnail_url permalink shortcode timestamp like_count comments_count is_comment_enabled is_shared_to_feed alt_text username

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/instagram/refs/heads/main/json-structure/instagram-graph-api-media-structure.json",
  "name": "Media",
  "description": "Media schema from Instagram Graph API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "17854360229135492"
    },
    "caption": {
      "type": "string",
      "example": "Beautiful sunset at the beach! #photography"
    },
    "media_type": {
      "type": "string",
      "enum": [
        "IMAGE",
        "VIDEO",
        "CAROUSEL_ALBUM",
        "REELS",
        "STORIES"
      ],
      "example": "IMAGE"
    },
    "media_url": {
      "type": "string",
      "example": "https://scontent.cdninstagram.com/media/example.jpg"
    },
    "thumbnail_url": {
      "type": "string",
      "description": "Thumbnail URL for videos."
    },
    "permalink": {
      "type": "string",
      "example": "https://www.instagram.com/p/ABC123/"
    },
    "shortcode": {
      "type": "string",
      "example": "ABC123"
    },
    "timestamp": {
      "type": "datetime",
      "example": "2026-04-17T12:00:00+0000"
    },
    "like_count": {
      "type": "int32",
      "example": 250
    },
    "comments_count": {
      "type": "int32",
      "example": 15
    },
    "is_comment_enabled": {
      "type": "boolean",
      "example": true
    },
    "is_shared_to_feed": {
      "type": "boolean",
      "example": true
    },
    "alt_text": {
      "type": "string",
      "description": "Alt text for accessibility."
    },
    "username": {
      "type": "string",
      "example": "examplebusiness"
    }
  }
}