om_kh Apify Actor Catalogue

← All guides · All Actors

Google Trends API — Interest Over Time, Rising Queries, JSON

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.

Step by step

  1. Open Google Trends Scraper and click Try for free (an Apify account is free).
  2. Paste this input (or fill the form):
{
  "searchTerms": [
    "chatgpt",
    "claude ai",
    "gemini"
  ],
  "geo": "US",
  "timeRange": "past_12_months",
  "compare": true,
  "trendingNowCountries": [
    "US"
  ]
}
  1. Click Start. Download the results as JSON, CSV or Excel, or read them from the API.

From Python

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)

With one HTTP call (cURL)

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"]}'

What you get

Price

$0.002 per keyword, $0.001 per trending search, no start fee. You only pay for results delivered; set maxTotalChargeUsd to cap a run.

Use cases

From an AI agent (MCP)

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.

FAQ

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.