# สินค้า ร้านค้า และวิดีโอ (/th/growseller/docs/developers/catalog)

รายการสินค้า ร้านค้า และวิดีโอใน ค้นหา Creator วิธีที่รายการเหล่านี้เชื่อมถึงกันและถึง creator และวิธีเลือก creator ของรายการเหล่านั้น

**ใช้ทำอะไร:** ค้นหาสินค้า ร้านค้า และวิดีโอเบื้องหลัง creator (**ค้นหา Creator › สินค้า / ร้านค้า / วิดีโอ**): สินค้าขายดีของหมวดหมู่ สินค้าของร้านค้า วิดีโอที่ดีที่สุดของสินค้า สินค้าของ creator และจากรายการใดก็ได้ไปสู่ creator ที่จะร่วมงานด้วย

## หนึ่ง route สาม kind [#หนึ่ง-route-สาม-kind]

[`GET /creators/catalog`](/growseller/docs/api-reference/creators/get-creators-catalog) แสดงหนึ่ง `kind`: `product`, `store` หรือ `video` ของประเทศเดียว (ประเทศของร้านค้าใน `shop_id` หากไม่มีใช้ `region` รายการที่เปิดจากแถวใดใช้ประเทศของแถวนั้น) Shopee: [`GET /shopee/catalog`](/growseller/docs/api-reference/shopee-catalog/get-shopee-catalog) โดยใช้ร้านค้า Shopee เป็น `shop_id`

```bash
curl "https://seller.growpaces.com/api/v1/creators/catalog?kind=product&shop_id=SHOP_ID&category_id=601450&sort_by=sold&limit=20" \
  -H "Authorization: Bearer gsk_..."
```

แต่ละ kind มีตัวกรองของตัวเอง ตัวกรองของ kind อื่น การเรียงลำดับที่ kind นั้นไม่มี `min_` มากกว่า `max_` ความสัมพันธ์สองอย่างพร้อมกัน หรือ id เกิน 50 จะถูกปฏิเสธด้วย `422 VALIDATION_ERROR` และ `details.ctx.allowed` จะแสดงสิ่งที่ kind นั้นรับ

| Kind | `sort_by` (ตัวแรกคือค่าเริ่มต้น) | `min_` / `max_` | อื่นๆ |
| --- | --- | --- | --- |
| `product` | `creators`, `gmv`, `sold` | `creators`, `gmv`, `sold`, `price`, `rating` | |
| `store` | `creators`, `gmv`, `sold` | `creators`, `gmv`, `sold`, `price`, `rating` | |
| `video` | `plays`, `likes`, `comments`, `shares`, `released` | `plays`, `likes`, `comments`, `shares` | `with_product=true`, `released_within_days` (1–3650) |

ทุก kind รับ `search` (ชื่อ อย่างน้อย 2 ตัวอักษร หรือ id เต็มเมื่อใช้ `search_by=id`), `category_id` (คั่นด้วยจุลภาค จาก `GET /creators/categories`), `page` และ `limit` จำนวน (`creators`, `sold`, `plays`…) เป็นจำนวนเต็ม ส่วนเงิน (`gmv`, `price`) เป็นสกุลเงินของแถวนั้น

## ความสัมพันธ์: รายการเชื่อมถึงกันอย่างไร [#ความสัมพันธ์-รายการเชื่อมถึงกันอย่างไร]

เปิดรายการจากแถวของรายการอื่นด้วยความสัมพันธ์หนึ่งอย่าง ซึ่งใช้ชื่อเดียวกันทุกที่: `creator_account_ids`, `product_ids`, `store_ids`, `video_ids` (คั่นด้วยจุลภาค สูงสุด 50)

| รายการ | `creator_account_ids` | `product_ids` | `store_ids` | `video_ids` |
| --- | --- | --- | --- | --- |
| `kind=product` | สินค้าของ creator | สินค้าเหล่านั้น | สินค้าของร้านค้า | สินค้าที่แสดงในวิดีโอ |
| `kind=store` | ร้านค้าของ creator | ร้านค้าของสินค้า | ร้านค้าเหล่านั้น | ร้านค้าของสินค้าในวิดีโอ |
| `kind=video` | วิดีโอของ creator | วิดีโอของสินค้า | วิดีโอของร้านค้า | วิดีโอเหล่านั้น |
| `GET /creators` | | creator ของสินค้า (สินค้าและร้านค้ารวมสูงสุด 5) | creator ของร้านค้า | creator ของวิดีโอ (สูงสุด 50) |

`GET /shopee/creators` รับ `product_ids`, `store_ids` และ `video_ids` แบบเดียวกัน

## แถวและยอดรวม [#แถวและยอดรวม]

MCP ตอบแถวแบบย่อ เว้นแต่การเรียกระบุ `view` หรือ `fields` ส่วน REST ตอบแถวเต็ม เว้นแต่ขอ (`view=compact` หรือ `fields=id,name,sold`) ทุกคำตอบระบุ `kind` ของตัวเอง

| Kind | ฟิลด์แบบย่อ |
| --- | --- |
| `product` | `id`, `name`, `currency`, `price_min`, `price_max`, `sold`, `gmv`, `rating`, `creator_count`, `video_count`, `store_id`, `store_name`, `category_ids` |
| `store` | `id`, `name`, `currency`, `gmv`, `sold`, `rating`, `creator_count`, `product_count`, `video_count`, `category_ids` |
| `video` | `id`, `name` (แคปชัน), `released_at`, `play_cnt`, `like_cnt`, `comment_cnt`, `share_cnt`, `engagement` (เปอร์เซ็นต์), `product_count`, `creator_account_id`, `handle`, `product_ids` |

