> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/google-trends/categories>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/google-trends/categories.mdx>

---

# 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` 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.

## Request

- **Endpoint:** `GET /v1/google-trends/categories`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by language
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/google-trends/categories/get)
- **Platform page:** [/platforms/google-trends](https://www.socialfetch.dev/platforms/google-trends)

## 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.
