Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

TikTok Shop Categories

เอกสาร API
https://api.sandbase.ai/v1/api/tiktok-shop/categories

List the TikTok Shop category tree for a market: top-level categories with ids, slugs, and images, each with its child categories.

ราคา
เริ่มต้นที่ $0.0012USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
Country code of the TikTok Shop market whose category tree to list. Only US and VN publish a category tree.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

TikTok Shop Categories API

Returns the TikTok Shop category tree for one market. Each top-level category comes with its categoryId, name, slug, image, and a list of child categories. The only input is region, which can be US or VN.

Use cases

  • Build a category picker or filter menu for a TikTok Shop research tool.
  • Map categoryId values to readable names when you analyze product data.
  • Compare how the US and Vietnam markets group their products.
  • Collect category slugs and images to build a catalog of TikTok Shop verticals.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok-shop/categories" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"region": "US"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
regionstringNoCountry code of the TikTok Shop market whose category tree to list. Only US and VN publish a category tree.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "categories": [
      {
        "categoryId": "601450",
        "children": [
          {
            "categoryId": "849032",
            "image": "https://p16-oec-ttp.tiktokcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/dc05090b19cd43e…",
            "isLeaf": false,
            "name": "Hand & Foot Care",
            "slug": "hand-foot-care"
          }
        ],
        "image": "https://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/i18n_ecom_f…",
        "isLeaf": false,
        "name": "Beauty & Personal Care",
        "slug": "beauty-personal-care"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.categories[].categoryIdID of a top-level category, returned as a string.
data.categories[].name / data.categories[].slugDisplay name and URL-style slug of the top-level category, such as Beauty & Personal Care and beauty-personal-care.
data.categories[].imageURL of the image used for the top-level category.
data.categories[].isLeafShows whether the category has no deeper categories below it. A value of false means it has children.
data.categories[].children[]List of child categories under the top-level category.
data.categories[].children[].categoryIdID of a child category, returned as a string.
data.categories[].children[].name / data.categories[].children[].slugDisplay name and slug of the child category, such as Hand & Foot Care and hand-foot-care.
data.categories[].children[].imageURL of a 200x200 image for the child category.
data.categories[].children[].isLeafShows whether the child category is a leaf. In this sample, every child has false, so the tree may go deeper than this response shows.
foundtrue when the category tree was found for the requested region.

Notes

  • Only US and VN publish a category tree. Other region values are not accepted.
  • categoryId values are strings, not numbers. Keep them as strings when you store or compare them.
  • To see products and results from TikTok Shop, call TikTok Shop Search next.
  • To look at a single item, use TikTok Shop Product.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
TikTok Shopเริ่มต้นที่ $0.0012 ต่อครั้งJSON
TikTok Shopเริ่มต้นที่ $0.0055 ต่อครั้งJSON
TikTok Shopเริ่มต้นที่ $0.0012 ต่อครั้งJSON
TikTok Shopเริ่มต้นที่ $0.00095 ต่อครั้งJSON
TikTok Shopเริ่มต้นที่ $0.00095 ต่อครั้งJSON
TikTok Shopเริ่มต้นที่ $0.00095 ต่อครั้งJSON

คู่มือ:Best TikTok Shop API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ TikTok Shop Categories API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok-shop/categories โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

TikTok Shop Categories API ราคาเท่าไร?

เริ่มต้นที่ $0.0012 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

TikTok Shop Categories API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: region (หนึ่งใน US, VN). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

TikTok Shop Categories API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ TikTok Shop ไหม?

ไม่จำเป็น TikTok Shop Categories ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok Shop API แยกต่างหาก