Collects one Instagram post directly from the platform and returns its full metadata and engagement counters as of the call. Suited to tracking individual pieces of content rather than whole accounts.
GET
/api/v1/instagram/realtime/media/detailQuota usage: Each successful request to this endpoint deducts 100 quota units from your plan.
Request Parameters
Required Parameters
| Name | In | Type | Description |
|---|---|---|---|
media_code | query | string | media code example: DB1OqFnxIZM |
Response Fields
| Name | Type | Description |
|---|---|---|
success | boolean | Success |
code | integer | Code |
message | string | Message |
data | object | - |
data.author_user_id | string | user_id |
data.author_username | string | username |
data.media_id | string | media ID |
data.media_code | string | media code |
data.create_at | string | Publish time |
data.cover_url | string | Cover image URL |
data.resources | array<string> | Resource URLs |
data.description | string | Content |
data.accessibility_caption | string | Accessibility captions |
data.media_url | string | Post URL |
data.media_type | integer | Post type: 1 = single image, 2 = video, 8 = carousel |
data.duration | number | Video duration in seconds |
data.like_count | integer | Like count |
data.comment_count | integer | Comment count |
data.play_count | integer | Video plays |
Try It
https://openapi.scdata.cc/api/v1/instagram/realtime/media/detail
Select an API key from Dashboard
Add an API key before sending a request.Go to Dashboard
Query Params
media_code*cURL Example
bash
curl -X GET "https://openapi.scdata.cc/api/v1/instagram/realtime/media/detail?media_code=DB1OqFnxIZM" \-H "Authorization: YOUR_API_KEY"
Response Example (200 application/json)
json
{"success": true,"code": 200,"message": "Request successful","data": {"author_user_id": "string","author_username": "string","author_nickname": "string","media_id": "string","media_code": "string","create_at": "2019-08-24T14:15:22.123Z","cover_url": "string","resources": ["string"],"description": "string","accessibility_caption": "string","media_url": "string","media_type": 0,"duration": 0,"like_count": 0,"comment_count": 0,"play_count": 0}}
Use Cases
- Sponsored content reporting — Pull the final numbers of a sponsored post for a campaign wrap-up report.
- Viral content monitoring — Re-check a fast-growing post at intervals to measure how quickly it spreads.