Call it
curl https://api.peume.com/v1/call/tiktok-trending-hashtags \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 3,
"period": 7,
"region": "US"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-trending-hashtags", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 3,
"period": 7,
"region": "US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-trending-hashtags",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 3,
"period": 7,
"region": "US"
}
},
)
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: tiktok-trending-hashtags.
Parameters
fieldsstringComma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.
max_itemsintegerCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
summaryboolean`true` returns only an outline: keys, item counts, per-field sizes.
jqstringjq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
industrystringRestrict the ranking to one industry. Omit for the all-industries board.
apparel_accessories · baby_kids_maternity · beauty_personal_care · education · food_beverage · games · health · home_improvement · household_products · news_entertainment · pets · sports_outdoor …
limitintegerMaximum number of ranked hashtags to return, from 1 through 100 (default 3). TikTok publishes only the top 3 hashtags per board to anonymous callers, so 1 through 3 is served by the cheapest source; a higher limit routes to a dearer source that reads the full ranking.
Example: 3
periodintegerLookback window in days that the ranking and the popularity curve cover (default 7).
7 · 30 · 90
Example: 7
regionstringTwo-letter country code of the market whose hashtag ranking to read (default US). Each market is ranked independently, so US and DE return different boards.
US · FR · DE · IT · ES · GB · AR · AU · BR · CA · CO · EG …
Example: US
