Call it
curl https://api.peume.com/v1/call/public-instagram-profile-by-username-bio-followers \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"engine": "instagram_profile",
"profile_id": "examplecom"
}
}'const res = await fetch("https://api.peume.com/v1/call/public-instagram-profile-by-username-bio-followers", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"engine": "instagram_profile",
"profile_id": "examplecom"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/public-instagram-profile-by-username-bio-followers",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"engine": "instagram_profile",
"profile_id": "examplecom"
}
},
)
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: public-instagram-profile-by-username-bio-followers.
Parameters
engineRequiredstringExample: instagram_profile
profile_idRequiredstringInstagram username
Example: examplecom
next_page_tokenstringpagination cursor for posts
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.Profile of an Instagram accountGet one public Instagram account: full name, bio, external link and bio links, follower and post counts and verified flag.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)
