Call it
curl https://api.peume.com/v1/call/search-instagram-posts-by-hashtag \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hashtag": "your hashtag",
"endCursor": ""
}
}'const res = await fetch("https://api.peume.com/v1/call/search-instagram-posts-by-hashtag", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hashtag": "your hashtag",
"endCursor": ""
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-instagram-posts-by-hashtag",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hashtag": "your hashtag",
"endCursor": ""
}
},
)
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.
Parameters
hashtagRequiredstringThe hashtag or keyword to search for.
endCursorstringCursor used for retrieving the next page of results.
Example:
Other ways to do it
Same job, other sources, cheapest first.
Posts of an Instagram hashtagList the posts on an Instagram hashtag page with caption, likes, comments, time, author and media type.Instagram hashtag posts by hashtag nameInstagram: fetch hashtag posts (v1)List posts under a hashtagBest sourceList posts under a hashtag. Checks the cheapest source first and moves to the next one until it finds an answer.Search Instagram posts by hashtag — caption, engagementFinds public Instagram posts for a hashtag using Google Search, then returns post details such as caption, play count when available, like count, comment count, owner, and post timInstagram hashtag posts by hashtag nameInstagram: fetch hashtag posts (v2)Instagram Hashtag SearchSearch posts under an Instagram hashtag through a web search index rather than Instagram's own hashtag feed. That is what lets it filter by date and media type and return reels
