Google Trends API endpoint
Returns supported Google Trends enum values for explore/trending filters, including locations, date ranges, search types, categories, statuses, and sort modes.
/google/trends/enums| Field | In the sample | Value in the sample |
|---|---|---|
| explore_time_ranges | Has a value | 9 entries |
| trending_time_ranges | Has a value | 4 entries |
| search_types | Has a value | 5 entries |
| locations | Has a value | 251 entries |
| trending_categories | Has a value | 26 entries |
| trend_statuses | Has a value | 3 entries |
| trending_sort_bys | Has a value | 4 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/google/trends/enums" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"explore_time_ranges": [
"now 1-H",
"today 12-m"
],
"trending_time_ranges": [
"4h",
"24h",
"48h",
"7d"
],
"search_types": [
"web",
"image",
"news",
"youtube",
"shopping"
],
"locations": [
"WORLDWIDE",
"US",
"HK"
],
"trending_categories": [
{
"id": 0,
"name": "All"
}
],
"trend_statuses": [
"all",
"active",
"ended"
],
"trending_sort_bys": [
"relevance",
"title",
"recency",
"search_volume"
]
}
}Request schema
No body schema
Response schema
#/definitions/trends.trendsEnumsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | trends.TrendsEnumsResponse | No | ||||
| data.explore_time_ranges | array | No | Supported `time_range` values for the Explore endpoints. | |||
| data.locations | array | No | Supported location codes. | |||
| data.search_types | array | No | Supported search `type` values. | |||
| data.trend_statuses | array | No | Supported `status` values for Trending Now. | |||
| data.trending_categories | array | No | Supported category IDs for Trending Now, each with a name. | |||
| data.trending_categories[].id | integer | No | 0 | Trends category ID. Pass it as `category`. | ||
| data.trending_categories[].name | string | No | All | Category name, such as `All`. | ||
| data.trending_sort_bys | array | No | Supported `sort_by` values for Trending Now. | |||
| data.trending_time_ranges | array | No | Supported `window` values for Trending Now. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/google/trends/enums" \
-H "x-api-key: $CRAWLORA_API_KEY"