google_trends
Retrieve Google Trends search interest data for up to 5 queries: interest over time, comparative regional breakdown, or interest by region. Returns JSON with timeline data or geo maps.
Instructions
Retrieves Google Trends search interest data: interest over time, comparative regional breakdown, or interest by region, for up to 5 queries at once. [Credits: 5 API credits per request] Notes: Multi-query comparison (up to 5 comma-separated queries) is only supported for data_type=TIMESERIES and data_type=GEO_MAP; GEO_MAP_0 supports only a single query. region is only meaningful alongside GEO_MAP/GEO_MAP_0 data types. Returns: JSON with interest_over_time.timeline_data array of {date, timestamp, values: [{query, value, extracted_value}]} for TIMESERIES; structure varies for GEO_MAP/GEO_MAP_0 (regional breakdown, not shown in sample).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | Time zone offset in minutes, range -1439 to 1439. Examples: 420 (PDT), 600 (Pacific/Tahiti), -540 (Asia/Tokyo), -480 (Canada/Pacific). (default: 420) | |
| cat | No | Search category filter. Default 0 means all categories. (default: 0) | |
| geo | No | Location the search originates from. See Google Trends Locations documentation for supported values. (default: Worldwide) | |
| date | No | Date range for the search. Predefined values: now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 5-y, all. Custom range formats: 'yyyy-mm-dd yyyy-mm-dd' or 'yyyy-mm-ddThh yyyy-mm-ddThh' for hourly precision (custom hourly range limited to a one-week window). | |
| gprop | No | Property to source results from. Allowed values: `images` (Image Search), `news` (News Search), `froogle` (Google Shopping), `youtube` (YouTube Search). Default is Web Search (no value). (default: Web Search) | |
| query | No | Search term(s) or topic(s), comma-separated (e.g. coffee,pizza,dark chocolate,/m/027lnzs,bread). Terms can be plain search terms (e.g. Tesla) or Topic IDs (e.g. /m/0663v). Each query up to 100 characters. Up to 5 queries allowed only for data_type TIMESERIES and GEO_MAP; other data types support only 1 query. | |
| region | No | Region resolution, used only with the GEO_MAP and GEO_MAP_0 (compared/interest by region) data types. Allowed values: `COUNTRY`, `REGION`, `DMA` (metro level), `CITY`. Not all options yield results for every location. | |
| language | No | Language of the results (e.g. en, es, fr, de). (default: en) | |
| data_type | No | Type of Trends data to fetch. Allowed values: `TIMESERIES` (interest over time; multi-query), `GEO_MAP` (compared breakdown by region; multi-query), `GEO_MAP_0` (interest by region; single query only). (default: TIMESERIES) |