Call it
curl https://api.peume.com/v1/call/google-trends-search-interest-over-time \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keywords": []
}
}'const res = await fetch("https://api.peume.com/v1/call/google-trends-search-interest-over-time", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keywords": []
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-trends-search-interest-over-time",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keywords": []
}
},
)
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-search-interest-over-time.
Parameters
countrystringA two-letter country code such as `us`, `gb` or `jp` for where to measure interest. Leave it out for worldwide.
keywordsRequiredarrayA list of 1 to 5 search terms to compare, such as `["openai", "anthropic"]`. Each term is at most 80 characters and 10 words.
time_windowstringThe period to cover: `day`, `week`, `month` (30 days), `quarter` (90 days), `year` (12 months, the default) or `five_years`.
languagestringA two-letter language code such as `en` or `ja`. Usually not needed.
search_typestringWhich Google search to measure: `web` (default), `news`, `youtube`, `images` or `shopping`.
