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