Google Trends API
Send a search term and get its Google Trends data back as JSON: interest over time, interest by region, and the top and rising related queries, for the whole world or for one country. The values are the ones Google Trends shows on its own page, unfiltered.
- 100 free credits
- No card needed
- No scraper to build or maintain
curl "https://pipefetch.com/v1/google/trends?q=pickleball&geo=US&period=12m" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/google/trends?q=pickleball&geo=US&period=12m', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/google/trends",
params={"q": "pickleball", "geo": "US", "period": "12m"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]What you get
- Interest over time on Google's 0 to 100 scale, one point per week for a 12-month period
- Interest by region as Google Trends ranks it: the regions or states of a country, or the countries of the world
- Up to 25 top and 25 rising related queries, as Google Trends lists them, with the Breakout flag
- A summary: average, latest and peak interest, the date of the peak, and the change from the start of the period to its end
- The top region, the top query and the top rising query
- The start, end and point spacing of the period, and a link to the same search on Google Trends
{
"data": {
"term": "pickleball",
"geo": "US",
"geoName": "United States",
"period": "12m",
"startDate": "2025-11-19T00:00:00.000Z",
"endDate": "2026-11-19T00:00:00.000Z",
"interval": "WEEK",
"url": "https://trends.google.com/trends/explore?date=today%2012-m&geo=US&q=pickleball&hl=en-US",
"summary": {
"averageInterest": 65,
"latestInterest": 47,
"latestDate": "2026-11-08T00:00:00.000Z",
"peakInterest": 100,
"peakDate": "2026-04-12T00:00:00.000Z",
"trendChangePercent": -4.1,
"trendDirection": "stable",
"topRegion": "Wyoming",
"topQuery": "pickleball paddle",
"topRisingQuery": "best pickleball paddles 2026"
},
"interestOverTime": [
{
"date": "2025-11-16T00:00:00.000Z",
"interest": 54,
"isPartial": false,
"label": "Nov 16 – 22, 2025"
},
{
"date": "2025-11-23T00:00:00.000Z",
"interest": 59,
"isPartial": false,
"label": "Nov 23 – 29, 2025"
}
],
"regionResolution": "REGION",
"interestByRegion": [
{
"regionCode": "US-WY",
"regionName": "Wyoming",
"interest": 100
},
{
"regionCode": "US-UT",
"regionName": "Utah",
"interest": 61
}
],
"relatedQueries": {
"top": [
{
"query": "pickleball paddle",
"value": 100,
"url": "https://trends.google.com/trends/explore?q=pickleball+paddle&date=today+12-m&geo=US"
},
{
"query": "pickleball courts",
"value": 49,
"url": "https://trends.google.com/trends/explore?q=pickleball+courts&date=today+12-m&geo=US"
}
],
"rising": [
{
"query": "best pickleball paddles 2026",
"value": 3450,
"formattedValue": "+3,450%",
"isBreakout": false,
"url": "https://trends.google.com/trends/explore?q=best+pickleball+paddles+2026&date=today+12-m&geo=US"
},
{
"query": "pilla pickleball glasses",
"value": 1750,
"formattedValue": "+1,750%",
"isBreakout": false,
"url": "https://trends.google.com/trends/explore?q=pilla+pickleball+glasses&date=today+12-m&geo=US"
}
]
}
},
"credits": {
"used": 1,
"remaining": 99
}
}One GET request
Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.
GET/v1/google/trends
Costs 1 credit per request. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
qrequired |
string | One search term, up to 100 characters. Commas are not accepted: a request measures one term, not a comparison. |
geooptional |
string | Two-letter country code, such as US. Without it the answer is worldwide. |
periodoptional |
string | How far back to look: the past hour (1h), 4 hours (4h), day (1d), 7 days (7d), 30 days (1m), 90 days (3m), 12 months (12m), 5 years (5y), or everything since 2004 (all). One of: 1h, 4h, 1d, 7d, 1m, 3m, 12m, 5y, all. Default: 12m. |
Good to know
- The values are Google Trends' own, unfiltered: the same numbers and lists its page shows for the search (checked against the page on 2026-11-19). Every interest value is Google's index from 0 to 100, where 100 is the highest point of the period or the region with the most interest. It is not a number of searches.
- Google Trends' data has oddities, and they are passed on as they are. For some terms the rising list holds queries that have nothing to do with the term, and one small state can stand far ahead of all the others: on 2026-11-19 Wyoming led the United States for coffee, pickleball and electric cars. Treat a surprising first region or rising query with the care you would on the page itself.
- A point of the timeline covers a week when the period is 12 months, and less for shorter periods; interval names it. Its date is the first day it covers, so the first point can lie before startDate. The last point is usually incomplete and marked isPartial, and the summary leaves it out. summary.trendChangePercent sets the average of the last quarter of the period against the first quarter; trendDirection is rising from +10 %, falling from -10 % and stable in between.
- Regions are countries when geo is left out, and the regions or states of the country when it is given. Up to 25 top and 25 rising related queries are returned. Not included: related topics, which Google does not give to automated clients although its page shows them, and comparisons of several terms.
- A term with too little search volume for the place and period answers 404 no_data and costs nothing. Google Trends limits how many searches one address may make: when it turns ours away, the request answers 502 upstream_error, costs nothing and can be sent again.
What people build with it
Track demand for a product or a topic
Call the endpoint on a schedule and store the timeline to see whether interest in a term grows or fades.
Find the season of a term
A 5-year period shows at what time of the year interest in a term peaks.
Compare regions
Interest by region is Google Trends' own ranking of where a term is searched for the most. Look twice at a region that leads by a wide margin, as you would on the page.
Keyword research
The related queries are the searches Google Trends lists next to a term, by popularity and by growth. Read the rising list before you use it: for some terms it holds unrelated queries.
Buy credits once. Use them whenever.
This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.
A request costs 1 credit. Requests that return nothing are free.
- $2.42 per 1,000 credits
- About $12.08 a month at this pace
- Lasts about 2.4 months at this pace
- Credits never expire
Questions and answers
Is this the official Google Trends API?
No. Pipefetch is an independent service and is not affiliated with Google. It returns the data the Google Trends website shows for a search, read at the moment of your request.
Is the data the same as on the Google Trends page?
Yes, with one exception. The values are Google Trends' own, unfiltered: the same numbers, regions and related queries its page shows for the search (checked against the page on 2026-11-19). The exception is related topics: the page shows them, but Google does not give them to automated clients, so they are not included.
Why is the first region or a rising query so unexpected?
Google Trends' data has oddities, and they are passed on as they are. For some terms the rising list holds queries that have nothing to do with the term, and one small state can stand far ahead of all the others: on 2026-11-19 Wyoming led the United States for coffee, pickleball and electric cars. Treat a surprising first region or rising query with the same care you would on the page itself.
What do the numbers mean?
Google Trends publishes an index from 0 to 100, not search volumes. In the timeline, 100 is the point of highest interest in the period. In the regions, 100 is the region where the term is the most popular. For a top query, value is its popularity from 0 to 100 relative to the first query in the list. For a rising query, value is its growth over the period in percent, and isBreakout is true when Google Trends labels the query Breakout, which it does above 5,000 %.
Which periods and places can I ask for?
Nine periods, from the past hour to everything since 2004; the default is the past 12 months. The place is the whole world or one country, given as a two-letter code. A single region or city inside a country cannot be asked for on its own. A request measures one term on its own scale, so several terms cannot be compared in one request.
What if a term has too little data, or Google turns the request away?
A term with too little search volume answers 404 no_data and costs nothing; a longer period, the whole world instead of one country, or a broader term may have enough. Google Trends also limits how many searches one address may make. When it turns ours away, the request answers 502 upstream_error, costs nothing, and can be sent again.
What does a request cost?
One request costs 1 credit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 100 free credits without a card.
Step-by-step guides
pytrends 429 TooManyRequestsError: what it means and what to do
What the error is, why the archived library will not get a fix, what waiting and retrying really do, and the other routes to Google Trends data.
Read the guideHow to get Google Trends data in Python
pytrends, Google's own Trends API alpha, the CSV export, the BigQuery dataset and an HTTP API, with code and the limits of each.
Read the guideWhy is Wyoming first in Google Trends?
What we saw on 2026-11-19, what Google documents about how regional values are computed, and how to read a ranking with a surprising leader.
Read the guide
More Google APIs
-
1 credit
Google Hotels API
Hotels for a place with Google's prices for your dates: nightly and total price, rating, star class, amenities and location.
GET /v1/google/hotels -
1 credit
Google News API
The articles Google News lists for a search: headline, publisher, publish time and Google News link, plus a coverage summary.
GET /v1/google/news -
1 credit
Google Search API
The first page of Google results for a search: rank, title, link, domain, snippet and date of each result, plus related searches.
GET /v1/google/search
Other sources
YouTubeInstagramWebsitesTikTokFacebookThreadsLinkedInApp storesSteamXPinterestAirbnbReal estateKeywordsJob boardsEventbriteShopify storesPublic tenders
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 100 free credits.