Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
tzNoTime zone offset in minutes, range -1439 to 1439. Examples: 420 (PDT), 600 (Pacific/Tahiti), -540 (Asia/Tokyo), -480 (Canada/Pacific). (default: 420)
catNoSearch category filter. Default 0 means all categories. (default: 0)
geoNoLocation the search originates from. See Google Trends Locations documentation for supported values. (default: Worldwide)
dateNoDate 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).
gpropNoProperty 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)
queryNoSearch 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.
regionNoRegion 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.
languageNoLanguage of the results (e.g. en, es, fr, de). (default: en)
data_typeNoType 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)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses credit cost, multi-query constraints, region parameter dependencies, and a sample return format for TIMESERIES. However, it omits details like error handling, rate limits, and full structure for GEO_MAP data types, which would enhance transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at a few sentences, front-loading the core purpose. It includes inline notes and return format, but the structure is dense and could be improved with bullet points for better readability. No wasted sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 9 parameters and no output schema, the description covers key behavioral constraints and a sample output for TIMESERIES. It omits full output structures for GEO_MAP types and does not differentiate from many siblings, but is adequate for a read tool with good parameter descriptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, baseline 3. The description adds value by clarifying relationships between data_type and query limits, and region parameter usage with GEO_MAP types. It also provides practical examples for date formats and topic IDs, going beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves Google Trends search interest data, listing three specific data types (interest over time, comparative regional breakdown, interest by region) and the capacity for up to 5 queries. It distinguishes from siblings like google_trends_autocomplete and google_trends_trending_now by focusing on historical trends data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly compare this tool to alternatives or state when to use it over siblings. It implies usage through data type descriptions but lacks direct guidance on tool selection, such as 'for autocomplete suggestions use google_trends_autocomplete'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alessandrobenigni/ScrapingDog-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server