Tiki Categories API returns the Tiki category tree with child nodes. Each node has an id, name, parent id, url path and its children. Feed a category id into the Search API to browse that category.
The tree is cached and does not make an upstream lookup on every request. Costs 1 credit per successful request. Failed requests are free.
Run this endpoint
Endpoint
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"count": 1,
"categories": [
{
"id": "1789",
"name": "Dien thoai",
"children": [
{
"id": "1790",
"name": "Smartphone",
"children": [],
"url_path": "https://tiki.vn/smartphone/c1790",
"parent_id": "1789"
}
],
"url_path": "https://tiki.vn/dien-thoai/c1789",
"parent_id": null
}
]
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "categories"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Upstream Unavailable
Tiki could not be reached. This response is not billable.
{
"meta": {
"credits": 0,
"billable": false,
"retryable": true,
"endpoint_family": "categories"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "Tiki could not be reached. Please retry shortly."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.