GETInstagramPreview (Coming Soon)
/v1/instagram/media/details
Media metadata and counters — Fetch normalized Instagram media metadata
Current Unit Price (Live Catalog)
$0.0020 USD
Required Scope
instagram:read
Parameters
| Name | Location | Type | Description & Constraints |
|---|---|---|---|
| Idempotency-Key | header | string | Optional idempotency key (max 128 characters, scoped to organization + endpoint for 24h). Reusing with different canonical parameters returns 409 IDEMPOTENCY_CONFLICT.
maxLength=128 |
| media_id* | query | string | minLength=1 · maxLength=128 · ex: ig_media_0123456789 |
Code Examples
curl 'https://api.socialapi.tr/v1/instagram/media/details?media_id=ig_media_0123456789' \
-H 'Authorization: Bearer sapi_live_REPLACE_ME'Replace sapi_live_REPLACE_ME with a server-side key. Never expose API keys in browser code.
Response Data Fields
| Field | Type | Required |
|---|---|---|
| synthetic | boolean | Optional |
| id | string | Yes |
| media_type | string | Yes |
| caption | string | Yes |
| like_count | integer (int64) | Yes |
| comment_count | integer (int64) | Yes |
| published_at | string (date-time) | Yes |
Example Response
Sample{
"success": true,
"data": {
"synthetic": true,
"id": "ig_media_0123456789",
"media_type": "CAROUSEL_ALBUM",
"caption": "Synthetic media metadata.",
"like_count": 890,
"comment_count": 42,
"published_at": "2026-01-15T12:00:00Z"
},
"meta": {
"request_id": "req_01syntheticexample",
"platform": "instagram",
"cached": false,
"replayed": false,
"billing": {
"request_id": "2c91b99a-4d7c-4f21-b8b0-1234567890ad",
"amount": "0.0020",
"currency": "USD",
"status": "charged"
}
}
}HTTP Responses
| Status | Meaning |
|---|---|
| 200 | Media details fetched (or idempotent replay; `data` omitted when replay payload retention is disabled) |
| 400 | Validation error (not charged) |
| 401 | Missing or invalid API key (not charged) |
| 402 | Wallet available balance is below endpoint unit price (not charged) |
| 403 | Missing scope, IP allowlist mismatch, suspended organization, disabled endpoint, or CORS denied (not charged) |
| 404 | Social media resource or route not found (not charged) |
| 409 | Idempotency-Key reused with different parameters or request still in progress (not charged) |
| 429 | Key, organization, or platform rate limit exceeded (not charged) |
| 502 | Upstream failure or billing finalization failure (`BILLING_FINALIZATION_FAILED`; data withheld, not charged) |
| 503 | Provider not configured, circuit open, or rate limiter unavailable (fail-closed, not charged) |
| 504 | Upstream provider exceeded deadline before lease expiry (reservation released, not charged) |