Google API

Google Trends API

Google Trends interest over time for up to 5 search terms compared on one 0-100 scale, where 100 is the peak search interest of any term in the window. Returns one series per term, in the order you sent them, with a value for every time bucket. Choose the country or region with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Interest over time only, not related queries or regions.

POST/v1/run/google.trends
Uptime
88.21%
30d · 9,855 calls
Requests
10,133
30d · weekly, last 12 wks
Response
1.6s
median · 30d

Status

Loading status...

Get outage emails for this endpoint

See every endpoint on the status page

Pricing and providers

Google Trends API pricing: one API, 2 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

You pay
$20.00
$2.00/1k req, only for what you use. No monthly plan.
Your first 50 requests are free with the $0.10 starting balance.

Try it

Get Google trends in one request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "geo": "example",
    "series": [
      {
        "keyword": "a1b2c3d4",
        "points": [
          {
            "partial": true,
            "startUtc": 12.5,
            "value": 20
          }
        ]
      }
    ],
    "timeframe": "2024-01-15T09:30:00Z"
  },
  "found": true,
  "reason": "not_found"
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-11-26 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • keywordsarray

    ["coffee","tea"]

    Search terms to compare, 1 to 5, each 2 to 100 characters and without commas (e.g. ["coffee", "tea"]). Values are relative across the whole set, so the same term scores differently next to different terms.

  • geostring

    US

    Where the searches came from: an uppercase ISO country code (US, GB, DE) or a country subdivision (US-CA, GB-ENG). Omit it, or send worldwide, for worldwide interest.

  • timeframeenum

    12m

    The window to chart, ending now: 1h, 4h, 1d or 7d (hours and days), 1m or 3m (months), 12m, 5y, or all (back to January 2004). Buckets grow with the window: minutes up to 1d, hours for 7d, days for 1m and 3m, weeks for 12m and 5y, months for all.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

datadata

The interest-over-time record, or null when nothing was found.

  • geostring

    The place the series cover: the country or subdivision code you sent, or worldwide.

  • timeframestring

    The window the series cover: the timeframe you sent, or 12m when you sent none.

each serydata.series[]

One series per search term, in the order you sent the terms. All series share one 0-100 scale. Populated whenever the provider has data for the entity.

  • keywordstring

    The search term this series charts. Populated whenever the provider has data for the entity.

each pointdata.series[].points[]

One point per time bucket, oldest first. Populated whenever the provider has data for the entity.

  • partialboolean

    True when Google is still counting this bucket, normally the newest one, so it reads lower than it will end. Present only when the source reports it.

  • startUtcnumber

    Start of the time bucket. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.

  • valueinteger

    Search interest in this bucket on Google's 0-100 scale, where 100 is the peak of any term in the response and 0 means there was not enough data. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    False when Google Trends holds too little search interest for these terms, place and window to chart them.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the Google Trends API

The AnyAPI Google Trends API returns Google trends data as normalized JSON from one POST call to /v1/run/google.trends. Google Trends interest over time for up to 5 search terms compared on one 0-100 scale, where 100 is the peak search interest of any term in the window. Returns one series per term, in the order you sent them, with a value for every time bucket. Choose the country or region with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Interest over time only, not related queries or regions. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $2 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 88.2% of Google trends calls through AnyAPI succeeded, with a median response time of 1.6 seconds across 9,855 measured calls.

It costs from $2 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Google Trends interest over time for up to 5 search terms compared on one 0-100 scale, where 100 is the peak search interest of any term in the window. Returns one series per term, in the order you sent them, with a value for every time bucket. Choose the country or region with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Interest over time only, not related queries or regions. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 88.2% of Google trends calls through AnyAPI succeeded, with a median response time of 1.6 seconds across 9,855 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 50 Google Trends calls at $0.002 each.

AnyAPI asks the next of its 2 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/google.trends with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.