Call it
curl https://api.peume.com/v1/call/list-instagram-user-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"require_play_counts": false,
"handle": "your handle"
}
}'const res = await fetch("https://api.peume.com/v1/call/list-instagram-user-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"require_play_counts": false,
"handle": "your handle"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-instagram-user-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"require_play_counts": False,
"handle": "your handle"
}
},
)
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: list-instagram-user-posts.
Parameters
trimbooleanSet to true to get a trimmed response
require_play_countsbooleanOnly the literal query value 'true' enables this check. It requires play_count on each returned video post; a real 0 is valid. It does not require ig_play_count or view counts, or counts on photos. Retrying does not guarantee that Instagram will return the missing counts.
Example: false
handleRequiredstringInstagram handle
next_max_idstringCursor to get next page of results.
regionstringTwo-letter country code (ASCII letters, case-insensitive), for example TH. When set, lookup attempts target only that country; Instagram may still not return the requested content. Omit it to keep the usual behavior. Keep the same region on subsequent pages.
