Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

TikTok Shop Categories

Documentación de la 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.

Precio
Desde $0.0012USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
Country code of the TikTok Shop market whose category tree to list. Only US and VN publish a category tree.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
TikTok ShopDesde $0.0012 por llamadaJSON
TikTok ShopDesde $0.0055 por llamadaJSON
TikTok ShopDesde $0.0012 por llamadaJSON
TikTok ShopDesde $0.00095 por llamadaJSON
TikTok ShopDesde $0.00095 por llamadaJSON
TikTok ShopDesde $0.00095 por llamadaJSON

Guías:Best TikTok Shop API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de TikTok Shop Categories?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok-shop/categories con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de TikTok Shop Categories?

Desde $0.0012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de TikTok Shop Categories?

No se requieren parámetros. Opcionales: region (una de US, VN). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de TikTok Shop Categories?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de TikTok Shop?

No. TikTok Shop Categories funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de TikTok Shop por separado.