ผ่าน API ทุกรายการตอบ `total` ที่นับได้สูงสุด 50,000 (`total_capped: true`: มากกว่านั้น) นับด้วย `limit=1`

## เลือก creator ของรายการ [#เลือก-creator-ของรายการ]

การดำเนินการกับ creator รับ `selection` (ดู [Creator](/growseller/docs/developers/creators)):

- **creator ของสินค้าหรือร้านค้า:** `"source": "/creators"` กับ `"filters": {"store_ids": "…"}` (หรือ `product_ids` รวมกันสูงสุด 5) Shopee: `"source": "/shopee/creators"` กับ `product_ids` หรือ `store_ids`
- **creator ของวิดีโอในรายการ:** `"source": "/creators/catalog"` กับ `"filters": {"kind": "video", …}` creator แต่ละคนครั้งเดียวตามลำดับของรายการ (`total` นับวิดีโอ `matched` นับ creator) `GET /creators/catalog/ids?kind=video&start=1&end=…` ให้ id ชุดเดียวกัน
- รายการสินค้าหรือร้านค้าไม่มี selection ของ creator: `kind=product` หรือ `kind=store` บน `/creators/catalog/ids` (หรือเป็น selection) ได้ `422` พร้อมบอก route ที่ควรใช้แทน

รายการ Shopee ที่ใช้เป็น selection ของการดำเนินการ TikTok (หรือกลับกัน) จะถูกปฏิเสธด้วย `422` เพราะ creator อยู่คนละแพลตฟอร์ม

## ตัวอย่าง [#ตัวอย่าง]

**สินค้าความงามขายดี:** `GET /creators/catalog?kind=product&shop_id=…&category_id=601450&sort_by=sold&limit=1`

```json
{"kind": "product", "rows": [
  {"id": "1729382420060341472", "name": "MAYBELLINE Superstay Matte Ink …", "currency": "IDR",
   "price_min": 138900.0, "price_max": 138900.0, "sold": 14566665, "gmv": 1383876874995.0, "rating": 4.9,
   "creator_count": 19663, "video_count": 594, "store_id": "7494048773396071648",
   "store_name": "Maybelline Indonesia", "category_ids": ["601450", "848648", "601534"]}],
 "page": 1, "limit": 1, "has_more": true, "region": "ID", "total": 47515, "total_capped": false}
```

**creator ที่โปรโมตสินค้า X:** `GET /creators?shop_id=…&product_ids=1729382420060341472&limit=50` (GMV สูงสุดก่อน `total` คือจำนวน creator ของสินค้านั้น)

**วิดีโอที่ดีที่สุดของสินค้า X ใน 30 วันล่าสุด:** `GET /creators/catalog?kind=video&shop_id=…&product_ids=1729382420060341472&released_within_days=30&sort_by=plays&limit=1`

```json
{"kind": "video", "rows": [
  {"id": "7703468258191543560", "name": null, "released_at": "2026-11-02T07:11:19Z", "play_cnt": 284126,
   "like_cnt": 688, "comment_cnt": null, "share_cnt": null, "engagement": 0.24, "product_count": 1,
   "creator_account_id": "01a1f5fc-…", "handle": "hyper.modif", "product_ids": ["1729382420060341472"]}],
 "page": 1, "limit": 1, "has_more": true, "region": "ID", "total": 99, "total_capped": false}
```

**ร้านค้าแฟชั่นที่ GMV สูงสุด:** `GET /creators/catalog?kind=store&shop_id=…&category_id=601152&sort_by=gmv&limit=10`

**สินค้าของร้านค้า Y:** `GET /creators/catalog?kind=product&shop_id=…&store_ids=7494083639217390595&sort_by=sold`

**creator ของร้านค้า Wardah ลงใน group:** อ่านจำนวนด้วย `GET /creators?shop_id=…&store_ids=7493999781643847575&limit=1` จากนั้น

```json
POST /groups/assign
{"ids": ["GROUP_ID"],
 "selection": {"source": "/creators", "filters": {"shop_id": "…", "store_ids": "7493999781643847575"},
               "start": 1, "end": 10000}}
```

**วิดีโอ สินค้า และร้านค้าของ creator:** `GET /creators/catalog?kind=video&creator_account_ids=01a1f5fc-…` (หรือ `kind=product`, `kind=store`)

**วิดีโอที่มีมากกว่าหนึ่งล้าน play มีกี่รายการ:** `GET /creators/catalog?kind=video&shop_id=…&min_plays=1000000&limit=1` → `total` (5,442 ในอินโดนีเซีย)

**Shopee:** `GET /shopee/catalog?kind=product&shop_id=…&sort_by=creators` สินค้าของร้านค้าด้วย `store_ids` คอนเทนต์ของ creator ด้วย `kind=video&creator_account_ids=…` creator ของสินค้าด้วย `GET /shopee/creators?product_ids=…`

## ข้อมูลที่ Shopee มี [#ข้อมูลที่-shopee-มี]

Shopee ไม่ให้ GMV หรือจำนวนที่ขายได้ของสินค้า ไม่ให้ชื่อ GMV หรือจำนวนที่ขายได้ของร้านค้า และไม่ให้สินค้าของคอนเทนต์ ฟิลด์เหล่านั้นจึงว่าง และไม่เคยประมาณค่า ดังนั้นรายการ Shopee เรียงตาม `creators` (สินค้า ร้านค้า) หรือ `plays`, `likes`, `comments` (คอนเทนต์) กรองตาม `creators` และ `price` (สินค้า ร้านค้า) หรือ `plays`, `likes`, `comments` (คอนเทนต์) และรายการคอนเทนต์เปิดได้จาก creator เท่านั้น (`creator_account_ids`) ส่วน `product_ids` หรือ `store_ids` จะได้ `422`