About the API:
Google Trends allows you to know what is the most trending topic on Google Search at the moment. Be able to recognize trends not only live but also through time and regions.
Just pass the search term that you want to compare, and extract data to know what is the most popular topic through time and also, by region.
Content Inspiration: By studying the related queries and focusing on those that are breakouts, you can be inspired to create new content that speaks to what people are clamoring for at the moment.
Comparing Topics: Being able to compare topics quickly can have many useful applications. When it comes to picking a title for your article, for example, you can see if people are more like to search for, “tips”, “tricks”, or, “hacks” and make your decision based on which term has the highest traffic.
Compelling Visuals: Google Trends isn’t complicated by an abundance of resources. It shows you how well your queries are performing over time or for different reasons, allowing for easy-to-interpret visualizations. These can be very useful for presentations because they’re so easy to read.
Besides the number of API calls per month:
Be able to retrieve the interest over time for multiple topics of your choice.
This endpoint can retrieve information in these timeframes:
The parameter is used to define a date. Available options:now 1-H - Past hournow 4-H - Past 4 hoursnow 1-d - Past daynow 7-d - Past 7 daystoday 1-m - Past 30 daystoday 3-m - Past 90 daystoday 12-m - Past 12 monthstoday 5-y - Past 5 yearsall - 2004 - present
Get Interest Over Time - Endpoint Features
| Object | Description |
|---|---|
q |
[Required] The search query. |
date |
[Required] |
{
"search_metadata": {
"id": "673ddb69c1c8dd3be1853761",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/74d2a9671992550c/673ddb69c1c8dd3be1853761.json",
"created_at": "2024-11-20 12:51:53 UTC",
"processed_at": "2024-11-20 12:51:53 UTC",
"google_trends_url": "https://trends.google.com/trends/api/explore?hl=en&tz=420&req=%7B%22comparisonItem%22%3A%5B%7B%22keyword%22%3A%22NBA%22%2C%22geo%22%3A%22%22%2C%22time%22%3A%22today+3-m%22%7D%5D%2C%22category%22%3A0%2C%22property%22%3A%22%22%2C%22userConfig%22%3A%22%7BuserType%3A+%5C%22USER_TYPE_LEGIT_USER%5C%22%7D%22%7D",
"raw_html_file": "https://serpapi.com/searches/74d2a9671992550c/673ddb69c1c8dd3be1853761.html",
"prettify_html_file": "https://serpapi.com/searches/74d2a9671992550c/673ddb69c1c8dd3be1853761.prettify",
"total_time_taken": 8.08
},
"search_parameters": {
"engine": "google_trends",
"q": "NBA",
"hl": "en",
"date": "today 3-m",
"tz": "420",
"data_type": "TIMESERIES"
},
"interest_over_time": {
"timeline_data": [
{
"date": "Aug 20, 2024",
"timestamp": "1724112000",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Aug 21, 2024",
"timestamp": "1724198400",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Aug 22, 2024",
"timestamp": "1724284800",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Aug 23, 2024",
"timestamp": "1724371200",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Aug 24, 2024",
"timestamp": "1724457600",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Aug 25, 2024",
"timestamp": "1724544000",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Aug 26, 2024",
"timestamp": "1724630400",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Aug 27, 2024",
"timestamp": "1724716800",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Aug 28, 2024",
"timestamp": "1724803200",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Aug 29, 2024",
"timestamp": "1724889600",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Aug 30, 2024",
"timestamp": "1724976000",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Aug 31, 2024",
"timestamp": "1725062400",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 1, 2024",
"timestamp": "1725148800",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 2, 2024",
"timestamp": "1725235200",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 3, 2024",
"timestamp": "1725321600",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 4, 2024",
"timestamp": "1725408000",
"values": [
{
"query": "NBA",
"value": "12",
"extracted_value": 12
}
]
},
{
"date": "Sep 5, 2024",
"timestamp": "1725494400",
"values": [
{
"query": "NBA",
"value": "12",
"extracted_value": 12
}
]
},
{
"date": "Sep 6, 2024",
"timestamp": "1725580800",
"values": [
{
"query": "NBA",
"value": "12",
"extracted_value": 12
}
]
},
{
"date": "Sep 7, 2024",
"timestamp": "1725667200",
"values": [
{
"query": "NBA",
"value": "12",
"extracted_value": 12
}
]
},
{
"date": "Sep 8, 2024",
"timestamp": "1725753600",
"values": [
{
"query": "NBA",
"value": "12",
"extracted_value": 12
}
]
},
{
"date": "Sep 9, 2024",
"timestamp": "1725840000",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 10, 2024",
"timestamp": "1725926400",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 11, 2024",
"timestamp": "1726012800",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 12, 2024",
"timestamp": "1726099200",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 13, 2024",
"timestamp": "1726185600",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 14, 2024",
"timestamp": "1726272000",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 15, 2024",
"timestamp": "1726358400",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 16, 2024",
"timestamp": "1726444800",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 17, 2024",
"timestamp": "1726531200",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 18, 2024",
"timestamp": "1726617600",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 19, 2024",
"timestamp": "1726704000",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 20, 2024",
"timestamp": "1726790400",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 21, 2024",
"timestamp": "1726876800",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 22, 2024",
"timestamp": "1726963200",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 23, 2024",
"timestamp": "1727049600",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 24, 2024",
"timestamp": "1727136000",
"values": [
{
"query": "NBA",
"value": "9",
"extracted_value": 9
}
]
},
{
"date": "Sep 25, 2024",
"timestamp": "1727222400",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 26, 2024",
"timestamp": "1727308800",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 27, 2024",
"timestamp": "1727395200",
"values": [
{
"query": "NBA",
"value": "10",
"extracted_value": 10
}
]
},
{
"date": "Sep 28, 2024",
"timestamp": "1727481600"}]},"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/281/google+trends+api/246/get+interest+over+time?q=NBA&date=today 3-m' --header 'Authorization: Bearer YOUR_API_KEY'
Get the regions that are most interested in the search term of your choice.
Get Interest By Region - Endpoint Features
| Object | Description |
|---|---|
q |
[Required] The search term of your choice. |
{
"search_metadata": {
"id": "669fbe9a7690dc62b6015441",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/525387bc50ac4233/669fbe9a7690dc62b6015441.json",
"created_at": "2024-07-23 14:30:50 UTC",
"processed_at": "2024-07-23 14:30:50 UTC",
"google_trends_url": "https://trends.google.com/trends/api/explore?tz=420&req=%7B%22comparisonItem%22%3A%5B%7B%22keyword%22%3A%22us+open%22%2C%22geo%22%3A%22%22%2C%22time%22%3A%22today+12-m%22%7D%5D%2C%22category%22%3A0%2C%22property%22%3A%22%22%2C%22userConfig%22%3A%22%7BuserType%3A+%5C%22USER_TYPE_LEGIT_USER%5C%22%7D%22%7D",
"raw_html_file": "https://serpapi.com/searches/525387bc50ac4233/669fbe9a7690dc62b6015441.html",
"prettify_html_file": "https://serpapi.com/searches/525387bc50ac4233/669fbe9a7690dc62b6015441.prettify",
"total_time_taken": 5.68
},
"search_parameters": {
"engine": "google_trends",
"q": "us open",
"date": "today 12-m",
"tz": "420",
"data_type": "GEO_MAP_0"
},
"interest_by_region": [
{
"geo": "CA",
"location": "Canada",
"max_value_index": 0,
"value": "100",
"extracted_value": 100
},
{
"geo": "IE",
"location": "Ireland",
"max_value_index": 0,
"value": "94",
"extracted_value": 94
},
{
"geo": "US",
"location": "United States",
"max_value_index": 0,
"value": "91",
"extracted_value": 91
},
{
"geo": "RS",
"location": "Serbia",
"max_value_index": 0,
"value": "89",
"extracted_value": 89
},
{
"geo": "AT",
"location": "Austria",
"max_value_index": 0,
"value": "89",
"extracted_value": 89
},
{
"geo": "IT",
"location": "Italy",
"max_value_index": 0,
"value": "86",
"extracted_value": 86
},
{
"geo": "AU",
"location": "Australia",
"max_value_index": 0,
"value": "84",
"extracted_value": 84
},
{
"geo": "CL",
"location": "Chile",
"max_value_index": 0,
"value": "82",
"extracted_value": 82
},
{
"geo": "NZ",
"location": "New Zealand",
"max_value_index": 0,
"value": "77",
"extracted_value": 77
},
{
"geo": "TN",
"location": "Tunisia",
"max_value_index": 0,
"value": "76",
"extracted_value": 76
},
{
"geo": "CH",
"location": "Switzerland",
"max_value_index": 0,
"value": "70",
"extracted_value": 70
},
{
"geo": "AR",
"location": "Argentina",
"max_value_index": 0,
"value": "68",
"extracted_value": 68
},
{
"geo": "ES",
"location": "Spain",
"max_value_index": 0,
"value": "60",
"extracted_value": 60
},
{
"geo": "PY",
"location": "Paraguay",
"max_value_index": 0,
"value": "58",
"extracted_value": 58
},
{
"geo": "ZA",
"location": "South Africa",
"max_value_index": 0,
"value": "54",
"extracted_value": 54
},
{
"geo": "GB",
"location": "United Kingdom",
"max_value_index": 0,
"value": "53",
"extracted_value": 53
},
{
"geo": "SG",
"location": "Singapore",
"max_value_index": 0,
"value": "49",
"extracted_value": 49
},
{
"geo": "UY",
"location": "Uruguay",
"max_value_index": 0,
"value": "45",
"extracted_value": 45
},
{
"geo": "RO",
"location": "Romania",
"max_value_index": 0,
"value": "45",
"extracted_value": 45
},
{
"geo": "FR",
"location": "France",
"max_value_index": 0,
"value": "41",
"extracted_value": 41
},
{
"geo": "SE",
"location": "Sweden",
"max_value_index": 0,
"value": "40",
"extracted_value": 40
},
{
"geo": "DE",
"location": "Germany",
"max_value_index": 0,
"value": "39",
"extracted_value": 39
},
{
"geo": "HR",
"location": "Croatia",
"max_value_index": 0,
"value": "37",
"extracted_value": 37
},
{
"geo": "EC",
"location": "Ecuador",
"max_value_index": 0,
"value": "35",
"extracted_value": 35
},
{
"geo": "BE",
"location": "Belgium",
"max_value_index": 0,
"value": "34",
"extracted_value": 34
},
{
"geo": "CR",
"location": "Costa Rica",
"max_value_index": 0,
"value": "34",
"extracted_value": 34
},
{
"geo": "DK",
"location": "Denmark",
"max_value_index": 0,
"value": "34",
"extracted_value": 34
},
{
"geo": "CO",
"location": "Colombia",
"max_value_index": 0,
"value": "33",
"extracted_value": 33
},
{
"geo": "PE",
"location": "Peru",
"max_value_index": 0,
"value": "32",
"extracted_value": 32
},
{
"geo": "BR",
"location": "Brazil",
"max_value_index": 0,
"value": "30",
"extracted_value": 30
},
{
"geo": "VE",
"location": "Venezuela",
"max_value_index": 0,
"value": "29",
"extracted_value": 29
},
{
"geo": "PL",
"location": "Poland",
"max_value_index": 0,
"value": "29",
"extracted_value": 29
},
{
"geo": "PT",
"location": "Portugal",
"max_value_index": 0,
"value": "28",
"extracted_value": 28
},
{
"geo": "HK",
"location": "Hong Kong",
"max_value_index": 0,
"value": "28",
"extracted_value": 28
},
{
"geo": "AE",
"location": "United Arab Emirates",
"max_value_index": 0,
"value": "27",
"extracted_value": 27
},
{
"geo": "MX",
"location": "Mexico",
"max_value_index": 0,
"value": "26",
"extracted_value": 26
},
{
"geo": "MY",
"location": "Malaysia",
"max_value_index": 0,
"value": "24",
"extracted_value": 24
},
{
"geo": "GR",
"location": "Greece",
"max_value_index": 0,
"value": "22",
"extracted_value": 22
},
{
"geo": "IL",
"location": "Israel",
"max_value_index": 0,
"value": "21",
"extracted_value": 21
},
{
"geo": "NL",
"location": "Netherlands",
"max_value_index": 0,
"value": "21",
"extracted_value": 21
},
{
"geo": "BG",
"location": "Bulgaria",
"max_value_index": 0,
"value": "20",
"extracted_value": 20
},
{
"geo": "PK",
"location": "Pakistan",
"max_value_index": 0,
"value": "19",
"extracted_value": 19
},
{
"geo": "IN",
"location": "India",
"max_value_index": 0,
"value": "19",
"extracted_value": 19
},
{
"geo": "CZ",
"location": "Czechia",
"max_value_index": 0,
"value": "18",
"extracted_value": 18
},
{
"geo": "NG",
"location": "Nigeria",
"max_value_index": 0,
"value": "18",
"extracted_value": 18
},
{
"geo": "PH",
"location": "Philippines",
"max_value_index": 0,
"value": "18",
"extracted_value": 18
},
{
"geo": "NO",
"location": "Norway",
"max_value_index": 0,
"value": "17",
"extracted_value": 17
},
{
"geo": "MA",
"location": "Morocco",
"max_value_index": 0,
"value": "16",
"extracted_value": 16
},
{
"geo": "HU",
"location": "Hungary",
"max_value_index": 0,
"value": "13",
"extracted_value": 13
},
{
"geo": "BD",
"location": "Bangladesh",
"max_value_index": 0,
"value": "9",
"extracted_value": 9
},
{
"geo": "TW",
"location": "Taiwan",
"max_value_index": 0,
"value": "8",
"extracted_value": 8
},
{
"geo": "KR",
"location": "South Korea",
"max_value_index": 0,
"value": "8",
"extracted_value": 8
},
{
"geo": "EG",
"location": "Egypt",
"max_value_index": 0,
"value": "7",
"extracted_value": 7
},
{
"geo": "VN",
"location": "Vietnam",
"max_value_index": 0,
"value": "7",
"extracted_value": 7
},
{
"geo": "TH",
"location": "Thailand",
"max_value_index": 0,
"value": "6",
"extracted_value": 6
},
{
"geo": "ID",
"location": "Indonesia",
"max_value_index": 0,
"value": "5",
"extracted_value": 5
},
{
"geo": "RU",
"location": "Russia",
"max_value_index": 0,
"value": "5",
"extracted_value": 5
},
{
"geo": "TR",
"location": "Türkiye",
"max_value_index": 0,
"value": "3",
"extracted_value": 3
},
{
"geo": "JP",
"location": "Japan",
"max_value_index": 0,
"value": "1",
"extracted_value": 1
}
]
}
curl --location --request GET 'https://zylalabs.com/api/281/google+trends+api/247/get+interest+by+region?q=us open' --header 'Authorization: Bearer YOUR_API_KEY'
With the chance to query various search terms (max 5) at once, you will be receiving a breakdown by region and the trend of every search term.
Get Trends Compared Breakdown By Region - Endpoint Features
| Object | Description |
|---|---|
q |
[Required] The search terms that you want to query. Max 5. |
{
"search_metadata": {
"id": "664faae11e803fb8fcfbf13c",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/9d4201788253317d/664faae11e803fb8fcfbf13c.json",
"created_at": "2024-05-23 20:45:21 UTC",
"processed_at": "2024-05-23 20:45:21 UTC",
"google_trends_url": "https://trends.google.com/trends/api/explore?tz=420&req=%7B%22comparisonItem%22%3A%5B%7B%22keyword%22%3A%22nba%22%2C%22geo%22%3A%22%22%2C%22time%22%3A%22today+12-m%22%7D%2C%7B%22keyword%22%3A%22hamilton%22%2C%22geo%22%3A%22%22%2C%22time%22%3A%22today+12-m%22%7D%5D%2C%22category%22%3A0%2C%22property%22%3A%22%22%2C%22userConfig%22%3A%22%7BuserType%3A+%5C%22USER_TYPE_LEGIT_USER%5C%22%7D%22%7D",
"raw_html_file": "https://serpapi.com/searches/9d4201788253317d/664faae11e803fb8fcfbf13c.html",
"prettify_html_file": "https://serpapi.com/searches/9d4201788253317d/664faae11e803fb8fcfbf13c.prettify",
"total_time_taken": 11.9
},
"search_parameters": {
"engine": "google_trends",
"q": "nba, hamilton",
"date": "today 12-m",
"tz": "420",
"data_type": "GEO_MAP"
},
"compared_breakdown_by_region": [
{
"geo": "PH",
"location": "Philippines",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "99%",
"extracted_value": 99
},
{
"query": "hamilton",
"value": "1%",
"extracted_value": 1
}
]
},
{
"geo": "DO",
"location": "Dominican Republic",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "100%",
"extracted_value": 100
},
{
"query": "hamilton",
"value": "<1%",
"extracted_value": 0
}
]
},
{
"geo": "VE",
"location": "Venezuela",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "99%",
"extracted_value": 99
},
{
"query": "hamilton",
"value": "1%",
"extracted_value": 1
}
]
},
{
"geo": "PR",
"location": "Puerto Rico",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "97%",
"extracted_value": 97
},
{
"query": "hamilton",
"value": "3%",
"extracted_value": 3
}
]
},
{
"geo": "MN",
"location": "Mongolia",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "100%",
"extracted_value": 100
},
{
"query": "hamilton",
"value": "<1%",
"extracted_value": 0
}
]
},
{
"geo": "TW",
"location": "Taiwan",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "100%",
"extracted_value": 100
},
{
"query": "hamilton",
"value": "<1%",
"extracted_value": 0
}
]
},
{
"geo": "CU",
"location": "Cuba",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "96%",
"extracted_value": 96
},
{
"query": "hamilton",
"value": "4%",
"extracted_value": 4
}
]
},
{
"geo": "US",
"location": "United States",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "87%",
"extracted_value": 87
},
{
"query": "hamilton",
"value": "13%",
"extracted_value": 13
}
]
},
{
"geo": "HK",
"location": "Hong Kong",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "98%",
"extracted_value": 98
},
{
"query": "hamilton",
"value": "2%",
"extracted_value": 2
}
]
},
{
"geo": "CA",
"location": "Canada",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "57%",
"extracted_value": 57
},
{
"query": "hamilton",
"value": "43%",
"extracted_value": 43
}
]
},
{
"geo": "AU",
"location": "Australia",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "81%",
"extracted_value": 81
},
{
"query": "hamilton",
"value": "19%",
"extracted_value": 19
}
]
},
{
"geo": "NZ",
"location": "New Zealand",
"max_value_index": 1,
"values": [
{
"query": "nba",
"value": "28%",
"extracted_value": 28
},
{
"query": "hamilton",
"value": "72%",
"extracted_value": 72
}
]
},
{
"geo": "PA",
"location": "Panama",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "94%",
"extracted_value": 94
},
{
"query": "hamilton",
"value": "6%",
"extracted_value": 6
}
]
},
{
"geo": "SI",
"location": "Slovenia",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "97%",
"extracted_value": 97
},
{
"query": "hamilton",
"value": "3%",
"extracted_value": 3
}
]
},
{
"geo": "SG",
"location": "Singapore",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "86%",
"extracted_value": 86
},
{
"query": "hamilton",
"value": "14%",
"extracted_value": 14
}
]
},
{
"geo": "RS",
"location": "Serbia",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "97%",
"extracted_value": 97
},
{
"query": "hamilton",
"value": "3%",
"extracted_value": 3
}
]
},
{
"geo": "CR",
"location": "Costa Rica",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "89%",
"extracted_value": 89
},
{
"query": "hamilton",
"value": "11%",
"extracted_value": 11
}
]
},
{
"geo": "BR",
"location": "Brazil",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "93%",
"extracted_value": 93
},
{
"query": "hamilton",
"value": "7%",
"extracted_value": 7
}
]
},
{
"geo": "CL",
"location": "Chile",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "91%",
"extracted_value": 91
},
{
"query": "hamilton",
"value": "9%",
"extracted_value": 9
}
]
},
{
"geo": "ES",
"location": "Spain",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "89%",
"extracted_value": 89
},
{
"query": "hamilton",
"value": "11%",
"extracted_value": 11
}
]
},
{
"geo": "GR",
"location": "Greece",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "91%",
"extracted_value": 91
},
{
"query": "hamilton",
"value": "9%",
"extracted_value": 9
}
]
},
{
"geo": "IL",
"location": "Israel",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "95%",
"extracted_value": 95
},
{
"query": "hamilton",
"value": "5%",
"extracted_value": 5
}
]
},
{
"geo": "HR",
"location": "Croatia",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "92%",
"extracted_value": 92
},
{
"query": "hamilton",
"value": "8%",
"extracted_value": 8
}
]
},
{
"geo": "MY",
"location": "Malaysia",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "92%",
"extracted_value": 92
},
{
"query": "hamilton",
"value": "8%",
"extracted_value": 8
}
]
},
{
"geo": "MX",
"location": "Mexico",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "87%",
"extracted_value": 87
},
{
"query": "hamilton",
"value": "13%",
"extracted_value": 13
}
]
},
{
"geo": "AE",
"location": "United Arab Emirates",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "87%",
"extracted_value": 87
},
{
"query": "hamilton",
"value": "13%",
"extracted_value": 13
}
]
},
{
"geo": "EC",
"location": "Ecuador",
"max_value_index": 0,
"values": [
{
"query": "nba",
"value": "91%",
"extracted_value": 91
},
{
"query": "hamilton",
"value": "9%"}]}],"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/281/google+trends+api/248/get+trends+compared+breakdown+by+region?q=NBA, Wimbledon, Hamilton' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Each endpoint returns JSON data containing insights on trending topics. The "Get Interest Over Time" endpoint provides time-based interest metrics, while "Get Interest By Region" reveals geographic interest levels. The "Get Trends Compared Breakdown By Region" offers comparative data for multiple search terms across different regions.
Key fields include "search_metadata" for request status and timestamps, "search_parameters" detailing the query, and specific data points like "interest_over_time" or "interest_by_region" that contain trend metrics and geographic breakdowns.
Parameters include "q" for the search term, "time" to specify the timeframe (e.g., "today 3-m"), and "geo" for geographic filtering. Users can customize requests by combining these parameters to refine their data output.
The response is structured in a JSON format, with a top-level "search_metadata" object followed by "search_parameters" and the relevant data arrays. Each data array contains time or region-specific metrics, making it easy to parse and analyze.
The data is sourced directly from Google Trends, reflecting real-time search interest and historical trends. The API ensures data accuracy by leveraging Google's extensive search data infrastructure.
Common use cases include content creation based on trending topics, market research to identify regional interests, and competitive analysis by comparing search terms. Users can also visualize trends for presentations or reports.
Users can analyze the "interest_over_time" data to identify peak interest periods and use "interest_by_region" to target specific demographics. This information can guide marketing strategies and content development.
If results are partial or empty, users should check their query parameters for accuracy. Adjusting the search term or timeframe may yield better results. Additionally, reviewing the "status" field in "search_metadata" can provide insights into request success.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
142ms
Service Level:
100%
Response Time:
402ms
Service Level:
100%
Response Time:
141ms
Service Level:
100%
Response Time:
114ms
Service Level:
100%
Response Time:
278ms
Service Level:
100%
Response Time:
788ms
Service Level:
100%
Response Time:
3,298ms
Service Level:
100%
Response Time:
572ms
Service Level:
100%
Response Time:
18ms
Service Level:
100%
Response Time:
350ms
Service Level:
100%
Response Time:
958ms
Service Level:
100%
Response Time:
717ms
Service Level:
100%
Response Time:
1,029ms
Service Level:
100%
Response Time:
194ms
Service Level:
100%
Response Time:
700ms
Service Level:
100%
Response Time:
1,173ms
Service Level:
100%
Response Time:
638ms
Service Level:
100%
Response Time:
624ms
Service Level:
100%
Response Time:
336ms
Service Level:
100%
Response Time:
193ms