Call it
curl https://api.peume.com/v1/call/track-instagram-hashtag \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hashtags": [],
"resultsType": "posts"
}
}'const res = await fetch("https://api.peume.com/v1/call/track-instagram-hashtag", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hashtags": [],
"resultsType": "posts"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/track-instagram-hashtag",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hashtags": [],
"resultsType": "posts"
}
},
)
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: track-instagram-hashtag.
Parameters
hashtagsRequiredarrayType in or paste the hashtag with or without <code>#</code> symbol.<br><br> ⚠️ Each hashtag is treated as <strong>one single search term</strong>. If you put several words in one line (e.g. <code>travel photography food</code>), they'll be merged into a single hashtag (<code>#travelphotographyfood</code>). To search for terms separately, add each one as its own entry using the <strong>+ Add</strong> button — and use keyword search if you need multi-word phrases. <br><br>🔎 <strong>Searching by keyword?</strong> Add your keywords in this same field, then enable <strong>Scrape with a keyword
keywordSearchbooleanEnable this option if you want to get posts or reels by a specific keyword instead of a hashtag. Add your keywords to the <strong>Hashtags or keywords</strong> field above. Unlike with hashtags, <b>multiple words are supported as keywords</b>, just add spaces between them. The dataset will be slightly different than the one produced by hashtag. <a href='' target='_blank' rel='noopener'>See examples here</a> with the difference between hashtag and keyword extractio
resultsTypestringChoose whether to scrape posts or reels for the selected hashtags or keywords.
posts · reels · stories
Example: posts
resultsLimitintegerSet the maximum number of results (reels or posts) you want to scrape. If you set this to <code>5</code>, you will scrape 5 posts for each hashtag or keyword you provide. With this setup, if you decide to add <code>7</code> different hashtags or keywords, you will scrape <code>35</code> posts altogether.<br><br>⚠️ Free usage covers just the first page of results. To get more pages, <a href='' target='_blank' rel='noopener'>Upgrade your plan</a>.
