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.
{
"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
}Sample data
What one call returns
A recorded run of interest: the fields and shapes you will get, shortened to 3 items.
| # | timestampinteger | datestring | valueinteger |
|---|---|---|---|
| 1 | 1760832000 | Oct 19 – 25, 2025 | 40 |
| 2 | 1761436800 | Oct 26 – Nov 1, 2025 | 39 |
| 3 | 1762041600 | Nov 2 – 8, 2025 | 45 |
[
{
"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
}
]timestamp,date,value 1760832000,"Oct 19 – 25, 2025",40 1761436800,"Oct 26 – Nov 1, 2025",39 1762041600,"Nov 2 – 8, 2025",45
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
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.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
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:
interestwith atime_range(1h, 4h, 1d, 7d, 30d, 90d, 1y, 5y and longer) andsearch_type(web, images, news, youtube or shopping). The recorded call for "tesla" in the US over a year returnstimeline_data(each point withdateandvalue) andinterest_over_timewithaverage,max_valueandmin_value. - By region:
interest-by-regionwithregion(REGION or COUNTRY),date,catandgprop. - Related:
relatedfor queries related toq, with the sametime_rangeandsearch_type. - Trending now:
trending-nowbygeo, withhours(4, 24, 48 or 168),sort(relevance, title, search_volume or recency),category_idandonly_active. - Autocomplete:
autocompletefor a partialq.
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.
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 weekCompare interest in competing brands by region
Use the Google Trends API to compare interest in competing brands by regionFind rising related searches for content planning
Use the Google Trends API to find rising related searches for content planningAlert on what's trending now in a country
Use the Google Trends API to alert on what's trending now in a countryFAQ
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.