# Tiki Categories API Documentation

<p><strong>Tiki Categories API</strong> 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.</p><p>The tree is cached and does not make an upstream lookup on every request. Costs 1 credit per successful request. Failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/tiki-api/tiki_categories](https://scrappa.co/docs/tiki-api/tiki_categories)
- **API group:** Tiki API
- **Endpoint:** `GET https://scrappa.co/api/tiki/categories`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream Unavailable | Tiki could not be reached. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
