Google Trends API: Compare Keywords, Regions & Related Queries avatar

Google Trends API: Compare Keywords, Regions & Related Queries

Pricing

from $4.00 / 1,000 keyword delivereds

Go to Apify Store
Google Trends API: Compare Keywords, Regions & Related Queries

Google Trends API: Compare Keywords, Regions & Related Queries

Google Trends data without the failed runs. Get interest over time, interest by region and related queries for any keyword and country. Compare up to 5 keywords on one scale. Pay only for keywords that return data.

Pricing

from $4.00 / 1,000 keyword delivereds

Rating

0.0

(0)

Developer

James J. Lee

James J. Lee

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Get Google Trends data for any list of keywords as clean JSON, CSV or Excel. One record per keyword, with interest over time, interest by region and related queries.

You pay only for keywords that return usable data. Failed keywords and keywords with no search interest are free.

What you get

  • Interest over time: the 0–100 trend line for each keyword, with the average and a flag on the still-incomplete current period
  • Interest by region: by country, sub-region, city or US metro area
  • Related queries: top and rising searches for each keyword
  • Keyword comparison: up to 5 keywords scored against each other on one shared scale, like the Trends compare page
  • Any location: every country code Google Trends supports (US, GB, KR, TW, ID, ...) and sub-regions such as US-CA
  • Any time range: past day to 5 years, all time, or custom dates
  • Web, image, news, YouTube and Shopping search

Why this one

  • No charge for empty or failed results. A keyword is billed only when at least 3 periods have search interest. If Google blocks a keyword through every retry, you are not charged for it.
  • Built to get past blocks. Each parallel worker uses its own proxy address and Google session. A blocked or stalled request moves to a fresh address and retries, and anything still failing gets a second pass at the end of the run.
  • Fast. In our tests, 20 keywords with city-level regions and related queries finished in about 20 seconds.
  • Complete records. Regions and related queries are included by default, not as paid extras.

Input

FieldDefaultNotes
keywordsrequiredList of search terms
comparefalseOn: score keywords against each other in groups of up to 5. Off: each keyword on its own 0–100 scale
geoworldwideUS, GB, KR, US-CA, ...
timeRangetoday 12-mnow 1-d, now 7-d, today 1-m, today 3-m, today 5-y, all, or 2025-01-01 2025-12-31
searchTypewebweb, images, news, youtube, shopping
category0Google Trends category number; 0 is all categories
includeRegionstrue
regionResolutionGoogle's defaultCOUNTRY, REGION, CITY, DMA
includeRelatedQueriestrue
includeRelatedTopicsfalseSee limits below
maxConcurrency3Keywords fetched in parallel, 1 to 5
proxyConfigurationResidentialResidential proxies are strongly recommended; Google blocks most datacenter addresses

Example: one country, several keywords

{
"keywords": ["air fryer", "instant pot", "slow cooker"],
"geo": "US",
"timeRange": "today 12-m"
}

Example: compare keywords on one scale

{
"keywords": ["netflix", "disney plus", "hulu", "max", "paramount plus"],
"compare": true,
"timeRange": "today 5-y"
}

Output

One dataset item per keyword:

{
"keyword": "electric car",
"geo": "US",
"timeRange": "today 12-m",
"average": 38,
"hasData": true,
"dataPoints": 53,
"charged": true,
"comparedWith": ["hybrid car"],
"interestOverTime": [
{ "time": "2025-11-23T00:00:00.000Z", "formattedTime": "Nov 23 – 29, 2025", "value": 23, "isPartial": false }
],
"interestByRegion": [
{ "geoCode": "US-WY", "geoName": "Wyoming", "value": 100 }
],
"relatedQueries": {
"top": [{ "query": "best electric car", "value": 100, "formattedValue": "100" }],
"rising": [{ "query": "electric car battery degradation comparison", "value": 3100, "formattedValue": "+3,100%" }]
},
"comparison": {
"keywords": ["electric car", "hybrid car"],
"averages": { "electric car": 38, "hybrid car": 23 }
}
}

comparison appears only when compare is on. It also carries the shared time series and a region table with every compared keyword side by side.

Pricing

Pay per keyword delivered. You are charged once for each keyword that returns usable data, plus Apify's standard small fee for starting a run. You pay nothing for:

  • keywords with no search interest, or fewer than 3 periods of it
  • keywords that fail after all retries

Every record has a charged field, so you can see exactly what you paid for. If you set a maximum charge for a run, the Actor stops when it is reached.

Limits to know about

  • Values are relative, not search volumes. Google Trends reports a 0–100 index. This Actor does not estimate search volume.
  • Comparisons work in groups of 5. That is Google's limit. With more than 5 keywords and compare on, keywords are split into groups, and scores are comparable within a group but not across groups. To compare more than 5, include one shared keyword in every run and rescale against it.
  • Rare keywords are noisy. Google samples its data, so a very low-volume keyword can show a small blip on one request and nothing on the next.
  • Related topics are currently empty. Google has been returning empty related-topics lists, so the option is off by default. Related queries are unaffected.
  • No official API. Google Trends has no public API. This Actor reads the same data the Trends website loads, so Google can change it without notice. If something breaks, open an issue and it will be looked at quickly.

For developers

npm install
npm test # offline tests
npm run live # real request to Google Trends from your own connection