tidewell/google-trends-api
tidewell--google-trends-apiThis tool calls the Actor "tidewell/google-trends-api" and retrieves its output results. Actor description: Returns Google Trends data per search term: 0-100 interest over time, interest by region, top and rising related queries and topics, plus Trending Now searches by country. Compare up to 5 terms for any country, time range, category and search type. $3 per 1,000 search terms.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tidewell--google-trends-api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | Same as 'Countries / regions' as one text value: a code such as US or US-CA, or several separated by commas ('US, GB, DE'). Kept for existing tasks and API calls. Values here and in 'Countries / regions' are combined. Empty in both = Worldwide. | |
| geos | No | One per line: a two-letter country code (US, GB, DE, IN) or a region code (US-CA, GB-ENG). Every comparison runs once for each. Leave empty for Worldwide. Example values: ["US"] | |
| category | No | Google Trends category ID to narrow the meaning of a term. 0 = all categories. Top-level IDs: 3 Arts & Entertainment, 5 Computers & Electronics, 7 Finance, 8 Games, 11 Home & Garden, 12 Business & Industrial, 13 Internet & Telecom, 16 News, 18 Shopping, 20 Sports, 29 Real Estate, 44 Beauty & Fitness, 45 Health, 47 Autos & Vehicles, 65 Hobbies & Leisure, 66 Pets & Animals, 67 Travel, 71 Food & Drink, 174 Science, 958 Jobs & Education. Sub-categories work too (see the README). | |
| language | No | Language for region names and topic titles, e.g. en-US, en-GB, de, fr, ja. Example values: "en-US" | en-US |
| property | No | Which Google search to measure. | |
| waitSecs | No | Max seconds (0–45, default 30) to cap the wait for the Actor run to reach terminal state. For long-running Actors the response returns at the cap with the current run status; follow `nextStep` to poll via get-actor-run. Set to 0 to fire-and-forget. | |
| timeframe | No | The period to fetch. Google picks the resolution: minutes or hours for 'now' ranges, days up to 9 months, weeks up to 5 years, months beyond that. Example values: "today 12-m" | today 12-m |
| maxRetries | No | Retries for rate-limited (429) or failed requests, with exponential backoff. Example values: 5 | |
| searchTerms | No | One comparison per line. Put up to 5 terms on one line, separated by commas, to compare them on the same 0-100 scale (e.g. 'chatgpt, gemini, claude'). A line with one term is fetched on its own. Topic IDs such as /m/0dl567 work too. Each term that returns data is one charged result. Example values: ["chatgpt, gemini, claude"] | |
| outputFormat | No | 'One row per search term' keeps each term's time series, regions and related queries together (best for JSON and APIs). 'One row per data point' writes long-format rows (date / region / query) that open directly in Excel, Sheets and BI tools. The price is the same: you pay per search term, not per row. Example values: "perTerm" | perTerm |
| trendingGeos | No | Country codes, one per line (e.g. US, GB, DE, IN). Returns the current trending searches with approximate search volume, start time and the news articles behind each. Charged per trending search. Example values: ["US"] | |
| customTimeframe | No | Overrides 'Time range'. Dates as 'YYYY-MM-DD YYYY-MM-DD' (e.g. '2024-01-01 2024-12-31'), or hourly as 'YYYY-MM-DDTHH YYYY-MM-DDTHH' for windows up to 7 days. | |
| regionResolution | No | Level of the interest-by-region breakdown. 'Auto' uses Google's default (countries for Worldwide, subregions for a country). Metro (DMA) is US only. Example values: "auto" | auto |
| requestDelaySecs | No | Minimum gap between requests to Google. Lower is faster but more likely to be rate-limited. Example values: 1 | |
| proxyConfiguration | No | Apify Proxy is recommended for runs with more than a few comparisons. Example values: {"useApifyProxy":true} | |
| includeRelatedTopics | No | Top and rising related topics per term. When comparing several terms this needs one extra explore per term. Google often returns an empty list here for automated requests. Example values: true | |
| includeRelatedQueries | No | Top and rising related searches per term, with 'Breakout' flags. Example values: true | |
| includeInterestByRegion | No | Interest per country (Worldwide) or per subregion (country). When comparing terms, also the share of each term per region. Example values: true | |
| includeInterestOverTime | No | The 0-100 time series, with average, peak and latest values. Example values: true | |
| includeLowSearchVolumeRegions | No | Also list regions with low search volume, as the checkbox on the Trends page does. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | No | Advisory guidance RAG Web Browser wrote to its key-value store under the reserved "TIP" key | |
| runId | Yes | Actor run ID | |
| stats | No | Run statistics | |
| status | Yes | Run status: READY | RUNNING | TIMING-OUT | TIMED-OUT | ABORTING | ABORTED | SUCCEEDED | FAILED | |
| actorId | Yes | Stable Apify Actor ID from the run record | |
| summary | Yes | Past-tense summary of the run state | |
| exitCode | No | Actor process exit code; populated for terminal states (especially FAILED) | |
| nextStep | Yes | One primary follow-up action with identifiers interpolated | |
| storages | Yes | Dataset and key-value store metadata, keyed by alias. "default" is always the primary entry. | |
| actorName | No | "username/actor-name" | |
| startedAt | No | ISO timestamp when the run started | |
| finishedAt | No | ISO timestamp when the run finished (terminal states only) | |
| statusMessage | No | Pass-through from Apify run.statusMessage | |
| apifyConsoleUrl | No | Personalized Apify Console link to the run; present only for Console sessions |