Built-in tool
Get Google Trends
Get Google Trends interest over time for up to five search terms. Compare demand and research seasonal peaks for Google Search, YouTube, News, Images or Shopping.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| keywordsstring · required | string | required | One to five search terms, comma-separated (or an array). Each term must be 2–100 characters. These are search terms, not website-traffic lookups. |
| time_rangestring · optional | string | optional | History window. Use past_5_years when investigating annual seasonality. One of: Default: |
| search_typestring · optional | string | optional | Search channel: web = Google Search, froogle = Google Shopping. One of: Default: |
| language_namestring · optional | string | optional | Google Trends interface language; not a search-language filter. Defaults to English. Default: Example: |
| location_namestring · optional | string | optional | Google Trends location name, e.g. United States or United Kingdom. Omit or leave blank for Worldwide. Use the business’s target market when known. Example: |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"elements",
"location_used",
"search_type",
"time_range",
"metric"
],
"properties": {
"metric": {
"type": "string",
"const": "relative_interest_0_100"
},
"elements": {
"type": "array",
"items": {
"type": "object",
"required": [
"keyword",
"average_interest",
"check_url",
"collected_at",
"timeline"
],
"properties": {
"keyword": {
"type": "string"
},
"timeline": {
"type": "array",
"items": {
"type": "object",
"required": [
"date_from",
"date_to",
"timestamp",
"interest",
"missing_data"
],
"properties": {
"date_to": {
"type": [
"string",
"null"
]
},
"interest": {
"anyOf": [
{
"type": "number",
"maximum": 100,
"minimum": 0
},
{
"type": "null"
}
],
"description": "Relative interest, not search volume. Zero means insufficient data; null means no value was returned."
},
"date_from": {
"type": [
"string",
"null"
]
},
"timestamp": {
"type": [
"number",
"null"
]
},
"missing_data": {
"type": [
"boolean",
"null"
],
"description": "True marks an incomplete or unavailable interval. Exclude it from growth and seasonality comparisons."
}
},
"additionalProperties": false
},
"description": "The complete dated series returned by Google Trends, including missing intervals."
},
"check_url": {
"type": [
"string",
"null"
]
},
"collected_at": {
"type": [
"string",
"null"
]
},
"average_interest": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"returned": {
"type": "number",
"description": "How many rows this run returned, after any Limit was applied."
},
"truncated": {
"type": "boolean"
},
"suggestion": {
"type": "string"
},
"time_range": {
"type": "string"
},
"totalCount": {
"type": "number",
"description": "How many records the provider says MATCH in total, independent of Limit — routinely in the millions (spotify.com has 2,583,327 ranking pages). It is a match count, NOT how many this endpoint will serve: Limit caps what one call returns, so do not compare it against the row count to judge completeness and do not paginate towards it. Absent when the provider sent no count."
},
"search_type": {
"type": "string"
},
"location_used": {
"type": "string"
},
"totalElements": {
"type": "number",
"description": "DEPRECATED — despite the name this is the count RETURNED by this run, not a grand total, so it equals your Limit on a limited run. Kept at that value deliberately: ENG-17058 asked for depth 5 to report 5, and it is a live number in existing flows. Use `returned` for this number or `totalCount` for how many records match."
}
},
"additionalProperties": true
}