List Google Trends categories
List the categories Google Trends explore requests accept.
Headers
Get your API keyAPI key (`sfk_...`)
Interface language, as Google calls `hl` (`en-US`, `de`, `ja`, `ar`). It localises names, dates and type text; it does not translate the queries.
pattern: ^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})?$
Endpoint-specific response payload.
`found` on success.
one of: found
The interface language the names use.
Number of categories in this response.
Flattened categories, parents before children. Each row's `path`, from the root through the row, is unique; `id` and `parentId` are not.
Category id, e.g. 71 for Food & Drink. A category can appear under more than one parent; `path` is unique.
Category name, localised by language.
Depth in the tree; 1 is a top-level category.
≥ 1
Parent category id; null for a top-level category.
Ancestor category ids from the root through this category, e.g. `[3, 612, 1116]`. The full path is unique for each row, even where `id`, `parentId` and `level` repeat.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/google-trends/categories?language=en-US" \
-H "x-api-key: YOUR_API_KEY"Responses
Google Trends categories.