# Tweakers Categories API Documentation

GET /api/tweakers/categories returns the public category slugs from the Tweakers category index. Use a slug with GET /api/tweakers/category. An optional search term narrows the list.

- **Documentation:** [https://scrappa.co/docs/tweakers-api/tweakers_categories](https://scrappa.co/docs/tweakers-api/tweakers_categories)
- **API group:** Tweakers API
- **Endpoint:** `GET https://scrappa.co/api/tweakers/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 |
| --- | --- | --- | --- |
| `search` | string | No | Optional term to narrow category names and slugs. |
| `limit` | integer | No | Maximum categories, 1 to 1000. Defaults to 500. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/tweakers/categories?search=tele&limit=20"
```

## Example response

```json
{
    "success": true,
    "count": 1,
    "categories": [
        {
            "slug": "televisies",
            "name": "Televisies",
            "url": "https://tweakers.net/televisies/vergelijken/"
        }
    ],
    "meta": {
        "duration_ms": 189,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 503 | Source Unavailable | Tweakers returned no usable public data. The request is never 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)
