Call it
curl https://api.peume.com/v1/call/instagram-post-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hostVideo": false,
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-post-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hostVideo": false,
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-post-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hostVideo": False,
"url": "your url"
}
},
)
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-2.
Parameters
routestringUpstream source to run on; omit for "quokka". ibex ($0.00045 per call, 83% uptime); quokka ($0.0005 per call, 97.1% uptime); badger ($0.00101 per call, 81.2% uptime); chameleon ($0.0011 per call, 99.6% uptime); giraffe ($0.0012 per call, 98% uptime); lynx ($0.00188 per call, 97.8% uptime). Output fields only some routes return: altText (ibex, quokka); audioId (ibex, badger, chameleon, giraffe, lynx); countsHidden (ibex, badger, chameleon, giraffe, lynx); durationSeconds (chameleon, giraffe, lynx); hasAudio (ibex, badger, chameleon, giraffe, lynx); locationId (ibex, badger, chameleon, giraffe,
ibex · quokka · badger · chameleon · giraffe · lynx
hostVideobooleanSet true to also get the post's video on a hosted MP4 link that plays without an Instagram session. The file is downloaded and stored for you, and the response adds `hostedUrl`, `expiresUtc` and `bytes`. It is charged as an extra on top of the price, and it never changes which source serves you: every source offers it at the same price. A post with no video, or a post that does not exist, is refused with no charge rather than billed for a file that cannot exist. Omit it and nothing is downloaded, nothing is stored, and nothing extra is charged.
Example: false
urlRequiredstringFull Instagram post or reel URL, carrying the media shortcode: /p/, /reel/, /reels/, or /tv/. A profile URL such as https://www.instagram.com/username names no post, so it is rejected instead of charged for an empty result - send that account's handle to instagram.profile, or its posts to instagram.user_posts.
