Call it
curl https://api.peume.com/v1/call/profile-of-an-instagram-account \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"full_profile": false,
"username": "nasa"
}
}'const res = await fetch("https://api.peume.com/v1/call/profile-of-an-instagram-account", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"full_profile": false,
"username": "nasa"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/profile-of-an-instagram-account",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"full_profile": False,
"username": "nasa"
}
},
)
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: profile-of-an-instagram-account.
Parameters
full_profilebooleandefault false
Example: false
usernameRequiredstringthe account: @name or an instagram.com URL
Example: nasa
Other ways to do it
Same job, other sources, cheapest first.
Get a user's public profileBest sourceGet a user's public profile. Checks the cheapest source first and moves to the next one until it finds an answer.Instagram profile by user idInstagram: fetch user info by id (v1)Instagram profile by user idInstagram: fetch user info by id v2 (v1)Instagram profile by usernamePublic Instagram profile by usernameInstagram profile by usernameInstagram: fetch user info by username v2 (v1)Instagram profile by usernameInstagram: fetch user info by username v3 (v1)
