Call it
curl https://api.peume.com/v1/call/google-trends-related-queries \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"geo": "your geo",
"timeframe": "past_12_months",
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-trends-related-queries", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"geo": "your geo",
"timeframe": "past_12_months",
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-trends-related-queries",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"geo": "your geo",
"timeframe": "past_12_months",
"keyword": "your keyword"
}
},
)
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: google-trends-related-queries.
Parameters
geoRequiredstringISO-3166 alpha-2 country code, e.g. US, GB, DE, JP (213 countries supported)
timeframestringtime window. Each response reports its own bucket size in `granularity`: past_30_days and past_90_days return a daily series, past_12_months and past_5_years weekly, windows under a day hourly
2004_present · past_12_months · past_30_days · past_4_hours · past_5_years · past_7_days · past_90_days · past_day · past_hour
Example: past_12_months
keywordRequiredstringthe search term
