Call it
curl https://api.peume.com/v1/call/instagram-post-details-by-url \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"dataset_id": "gd_lk5ns7kz21pck8jpis",
"input": [
{
"url": "https://www.instagram.com/p/DbTY2uSG3Oj/"
}
]
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-post-details-by-url", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"dataset_id": "gd_lk5ns7kz21pck8jpis",
"input": [
{
"url": "https://www.instagram.com/p/DbTY2uSG3Oj/"
}
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-post-details-by-url",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"dataset_id": "gd_lk5ns7kz21pck8jpis",
"input": [
{
"url": "https://www.instagram.com/p/DbTY2uSG3Oj/"
}
]
}
},
)
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-url.
Parameters
dataset_idRequiredstringpinned to the documented 'Instagram - Posts' dataset
gd_lk5ns7kz21pck8jpis
Example: gd_lk5ns7kz21pck8jpis
formatstringjson (default) | ndjson | csv
inputRequiredarrayone object per target — an Instagram post URL
Example: [{"url":"https://www.instagram.com/p/DbTY2uSG3Oj/"}]
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.
