Call it
curl https://api.peume.com/v1/call/search-instagram-posts-by-hashtag-caption-engagement \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hashtag": "makeup",
"date_posted": "last-week",
"media_type": "all",
"cursor": "2"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-instagram-posts-by-hashtag-caption-engagement", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hashtag": "makeup",
"date_posted": "last-week",
"media_type": "all",
"cursor": "2"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-instagram-posts-by-hashtag-caption-engagement",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hashtag": "makeup",
"date_posted": "last-week",
"media_type": "all",
"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-posts-by-hashtag-caption-engagement.
Parameters
hashtagRequiredstringThe hashtag to search for. Include or omit the #.
Example: makeup
date_postedstringOnly return Google-indexed posts found in this relative window.
Example: last-week
media_typestringUse all to search public posts and reels, or reels to only return reels. Defaults to all.
Example: all
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.
