# Subito.it Categories API Documentation

<p><strong>Subito.it Categories API Documentation</strong> List every Subito.it category with its integer key, name, slug and macro group. Use the key as c in search. Entries with is_group true are macro groups (for example Motori) and carry no macrocategory_id. Category 2 (Auto) is listed but searched through the Subito Motori API.</p>

- **Documentation:** [https://scrappa.co/docs/subito-api/subito_categories](https://scrappa.co/docs/subito-api/subito_categories)
- **API group:** Subito.it API
- **Endpoint:** `GET https://scrappa.co/api/subito/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": 45,
        "categories": [
            {
                "key": 1,
                "name": "MOTORI",
                "slug": "motori",
                "is_group": true
            },
            {
                "key": 2,
                "name": "Auto",
                "slug": "auto",
                "weight": 1,
                "is_group": false,
                "macrocategory_id": 1
            },
            {
                "key": 5,
                "name": "Accessori Auto",
                "slug": "accessori-auto",
                "weight": 2,
                "is_group": false,
                "macrocategory_id": 1
            },
            {
                "key": 3,
                "name": "Moto e Scooter",
                "slug": "moto-e-scooter",
                "weight": 3,
                "is_group": false,
                "macrocategory_id": 1
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Invalid Source Response | Subito answered with a shape that no longer matches the documented contract. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. 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)
