Call it
curl https://api.peume.com/v1/call/google-list-trending-searches \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"geo": "your geo"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-list-trending-searches", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"geo": "your geo"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-list-trending-searches",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"geo": "your geo"
}
},
)
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-list-trending-searches.
Parameters
geoRequiredstringThe location from where you want the search to originate. It defaults to `US` (activated when the value of `geo` parameter is not set or empty). Head to the Google Trends Trending Now Locations for a full list of supported locations.
hoursstringThe number of past hours to retrieve the results for. It defaults to `24` (Past 24 hours). It can be set to: -`4` (Past 4 hours) -`24` (Past 24 hours) -`48` (Past 48 hours) -`168` (Past 7 days).
category_idstringAllows results to be filtered by a specific category. E.g. `category_id`:`18` will return only results from the "Technology" category. Head to the Google Trends Trending Now Categories for the full list of supported categories.
hlstringThe language to use for the Google Trends Trending Now search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish).
only_activestringFilters results to only include those that are currently active.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
