Facebook · Schema
InstagramMedia
An Instagram media object.
Fortune 500AdvertisingContent PublishingMessagingSocial MediaSocial Networking
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Media ID. |
| caption | string | Media caption. |
| media_type | string | Media type. |
| media_url | string | URL to the media. |
| permalink | string | Permanent URL to the media. |
| timestamp | string | Publishing timestamp. |
| like_count | integer | Number of likes. |
| comments_count | integer | Number of comments. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/facebook/refs/heads/main/json-schema/instagram-api-instagram-media-schema.json",
"title": "InstagramMedia",
"description": "An Instagram media object.",
"type": "object",
"properties": {
"id": { "type": "string", "description": "Media ID." },
"caption": { "type": "string", "description": "Media caption." },
"media_type": { "type": "string", "description": "Media type.", "enum": ["IMAGE", "VIDEO", "CAROUSEL_ALBUM"] },
"media_url": { "type": "string", "format": "uri", "description": "URL to the media." },
"permalink": { "type": "string", "format": "uri", "description": "Permanent URL to the media." },
"timestamp": { "type": "string", "format": "date-time", "description": "Publishing timestamp." },
"like_count": { "type": "integer", "description": "Number of likes." },
"comments_count": { "type": "integer", "description": "Number of comments." }
}
}