# JB Hi-Fi Categories API Documentation

<p><strong>JB Hi-Fi Categories API</strong> returns the public category tree. Pass a collection path to read that collection filter expression and facet names instead. The tree is cached and contains public navigation only.</p><p><strong>Credits:</strong> 1 credit per successful request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/jbhifi-api/jbhifi_categories](https://scrappa.co/docs/jbhifi-api/jbhifi_categories)
- **API group:** JB Hi-Fi API
- **Endpoint:** `GET https://scrappa.co/api/jbhifi/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.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `path` | string | No | Optional collection path or handle |

## Example response

```json
{
    "data": {
        "total": 1,
        "categories": [
            {
                "name": "TV & Audio",
                "handle": "tv-audio",
                "children": []
            }
        ]
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | The request cannot be served as sent. |  |
|  | JB Hi-Fi could not be reached. Please retry shortly. |  |

## 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)
