Get Instagram Post Details (Realtime)

10 endpoints • Base: https://openapi.scdata.cc

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/detail

Quota usage: Each successful request to this endpoint deducts 100 quota units from your plan.

Request Parameters

Required Parameters

NameInTypeDescription
media_codequerystringmedia code
example: DB1OqFnxIZM

Response Fields

NameTypeDescription
successbooleanSuccess
codeintegerCode
messagestringMessage
dataobject-
data.author_user_idstringuser_id
data.author_usernamestringusername
data.media_idstringmedia ID
data.media_codestringmedia code
data.create_atstringPublish time
data.cover_urlstringCover image URL
data.resourcesarray<string>Resource URLs
data.descriptionstringContent
data.accessibility_captionstringAccessibility captions
data.media_urlstringPost URL
data.media_typeintegerPost type: 1 = single image, 2 = video, 8 = carousel
data.durationnumberVideo duration in seconds
data.like_countintegerLike count
data.comment_countintegerComment count
data.play_countintegerVideo 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.

Related Endpoints