APIs / Search engines / Google Trends

1 credit per call5 endpoints3 datapointsChecked working 6 Dec 2026

Google Trends API

Google Trends API for interest over time, interest by region, related queries and trending searches as JSON. 1 credit per call.

Google Trends
GET/v1/google-trends/interest?q=tesla&geo=US&time_range=1y
{
  "search_parameters": {
    "keyword": "tesla",
    "geo": "US",
    "time_range": "today+12-m",
    "hl": "en",
    "search_type": "web"
  },
  "timeline_data": [
    {
      "timestamp": 1760832000,
      "date": "Oct 19 – 25, 2025",
      "value": 40
    },
    {
      "timestamp": 1761436800,
      "date": "Oct 26 – Nov 1, 2025",
      "value": 39
    },
    {
      "timestamp": 1762041600,
      "date": "Nov 2 – 8, 2025",
      "value": 45
    }
  ],
  "interest_over_time": {
    "average": 49.13,
    "max_value": 100,
    "min_value": 39,
    "data_points": [
      {
        "timestamp": 1760832000,
        "date": "Oct 19 – 25, 2025",
        "value": 40
      },
      {
        "timestamp": 1761436800,
        "date": "Oct 26 – Nov 1, 2025",
        "value": 39
      },
      {
        "timestamp": 1762041600,
        "date": "Nov 2 – 8, 2025",
        "value": 45
      }
    ]
  },
  "response_time_ms": 320
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of interest: the fields and shapes you will get, shortened to 3 items.

#timestampintegerdatestringvalueinteger
11760832000Oct 19 – 25, 202540
21761436800Oct 26 – Nov 1, 202539
31762041600Nov 2 – 8, 202545

Recorded from our API · 3 items shown · 3 datapoints per itemGET /v1/google-trends/interest?q=tesla&geo=US&time_range=1y

3 datapoints

Other

  • timestampinteger
  • datestring
  • valueinteger

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/google-trends/interest?q=tesla&geo=US&time_range=1y" \
  -H "X-API-Key: $API_KEY"

Google Trends · 5 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/google-trends/autocomplete
q+2 optional
search_parameterssuggestionsresponse_time_ms
1 credit
GET/v1/google-trends/interest
q+4 optional
search_parameterstimeline_datainterest_over_timeresponse_time_ms
1 credit
GET/v1/google-trends/interest-by-region
q+7 optional
interest_by_regionqueriesgeodateresponse_time_ms
1 credit
GET/v1/google-trends/related
q+4 optional
search_parametersrelated_queriesrelated_queries_risingnoticeresponse_time_ms
1 credit
GET/v1/google-trends/trending-now
geo+6 optional
search_parameterstrending_nowresponse_time_ms
1 credit

Overview

About the Google Trends API

What you can get

The Google Trends API returns Google Trends data as JSON through 5 endpoints. Most take a query in q and a geo.

  • Interest over time: interest with a time_range (1h, 4h, 1d, 7d, 30d, 90d, 1y, 5y and longer) and search_type (web, images, news, youtube or shopping). The recorded call for "tesla" in the US over a year returns timeline_data (each point with date and value) and interest_over_time with average, max_value and min_value.
  • By region: interest-by-region with region (REGION or COUNTRY), date, cat and gprop.
  • Related: related for queries related to q, with the same time_range and search_type.
  • Trending now: trending-now by geo, with hours (4, 24, 48 or 168), sort (relevance, title, search_volume or recency), category_id and only_active.
  • Autocomplete: autocomplete for a partial q.

How a call works

One call per question: GET /v1/google-trends/interest?q=tesla&geo=US&time_range=1y with your key in the X-API-Key header. Compare terms by calling it once per term with the same geo and time_range. Every successful call costs 1 credit; failed calls cost nothing.

Search enginesJSONRESTMCP

More search engines APIs

Use cases

Track demand for a product or topic week over week

Use the Google Trends API to track demand for a product or topic week over week

Compare interest in competing brands by region

Use the Google Trends API to compare interest in competing brands by region

Find rising related searches for content planning

Use the Google Trends API to find rising related searches for content planning

Alert on what's trending now in a country

Use the Google Trends API to alert on what's trending now in a country

FAQ

Questions

Do I need Google access to use it?

No. You call this Google Trends API with your Perceptlayer key in the `X-API-Key` header, with no Google account or project to set up.

How much does the Google Trends API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Google Trends API?

No. Perceptlayer is an independent service and is not affiliated with Google Trends. It returns Google Trends data as JSON with a Perceptlayer key, so there is no Google Trends developer account, app review or partner approval to get first. It only reads data: if Google Trends has an official API and you need to act on your own Google Trends account, such as posting, managing orders or reading private data, use that one.

Should I build a Google Trends scraper instead?

You can, but a Google Trends scraper is code you maintain: page changes break it, requests get blocked, and Google Trends's terms govern how you collect data. The Google Trends API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Google Trends API with 100 free credits

No credit card. Failed calls are never billed.