Call it
curl https://api.peume.com/v1/call/instagram-search-following \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query",
"username": "your username"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-search-following", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query",
"username": "your username"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-search-following",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query",
"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-search-following.
Parameters
routestringUpstream source to run on; omit for "kiwi". kiwi ($0.0022 per call, 100% uptime); chameleon ($0.0022 per call, 99.9% uptime). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
kiwi · chameleon
queryRequiredstringName or username text to look for among the accounts this user follows (e.g. skin). Instagram matches loosely, so close matches are returned too.
usernameRequiredstringThe Instagram username whose following list to search, without the leading @ (e.g. moogooskincare).
