# Creator (/th/growseller/docs/developers/creators)

ค้นหา creator ในหน้า ค้นหา Creator อ่านโปรไฟล์ของ creator และดำเนินการกับ creator หลายพันคนในครั้งเดียวด้วย selection

**ใช้ทำอะไร:** ค้นหา creator (**ค้นหา Creator**) นับจำนวน และดำเนินการกับ creator หลายพันคนในการเรียกครั้งเดียว

## การค้นหา [#การค้นหา]

[`GET /creators`](/th/growseller/docs/api-reference/creators/get-creators) คือรายการของ **ค้นหา Creator** รับตัวกรองของหน้านั้นเป็น query parameter: `search` และ `search_by`, `region`, `category_id`, `creator_level`, `min_followers` / `max_followers`, `min_gmv` / `max_gmv`, `min_engagement`, `follower_gender`, `follower_age`, `contact_info`, `exclude_blocked` และอื่นๆ (reference แสดงไว้ทั้งหมด) พร้อม `page` และ `limit`

```bash
curl "https://seller.growpaces.com/api/v1/creators?shop_id=SHOP_ID&min_followers=10000&region=ID&limit=100&page=1" \
  -H "Authorization: Bearer gsk_..."
```

การค้นหาหนึ่งครั้งแสดงได้ไม่เกิน 5 หน้า หน้าละ 100 แถว หน้าที่ 6 จะถูกปฏิเสธด้วย `422 PAGE_LIMIT` ให้จำกัดการค้นหาให้แคบลงด้วยตัวกรองแทน

## creator หนึ่งคน [#creator-หนึ่งคน]

[`GET /creators/{creator_oec}/profile`](/th/growseller/docs/api-reference/creator-contacts/get-creators-creator_oec-profile) ให้โปรไฟล์ของ creator หนึ่งคน และ [`GET /creators/{creator_oec}/contacts`](/th/growseller/docs/api-reference/creator-contacts/get-creators-creator_oec-contacts) ให้ข้อมูลติดต่อที่คุณเก็บไว้สำหรับ creator คนนั้น แต่ละรายการนับเป็นข้อมูล creator หนึ่งแถว (ดู [Rate limit](/th/growseller/docs/developers/rate-limits))

## creator จำนวนมาก: selection [#creator-จำนวนมาก-selection]

หากต้องการดำเนินการกับ creator จำนวนมาก อย่าคัดลอก id ของพวกเขา ให้ส่ง `selection` ไปกับการดำเนินการ คือรายการที่คุณอ่านและช่วงแถวของรายการนั้น GrowSeller จะอ่านแถวเหล่านั้นเองด้วยตัวกรองและการตรวจสอบของรายการนั้น แล้วดำเนินการ:

```bash
curl -X POST https://seller.growpaces.com/api/v1/groups/assign \
  -H "Authorization: Bearer gsk_..." \
  -H "Content-Type: application/json" \
  -d '{"ids":["GROUP_ID"],"selection":{"source":"/creators","filters":{"shop_id":"SHOP_ID","category_id":"601152","min_gmv":"5000000"},"start":1,"end":10000}}'
```

| ฟิลด์ | |
| --- | --- |
| `source` | path ของรายการตามที่อ่านด้วย `GET`: `/creators`, `/creators/catalog`, `/shopee/creators`, `/shopee/catalog`, `/templates/{id}/targets`, `/emails/templates/{id}/targets`, `/wa-official/broadcasts/{id}/targets`, `/shopee/broadcasts/{id}/targets`, `/invitations/templates/{id}/creators`, `/shopee/invitations/templates/{id}/creators`, `/samples`, `/shopee/samples`, `/blocks`, `/store-blocks` และรายการของ Shopee บน `/creators/catalog` และ `/shopee/catalog` ใช้ได้เฉพาะ `kind=video` (creator ของวิดีโอ) ส่วน creator ของสินค้าหรือร้านค้าให้เลือกจาก `/creators` ด้วย `product_ids` / `store_ids` ([สินค้า ร้านค้า และวิดีโอ](/growseller/docs/developers/catalog)) รายการ Shopee สำหรับการดำเนินการของ TikTok (หรือกลับกัน) จะได้ `422` |
| `filters` | query ของรายการนั้นตามที่คุณใช้แสดงรายการ (การค้นหา ตัวกรอง `shop_id`) ตัวกรองที่รายการนั้นไม่รับจะได้ `422` |
| `start`, `end` | แถวเริ่มจาก 1: ไม่เกิน 10,000 แถวต่อการเรียก และไม่เกินแถวที่ 50,000 การเรียกครั้งถัดไปเริ่มที่ `end + 1` |

