Call it
curl https://api.peume.com/v1/call/instagram-hashtag-posts-by-hashtag-name-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "cat",
"feed_type": "top"
}
}'const res = await fetch("https://api.peume.com/v1/call/instagram-hashtag-posts-by-hashtag-name-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "cat",
"feed_type": "top"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/instagram-hashtag-posts-by-hashtag-name-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "cat",
"feed_type": "top"
}
},
)
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: instagram-hashtag-posts-by-hashtag-name-2.
Parameters
keywordRequiredstringHashtag keyword (without #)
Example: cat
feed_typestringFeed type: top, recent, or reels
Example: top
pagination_tokenstringPagination token
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 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 reelsSearch Instagram posts by hashtagSearches Instagram posts by hashtag with cursor pagination.
