100 free credits. No credit card required. Get a key

How to get Google Trends data

Checked Code run live

Google’s official Trends API is an alpha open only to approved testers, and pytrends breaks whenever Google changes the page. A data API reads the same series the Trends site draws: one GET returns interest over time (0–100) for up to five keywords, by country or region, 3 credits.

The official Google Trends API

Google announced a Google Trends API on 24 July 2025, as an alpha.

  • Access is by application, for a limited number of testers.
  • It returns consistently scaled search interest (not absolute volumes) over a rolling five-year window, by day, week, month or year and by region.
  • There is no self-serve sign-up or published price.

Sources: Google Trends API alpha, Announcement, 24 Jul 2025.

Quick start

  1. Get a keySign up with an email code: 100 free credits, no card. An agent can sign itself up with POST https://api.groundsocial.dev/v1/agent/signup.
  2. Set it in your shellexport GROUNDSOCIAL_API_KEY=gs_live_…
  3. Make the callInterest over time: GET /v1/googletrends/explore, 3 credits.
curl "https://api.groundsocial.dev/v1/googletrends/explore?keywords=coffee,tea&location=US" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"

Sample response

Trimmed from the real response on 27 November 2026: lists cut to their first items and long strings shortened. Every field is described in the tutorial.

json
{
  "keywords": [
    "coffee",
    "tea"
  ],
  "geo": "US",
  "time": "2025-11-27 2026-11-27",
  "timelineData": [
    {
      "time": "1763856000",
      "formattedTime": "Nov 23 – 29, 2025",
      "value": [
        77,
        34
      ],
      "hasData": [
        true,
        true
      ],
      "formattedAxisTime": "Nov 23, 2025",
      "formattedValue": [
        "77",
        "34"
      ]
    },
    {
      "time": "1764460800",
      "formattedTime": "Nov 30 – Dec 6, 2025",
      "value": [
        73,
        37
      ],
      "hasData": [
        true,
        true
      ],
      "formattedAxisTime": "Nov 30, 2025",
      "formattedValue": [
        "73",
        "37"
      ]
    }
  ],
  "averages": [
    79,
    37
  ]
}

What else you can get from Google Trends

What you getEndpointCredits
Interest over timeGET /v1/googletrends/explore3
Related and rising queriesGET /v1/googletrends/rising3
Trending nowGET /v1/googletrends/trending3

Each row links to its tutorial. Every Google Trends endpoint and price: Google Trends API.

Tips

  • Values are 0–100, relative to the highest point for these keywords in this window; compare keywords in one call, not across calls.
  • timeframe=past_5_years for long trends; location=US-CA for a state.
  • Trends category ids (category=71 is Food & Drink) narrow ambiguous words.

Use it from Claude or Cursor (MCP)

Every endpoint is also an MCP tool on the remote server https://api.groundsocial.dev/mcp. The ?platforms=googletrends below loads only the Google Trends tools. The client signs in with OAuth, or send your key as a Bearer token. Tools used in this guide: googletrends_explore_get, googletrends_rising_get, googletrends_trending_get.

claude mcp add --transport http groundsocial "https://api.groundsocial.dev/mcp?platforms=googletrends"

Setup for ChatGPT, VS Code, Windsurf, n8n and others: MCP client setup.

Pricing

Pay per call from prepaid credits; no subscription. 100 free credits cover the examples on this page. Costs below are at the credit packs’ highest and lowest rates.

JobCreditsCost
1,000 keyword comparisons3,000$3.00 → $1.20
Rising queries for 100 seeds300$0.30 → $0.12

FAQ

Yes: the same series the Explore page draws, read when you call.

Are failed calls charged?

No. A target that does not exist answers 404 target_not_found, an upstream failure answers 503, and neither costs anything. Credits never expire.

Is Groundsocial official?

No. Groundsocial is an independent API that reads what the platform shows a logged-out visitor. Google Trends is a trademark of Google LLC. We are not affiliated with or endorsed by Google.

Go deeper

Google Trends is a trademark of Google LLC. We are not affiliated with or endorsed by Google.

Try it on your own data

One key for Google Trends and every other platform, over REST or MCP. Free credits on signup, no card.