Google Trends

List Google Trends categories

List the categories Google Trends explore requests accept.

GET/v1/google-trends/categories
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
languagestringquery

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})?$

Response fields
15

Endpoint-specific response payload.

datalookupStatus
string

`found` on success.

one of: found

datalanguage
string

The interface language the names use.

datatotal
integer

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.

datacategories[]id
integer

Category id, e.g. 71 for Food & Drink. A category can appear under more than one parent; `path` is unique.

datacategories[]name
string

Category name, localised by language.

datacategories[]level
integer

Depth in the tree; 1 is a top-level category.

≥ 1

datacategories[]parentId
integernullable

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.

datacategories[]path[]
integeroptional

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

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.