ทุกการดำเนินการกับ creator รับ `creator_account_ids` (creator ไม่กี่คนที่คุณเลือก) หรือ `selection` อย่างใดอย่างหนึ่ง ไม่ใช่ทั้งสองอย่าง (`422`): กลุ่ม แท็ก กลุ่มของร้าน และแท็กของร้าน (ใส่และนำออก) การบล็อกและการบล็อกของร้าน (เพิ่มและลบ) เป้าหมาย Messenger Broadcast ของ TikTok อีเมล WhatsApp และ Shopee (เพิ่มและลบ) เทมเพลต Target Collaboration ของ TikTok และ Shopee campaign ของ Shopee ที่เปิดอยู่ การรีวิวและให้คะแนนตัวอย่างสินค้า และคำขอ Spark Ads Code ช่วงที่เกินท้ายรายการจะไม่ดำเนินการกับใครเลย

ทุกการดำเนินการตอบกลับแบบเดียวกัน:

```json
{"matched": 10000, "added": 9686, "already": 314, "removed": 0, "skipped_by_reason": {"blocked": 0, "not_found": 0}}
```

`matched` คือจำนวน creator ที่การเรียกนั้นระบุ (id ที่ส่ง หรือแถวที่อ่าน) ส่วน `skipped_by_reason` บอกเหตุผลที่ข้ามคนที่เหลือ (`not_found`: id ที่ GrowSeller ไม่มี, `blocked`, `no_contact`, `uninvitable`, `not_removable`…) การดำเนินการเหล่านี้ทุกตัวรับ `"dry_run": true`: ได้คำตอบเดียวกันโดยไม่เขียนอะไรเลย ให้เรียกแบบนี้ก่อนการเขียนจำนวนมาก แถวของ selection จะถูกอ่านตอนที่การดำเนินการทำงาน ดังนั้นถ้ารายการเปลี่ยนไปหลังจากที่คุณอ่าน (มี creator เพิ่ม ตัวเลขของตัวกรองอัปเดต) แถวเหล่านั้นอาจเป็น creator คนอื่นที่ไม่ใช่คนที่คุณเห็น `matched` ในคำตอบบอกว่าดำเนินการกับกี่คน

## ยอดรวมและช่วง [#ยอดรวมและช่วง]

[`GET /creators`](/th/growseller/docs/api-reference/creators/get-creators) และ `GET /shopee/creators` ตอบ `total` ที่นับได้ถึง 50,000: `total_capped: true` หมายถึงมากกว่า 50,000 ให้ใช้ตัวกรองให้แคบลง [`GET /creators/ids`](/th/growseller/docs/api-reference/creators/get-creators-ids) (และ `/ids` หรือ `ids=true` ของทุกรายการ) ยังให้ id ของช่วง พร้อม `next_start`: แถวแรกของช่วงถัดไป เป็น `null` เมื่อถึงท้ายรายการ

## แถวแบบย่อ [#แถวแบบย่อ]

ทุกรายการ creator รับ `view=compact` สำหรับฟิลด์ที่ใช้ตัดสินใจ (id, handle, ชื่อ, ประเทศ, ระดับ, ผู้ติดตาม, GMV, จำนวนที่ขาย, ค่าคอมมิชชัน, GPM, ยอดชม, engagement, หมวดหมู่, คะแนนตัวอย่างสินค้า, `contact_types`, `tag_ids`, `blocked`): ประมาณ 460 ไบต์ต่อแถวแทน 3,000 ไบต์ `fields=handle,follower_count` ให้เฉพาะฟิลด์เหล่านั้น REST API ตอบแถวเต็มเว้นแต่จะขอ ส่วน MCP ขอ compact เว้นแต่การเรียกจะระบุ `view` หรือ `fields`

## ผลงานตาม creator [#ผลงานตาม-creator]

[`GET /analytics`](/th/growseller/docs/api-reference/performance/get-analytics) (แท็บ Creator, วิดีโอ และ LIVE) รับ `group_ids`, `tag_ids`, `store_group_ids`, `store_tag_ids` และ `creator_account_ids` (คั่นด้วยจุลภาค) เพื่อแสดงเฉพาะ creator เหล่านั้น GrowSeller ถาม TikTok ด้วยวิธีที่ประหยัดกว่า: ตัวกรอง creator ครั้งละ 20 creator หรือทั้งรายการ หน้าละ 100 แถว แล้วคัดเฉพาะ creator เหล่านั้น จากนั้นเรียงและแบ่งหน้าคำตอบเองและเก็บไว้ 5 นาที มุมมองที่ต้องเรียกเกิน 30 ครั้งจะถูกปฏิเสธ (422)