Call it
curl https://api.peume.com/v1/call/tiktok-trending-hashtags-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"country": "your country",
"time_window": "30d"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-trending-hashtags-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"country": "your country",
"time_window": "30d"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-trending-hashtags-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"country": "your country",
"time_window": "30d"
}
},
)
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-2.
Parameters
countrystringThe market whose trends you want, default US: AE, AR, AU, BR, CA, CO, DE, EG, ES, FR, GB, ID, IL, IT, JP, KR, MX, MY, PH, SA, SG, TH, TR, TW, US, VN or ZA.
time_windowstringThe period `trending_hashtags` ranks over: `7d` (default), `30d` or `90d`. One of: 30d, 7d, 90d.
30d · 7d · 90d
industrystringKeep `trending_hashtags` to one industry, such as `beauty`, `games` or `food`, and get that industry's top 3; leave it out for the overall top 3 plus the top 3 of every industry. One of: apparel, appliances, apps, baby, beauty, business_services, education, finance, food, games, health, home_improvement, household, life_services, news_entertainment, pets, sports, tech, travel, vehicles.
apparel · appliances · apps · baby · beauty · business_services · education · finance · food · games · health · home_improvement …
