# Sku

> 商品的一個規格（尺碼、顏色、套裝），帶自己的價格。

網頁版：https://okdata.online/zh/docs/objects/sku/

所有平台同一種結構。平台沒有的欄位為 null，meta.unavailable 會說明原因。用 fields= 只取需要的欄位。

| 欄位 | 型別 | 說明 |
|---|---|---|
| `id` | string | 規格（SKU）ID。 |
| `product_id` | string | 商品 ID。 |
| `name` | string | 構成這個規格的選項。 |
| `price` | number \| null | 這個規格的價格，單位見 currency。 |
| `original_price` | number \| null | 折前價（不同的話）。 |
| `currency` | string | ISO 4217 貨幣程式碼。 |
| `image_url` | string \| null | 這個選項的圖片。 |
| `stock` | integer \| null | 庫存（顯示的話）。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

## 返回 Sku 的介面

- [抖音電商商品規格](https://okdata.online/zh/apis/douyin_shop/products/skus/list/) (`douyin_shop.products.skus.list`): $0.054/次 · 每頁約 8 條結果

## 各 view 返回的欄位

每一級 view 都包含上一級的欄位。`view=compact` 最精簡；`full` 會在 `ext` 里加上平台特有欄位。

- compact：`id`, `product_id`, `name`, `price`, `original_price`, `currency`, `stock`
- standard：`image_url`
- full：`ext`
