# Audible Categories API Documentation

Browse the public Audible category tree with nested children. Category ids feed the search category_id filter unchanged.

- **Documentation:** [https://scrappa.co/docs/audible-api/audible_categories](https://scrappa.co/docs/audible-api/audible_categories)
- **API group:** Audible API
- **Endpoint:** `GET https://scrappa.co/api/audible/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 |
| --- | --- | --- | --- |
| `levels` | integer | No | Number of category levels, 1 to 3. Defaults to 2. |
| `root` | string | No | Genres, RodizioGenres, EditorsPicks or Curated. Defaults to Genres. |
| `ids` | string | No | Optional comma separated category ids. |
| `site` | string | No | com, co.uk or de. Defaults to com. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/audible/categories?levels=2&root=Genres"
```

## Example response

```json
{
    "success": true,
    "data": {
        "categories": [
            {
                "id": "123",
                "name": "Science Fiction",
                "children": []
            }
        ]
    },
    "meta": {
        "endpoint_family": "categories",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | Failure code and message. Failed requests are not billed. |

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