Call it
curl https://api.peume.com/v1/call/instagram-following-list \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 50,
"username": "your username"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-following-list", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 50,
"username": "your username"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-following-list",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 50,
"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-list.
Parameters
querystringOptional, for `following_list`: searches within the account's following list and returns only the accounts whose name or username matches, using Instagram's matching, 1 to 100 characters. No match returns an empty list. Pass the same query again when paging.
limitintegerMaximum number of results, 1 to 500 (default 50). For some actions it counts pages or items per parent rather than final rows.
Example: 50
usernameRequiredstringIdentifies an Instagram account handle without the @ symbol or as a full profile URL. Used by profile, persona, user_posts, and reels to fetch account data, and by engagement to work out one account's engagement. The followers action returns only total follower counts, whereas followers_list and following_list return account lists.
