Call it
curl https://api.peume.com/v1/call/search-instagram \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"search": "restaurant, restaurant prague",
"searchType": "place"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-instagram", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"search": "restaurant, restaurant prague",
"searchType": "place"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-instagram",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"search": "restaurant, restaurant prague",
"searchType": "place"
}
},
)
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.
Parameters
searchRequiredstringProvide a keyword which will be used to extract Instagram search results. A keyword can be one or more words. To scrape multiple search terms at once, submit them as a comma-separated list.
Example: restaurant, restaurant prague
searchTypestringChoose the type of Instagram page to search for (places, profiles, or hashtags), or `Search popular reels` to scrape trending reels for the keyword.
place · user · hashtag · popular
Example: place
searchLimitintegerSet the maximum number of search results (hashtags, users, or places) you want to scrape. If you set it to 5, you'll get 5 results for each search term you've included.
liveSearchbooleanEnable this option if you want to get data from a live Instagram search. Please note that the dataset will be slightly different than the one produced by standard search.
