Instagram Post Details
Retrieves an Instagram post by its shortcode. Use it to look up a known post before content review, archiving, comment analysis, or related workflows.
/v1/instagram/get_post_detail_v1
$0.02
- Price
- $0.02 per successful call, Failed calls are free
- Endpoint ID
instagram.get_post_detail_v1
Parameters
-
codestring RequiredThe unique shortcode from the Instagram post URL.
Example
C0AZ5Tjsr1v
Code samples
curl -G "https://api.mofa-ai.com/v1/instagram/get_post_detail_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'code=C0AZ5Tjsr1v'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/instagram/get_post_detail_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"code": "C0AZ5Tjsr1v",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/instagram/get_post_detail_v1");
url.search = new URLSearchParams({
code: "C0AZ5Tjsr1v",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Example response
Request parameters {"code": "C0AZ5Tjsr1v"}
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "instagram.get_post_detail_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"status": false,
"errorMessage": "This post does not exist."
},
"message": null,
"requestId": "e4173b2f629b437f99e0b477966e823b",
"recordTime": "2026-11-08T08:00:02.710795068",
"requestParams": {
"body": null,
"query": {
"code": "C0AZ5Tjsr1v"
}
}
}
}
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
More Instagram endpoints
-
User Profile v1
$0.02Retrieves an Instagram user profile by username. Use it to review a known account before creator research, brand monitoring, or related post analysis.
/v1/instagram/get_user_detail_v1
-
User Profile v2
$0.02Retrieves an Instagram user profile by username. Use it to review a known account before creator research, brand monitoring, or related post analysis.
/v1/instagram/get_user_detail_v2
-
User Published Posts
$0.02Retrieves posts published by an Instagram user with token-based pagination. Use it to browse a known account's post history or continue through subsequent re…
/v1/instagram/get_user_posts_v1
-
Reels Search
$0.02Searches Instagram Reels by keyword or hashtag with token-based pagination. Use it to discover short-form videos, monitor topics, and continue through matchi…
/v1/instagram/search_reels_v1
-
Hashtag Posts Search
$0.02Searches Instagram posts by hashtag with cursor pagination. Use it to explore tagged content, monitor topics, and continue through subsequent result pages.
/v1/instagram/search_hashtag_posts_v1
-
Post Comment List
$0.02Retrieves top-level comments for an Instagram post by shortcode, with cursor pagination and popular or newest sorting. Use it to review audience feedback or…
/v1/instagram/get_post_comments_v1
-
Comment Reply List
$0.02Retrieves replies to a specific Instagram post comment by media and comment IDs, with cursor pagination. Use it to inspect threaded discussion and continue t…
/v1/instagram/get_comment_replies_v1