Sand AISand AI MAGI-2MAGI-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.0012 起美元/次呼叫
方法
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.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

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 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/tiktok-shop/categories。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

TikTok Shop Categories API 的費用是多少?

每次起 $0.0012,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

TikTok Shop Categories API 接受哪些參數?

不需要任何參數。 選填:region(US, VN 之一)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

TikTok Shop Categories API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 TikTok Shop 開發者帳號或 API 金鑰嗎?

不需要。TikTok Shop Categories 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 TikTok Shop API 存取權。