shopUrlstring
1688 shop homepage URL. Supply shopUrl or memberId.
https://api.sandbase.ai/v1/api/1688/shop/categoriesList all product categories of a 1688 shop by shop URL or seller member ID.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the list of product categories that a 1688 shop has set up, with a product count for each category. Send either the shop homepage URL as shopUrl or the seller ID as memberId.
curl -X POST "https://api.sandbase.ai/v1/api/1688/shop/categories" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"memberId": "b2b-3945631662b7581"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
memberId | string | No | Seller member ID. Supply memberId or shopUrl. |
shopUrl | string | No | 1688 shop homepage URL. Supply shopUrl or memberId. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"is_custom": true,
"list": [
{
"children": [],
"count": 16,
"full_name": "折叠屏转轴保护套",
"id": 169945812,
"name": "折叠屏转轴保护套"
}
],
"member_id": "b2b-3945631662b7581"
}
| Field | Meaning |
|---|---|
member_id | The seller member ID the categories belong to. It matches the memberId you sent. |
is_custom | Boolean flag on the category list. It is true in this response. The key name does not say more, so treat the exact meaning as unconfirmed. |
list[] | One entry per shop category. |
list[].id | Numeric ID of the category. |
list[].name / list[].full_name | Category name, and its full name. Both show the same text for these top-level categories. |
list[].count | Number of products in the category. |
list[].children | List of sub-categories. It is empty for the categories shown here. |
shopUrl or memberId. You only need one of them.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/1688/shop/categories" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"memberId": "b2b-3945631662b7581"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
shopUrlstring1688 shop homepage URL. Supply shopUrl or memberId.
memberIdstringSeller member ID. Supply memberId or shopUrl.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
1688 Shop CategoriesAPI นี้ 1688 | $0.014286 ต่อการเรียก | JSON |
1688 | $0.014286 ต่อการเรียก | JSON |
1688 | $0.014286 ต่อการเรียก | JSON |
1688 | $0.014286 ต่อการเรียก | JSON |
1688 | $0.014286 ต่อการเรียก | JSON |
1688 | $0.014286 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/1688/shop/categories โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: shopUrl (string) และ memberId (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น 1688 Shop Categories ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง 1688 API แยกต่างหาก