Call it
curl https://api.peume.com/v1/call/instagram-following \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"username": "your username"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-following", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"username": "your username"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-following",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"username": "your username"
}
},
)
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-following.
Parameters
cursorstringOpaque pagination cursor from a previous response's nextCursor. Today every source behind this endpoint returns a single page of about 50 accounts and no continuation cursor, so nextCursor comes back empty and there is no further page to request; this parameter is accepted but has nothing to resume from. Pages can overlap: a page may repeat items an earlier page returned and is billed like any other, so de-duplicate by item id and stop when a page adds no new id.
routestringUpstream source to run on; omit for "chameleon". chameleon ($0.00173 per call, 99.7% uptime); lynx ($0.00188 per call, 97.5% uptime); fox ($0.016 per call, 100% uptime). Output fields only some routes return: private (chameleon, lynx). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input. Route `chameleon` can repeat accounts across pages (four pages of 25 for one profile held 13 repeats) and its page size varies from about 20 to 200 accounts; `lynx` returned about 50 a page with no repeat over 853 accounts.
chameleon · lynx · fox
usernameRequiredstringThe Instagram username, user ID, or profile URL whose following list to fetch (e.g. natgeo).
