Home › Monitoring and research › Google Trends API

Google Trends API: City & Metro Interest, Related, Trending

How it works

Google Trends down to city and metro level, without a browser: interest over time, by region, city and metro, related queries and topics (top and rising), compare up to 5 keywords, and Trending now with search volume and news. Clean JSON rows, any country, any period.

Input options

FieldNameRequiredWhat it does
modeWhat to scrapenointerest = one row per keyword. compare = keywords charted against each other (groups of 5). trendingNow = what people search for right now. suggest = Google's topic suggestions...
searchTermsKeywordsnoSearch terms or topics, for example bitcoin or best running shoes. In compare mode they are grouped 5 at a time and measured on one shared 0-100 scale.
startUrlsGoogle Trends URLsnoOptional. Paste trends.google.com/trends/explore links; keywords, region, period, category and search type are read from the link.
timeRangeTime rangenoHourly data for the last hour or 4 hours, daily for 7 days, weekly for a year, monthly for 5 years.
customTimeRangeCustom time rangenoOverrides the time range. 2024-01-01 2024-06-30 (start end) or 2024-01-01 (start until today).
geoCountry or regionnoEmpty = worldwide. ISO country code (US, GB, DE), a region (US-CA, GB-ENG) or a US metro (US-CA-807). In Trending now, empty = US.
geosMore countries or regionsnoRun every keyword once per extra region as well. One row per keyword and region.
categoryGoogle category idno0 = all categories. Examples: 3 Arts and Entertainment, 5 Computers and Electronics, 7 Finance, 12 Business and Industrial, 22 Books and Literature, 44 Beauty and Fitness, 47...
propertySearch typenoWhich Google search the interest is measured on.
includeTimelineInterest over timenoThe time series (0-100). The summary (average, peak, latest, trend) is always included.
includeRegionsInterest by regionnoCountries when worldwide, states or regions inside a country.
includeCitiesInterest by citynoCities with latitude and longitude. Adds one request per keyword.
includeMetrosInterest by US metronoUS media markets (DMA). Empty outside the US.
includeRelatedQueriesRelated queriesnoTop and rising related searches.

Output fields

One row per result. These are the 33 fields declared in the actor's dataset schema (field list from the schema, not a sample run).

FieldTypeMeaning
typeanyRow type: interest, compare, trendingNow or suggestions
searchTermanyThe keyword (interest rows and suggestion rows)
searchTermsanyThe keywords compared against each other (compare rows)
geoanyCountry or region code, WORLDWIDE when empty
timeRangeanyGoogle time range used, for example today 12-m
categoryanyGoogle Trends category id (0 = all categories)
propertyanyweb, images, news, youtube or froogle (shopping)
languageanyInterface language used for names
exploreUrlanyThe same query on trends.google.com, to check or share
summaryanyAverage, peak, peak date, latest value, lowest, change in percent and trend direction (per keyword in compare rows)
interestOverTimeanyTime series: date, timestamp, label, value 0-100, isPartial (compare rows carry values and valuesByTerm)
interestByRegionanyInterest by country, state or region: geoName, geoCode, value
interestByCityanyInterest by city with latitude and longitude (includeCities)
interestByMetroanyInterest by US metro area, DMA code (includeMetros)
relatedQueriesTopanyTop related queries with value 0-100
relatedQueriesRisinganyRising related queries; isBreakout true for Breakout
relatedTopicsTopanyTop related topics: mid, title, type, value
relatedTopicsRisinganyRising related topics
relatedQueriesanyCompare rows: related queries per keyword as {top, rising}
relatedTopicsanyCompare rows: related topics per keyword as {top, rising}
scrapedAtanyWhen the row was collected (UTC)
rankanyTrending now: position in Google's list
queryanyTrending now: the trending search
hoursanyTrending now: window in hours (4, 24, 48 or 168)
startedAtanyTrending now: when the trend started (UTC)
endedAtanyTrending now: when it ended (empty while active)
isActiveanyTrending now: still trending
searchVolumeanyTrending now: approximate searches (number)
searchVolumeLabelanyTrending now: searches as Google shows it (50K+)
increasePercentanyTrending now: search growth in percent
categoriesanyTrending now: topic categories
articlesanyTrending now: news articles (includeNewsArticles): title, url, source, publishedAt, image
suggestionsanySuggested topics for the keyword: mid, title, type

Limits, stated plainly

Public data only, no login. Fields a source does not publish come back empty rather than guessed. Coverage and freshness follow the underlying public source.

Price

Pay on Apify, no subscription: $0.00093 per result row on the free plan, down to $0.0001 on higher plans (pay per event, tiered). The live price is on the actor page.

Run it on Apify

Disclosure: we build and maintain this actor.

Related

More in monitoring and research