# ProductCategory

> A product category of a marketplace or a shop.

Canonical page: https://okdata.online/docs/objects/product_category/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `id` | string | Category ID; give it to the endpoints that list a category. |
| `name` | string | Kategoriename. |
| `name_en` | string \| null | Englischer Name, sofern angegeben. |
| `parent_id` | string \| null | Die übergeordnete Kategorie; null auf oberster Ebene. |
| `level` | integer \| null | Tiefe im Baum, 1 für die oberste Ebene. |
| `has_children` | boolean \| null | Ob es Unterkategorien gibt. |
| `products` | integer \| null | Enthaltene Produkte, sofern der Shop sie zählt. |
| `ext` | object | Plattformspezifische Zusatzfelder. Nur mit view=full. |

## Endpoints that return a ProductCategory

- [TikTok-Shop-Kategorien](https://okdata.online/apis/tiktok/shop/categories/list/) (`tiktok.shop.categories.list`): $0.002 per call · about 300 results per page
- [1688-Kategorien](https://okdata.online/apis/alibaba_1688/categories/list/) (`alibaba_1688.categories.list`): $0.022 per call · about 52 results per page
- [1688-Lieferantenkategorien](https://okdata.online/apis/alibaba_1688/shops/categories/list/) (`alibaba_1688.shops.categories.list`): $0.022 per call · about 10 results per page

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `id`, `name`, `name_en`, `parent_id`, `level`, `has_children`, `products`
- standard: —
- full: `ext`
