Call it
curl https://api.peume.com/v1/call/search-instagram-profiles-by-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "fitness coach",
"cursor": "2"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-instagram-profiles-by-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "fitness coach",
"cursor": "2"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-instagram-profiles-by-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "fitness coach",
"cursor": "2"
}
},
)
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: search-instagram-profiles-by-keyword.
Parameters
queryRequiredstringBio or caption keyword/phrase to search for.
Example: fitness coach
cursorstringThe cursor returned by the previous response. It is the next Google results page number and cannot exceed 11; cursor 12 or greater returns a 400 response.
Example: 2
Other ways to do it
Same job, other sources, cheapest first.
Instagram accounts named on creator directory pagesSearch the web for pages that list Instagram creators in a niche (directories, rankings, articles), with the passages that name them.Search users by keywordBest sourceSearch users by keyword. Checks the cheapest source first and moves to the next one until it finds an answer.Search Instagram users by keywordInstagram: search users (v2)Search Instagram users by keywordInstagram: search users (v3)
