Call it
curl https://api.peume.com/v1/call/instagram-collect-public-lists \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "x_followers",
"target": "your target",
"limit": 100
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-collect-public-lists", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"type": "x_followers",
"target": "your target",
"limit": 100
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-collect-public-lists",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"type": "x_followers",
"target": "your target",
"limit": 100
}
},
)
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-collect-public-lists.
Parameters
typeRequiredstringx_followers · x_following · github_user_followers · github_user_following · github_repo_stargazers · github_repo_contributors · ins_followers · ins_following · tiktok_followers · tiktok_following · web2list
targetRequiredstringAccount handle, GitHub repository, repository URL, or web page URL, up to 2,048 characters. X followers and following: an X username (sama). Instagram: an Instagram username (openai). TikTok: a TikTok username (openai). GitHub user followers and following: a GitHub username (torvalds). GitHub repo stargazers and contributors: owner/repo or a repository URL (openai/openai-python). web2list: a public HTTP or HTTPS page URL.
instructionstringlimitintegerExample: 100
