Google has no public, self-serve Google Trends API for most developers. The Google Trends Scraper Actor gives you the same data as JSON: for each keyword, the 0–100 interest timeline, average, peak, latest value, trend direction and % change, the top 15 regions, top and rising related queries (including Breakout), plus today’s Trending now searches for any country. $0.002 per keyword, first 3 results of every run free.
Try it: Google Trends Scraper on Apify — click Try for free, the input is prefilled.
{
"searchTerms": [
"chatgpt",
"claude ai",
"gemini"
],
"geo": "US",
"timeRange": "past_12_months",
"compare": true,
"trendingNowCountries": [
"US"
]
}
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("om_kh/google-trends-scraper").call(run_input={
"searchTerms": [
"chatgpt",
"claude ai",
"gemini"
],
"geo": "US",
"timeRange": "past_12_months",
"compare": True,
"trendingNowCountries": [
"US"
]
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
curl -X POST "https://api.apify.com/v2/acts/om_kh~google-trends-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"searchTerms": ["chatgpt", "claude ai", "gemini"], "geo": "US", "timeRange": "past_12_months", "compare": true, "trendingNowCountries": ["US"]}'
keywordaverageInterestpeakInterestpeakDatelatestInteresttrendDirection (rising / falling / stable)changePcttimelinetopRegionsrelatedQueriesRisingrelatedQueriesToptrendsUrl$0.002 per keyword, $0.001 per trending search, no start fee. You only pay for results delivered; set maxTotalChargeUsd to cap a run.
Connect Claude, Cursor or any MCP client to https://mcp.apify.com and add om_kh/google-trends-scraper as a tool.
The agent sends the same JSON input and gets the rows back.
Are the values search volumes?
No. Google Trends values are relative (0–100 for the period and place), exactly like the website.
Can I compare keywords on one scale?
Yes, set compare: true; keywords are grouped by 5 like on trends.google.com.
Does it need a Google account?
No.