Call it
curl https://api.peume.com/v1/call/instagram-post-details-by-post-url-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"post_url": "https://www.instagram.com/p/DPwhVB-jo9k/"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-post-details-by-post-url-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"post_url": "https://www.instagram.com/p/DPwhVB-jo9k/"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-post-details-by-post-url-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"post_url": "https://www.instagram.com/p/DPwhVB-jo9k/"
}
},
)
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-post-url-2.
Parameters
post_urlRequiredstringPost URL
Example: https://www.instagram.com/p/DPwhVB-jo9k/
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 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.Instagram post details by shortcode or URLInstagram: fetch post info (v2)
