# 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 | 카테고리 이름. |
| `name_en` | string \| null | 영문 이름(있는 경우). |
| `parent_id` | string \| null | 상위 카테고리. 최상위면 null. |
| `level` | integer \| null | 트리 내 깊이, 최상위는 1. |
| `has_children` | boolean \| null | 하위 카테고리 존재 여부. |
| `products` | integer \| null | 포함된 상품 수(상점이 집계하는 경우). |
| `ext` | object | 플랫폼별 추가 필드. view=full일 때만 반환됩니다. |

## Endpoints that return a ProductCategory

- [TikTok Shop 카테고리](https://okdata.online/apis/tiktok/shop/categories/list/) (`tiktok.shop.categories.list`): $0.002 per call · about 300 results per page
- [1688 카테고리](https://okdata.online/apis/alibaba_1688/categories/list/) (`alibaba_1688.categories.list`): $0.022 per call · about 52 results per page
- [1688 공급업체 카테고리](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`
