Google Trends hub

Google Trends Categories API

Every category id with its name, depth, parent and full path, so a filter can be checked before it is used.

GET /v1/google-trends/categories

1 credit Failed requests are free

About this endpoint

GET /v1/google-trends/categories returns the category tree used by the category filter on the explore routes. The tree has 1,426 nodes and language localises the names. The trending list has its own, smaller category set and does not use this tree. data.categories[] is flattened with parents before children: each row has id, name, level, parentId and path, where level 1 is a top-level category, parentId is null, and path is the ancestor ids from the root through the row.

Category ids repeat in different branches, and the same id can even sit under the same parentId in two branches, so neither id nor id with parentId is an identity. Key on path, which is unique for every row. category 0 on the explore routes means all categories; a number that is not in this list is refused as input.

Google Trends Categories API FAQ

Why do some ids appear more than once?

The same category id can sit under more than one parent, and the same id and parentId can repeat in different branches. Use path, the ancestor ids from the root through the row, which is unique for every row.

How do I send a category?

Pass category with a number from this list on an explore route, for example 71 for Food & Drink. Omit it or send 0 to mean all categories.

Are the names translated?

Yes. language localises the names. A language Google does not offer falls back to English names; the answer still echoes the language you sent.

Is the tree complete?

Yes. The answer carries every node the category list offers, 1,426 in the English tree, with parents before children.

How much does a category lookup cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.