?
searchGoogleTrends
Fetch Google Trends data for a search term.
mindstudio.searchGoogleTrends({ text, hl, geo, data_type, cat, date, ts }) → Result
Fetches Google Trends interest data for a search term.
Parameters
text
string
RequiredThe search term to look up on Google Trends
hl
string
RequiredLanguage code (e.g. "en")
geo
string
RequiredGeographic region: empty string for worldwide, or a two-letter country code
data_type
string
RequiredType of trend data to return
TIMESERIESGEO_MAPGEO_MAP_0RELATED_TOPICSRELATED_QUERIES
cat
string
RequiredCategory filter ("0" for all categories)
date
string
RequiredDate range for trend data. Available options: - "now 1-H" - Past hour - "now 4-H" - Past 4 hours - "now 1-d" - Past day - "now 7-d" - Past 7 days - "today 1-m" - Past 30 days - "today 3-m" - Past 90 days - "today 12-m" - Past
ts
string
RequiredTimezone offset in minutes (-1439 to 1439, default: 420 for PDT)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.searchGoogleTrends({ text: /* ... */, hl: /* ... */, geo: /* ... */, data_type: /* ... */, cat: /* ... */, date: /* ... */, ts: /* ... */ });