Google Trends API

Keep a pulse on the latest trends with our Google Trends Scraping API.

To harness the power of this feature, simply incorporate the engine=google_trends parameter in your request.

Google Trends provides invaluable insights into the ebb and flow of search query popularity over time. By leveraging our Google Trends Scraping API, you gain access to this wealth of data, allowing you to craft strategic decisions, anticipate market shifts, and refine your marketing endeavors for maximum impact. Stay ahead of the curve by tapping into the collective consciousness of online searchers.

We will use following URL as an example for this request:

https://serp.shifter.io/v1?engine=google_trends&api_key=<YOUR_API_KEY>&geo=US&q=american%20football&date=2021-01-01%202022-01-01
curl --request GET --url "https://serp.shifter.io/v1?engine=google_trends&api_key=YOUR_API_KEY&geo=US&q=american%20football&date=2021-01-01%202022-01-01"

#1: Query Parameter

Parameter
Type
Description

q

string

The keyword that you are searching for (the query).

#2: Request Customisation Parameters

Parameter
Type
Description

geo

string

The location you want to find the results for. It defaults to worldwide. For a full list of supported geo options, feel free to check our list.

region

string

This parameter is used to get more specific results when using google_trends. Available options are: country, city, subregion, metro. This currently works only for compared_breakdown_by_region section. Please note that not all region options will return

results for all geo options.

date

string

You must use the format YYYY-MM-DD YYYY-MM-DD or one of the predefined values: now 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 5-y or all

cat

string

This is the category parameter. You can find the full list of Google Trends categories here.

Response Example

Last updated

Was this helpful?