Call it
curl https://api.peume.com/v1/call/instagram-post-details-by-shortcode-or-url \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"code_or_url": "DRhvwVLAHAG"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-post-details-by-shortcode-or-url", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"code_or_url": "DRhvwVLAHAG"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-post-details-by-shortcode-or-url",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"code_or_url": "DRhvwVLAHAG"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: instagram-post-details-by-shortcode-or-url.
Parameters
code_or_urlRequiredstringPost shortcode or URL
Example: DRhvwVLAHAG
Other ways to do it
Same job, other sources, cheapest first.
Get a post's content & statsBest sourceGet a post's content & stats. Checks the cheapest source first and moves to the next one until it finds an answer.Instagram post details by post idInstagram: fetch post by id (v1)Instagram post details by post URLInstagram: fetch post by url (v1)Instagram post details by post URLInstagram: fetch post by url v2 (v1)Instagram PostFetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON.Instagram post or reel by URL or shortcodeFetches detailed metadata for a single Instagram post or reel by shortcode or URL.
