# Categories

Get all available catalog categories with their subcategories. Use the returned catalog IDs with the search endpoint.

- **Documentation:** [https://scrappa.co/docs/vinted-api/vinted_categories](https://scrappa.co/docs/vinted-api/vinted_categories)
- **API group:** Vinted API
- **Endpoint:** `GET https://scrappa.co/api/vinted/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 |
| --- | --- | --- | --- |
| `country` | string | No | Country code for Vinted domain. Defaults to FR. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/vinted/categories?country=DE"
```

## Example response

```json
{
    "catalogs": []
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 401 | Unauthorized | API key is missing or invalid |
| 422 | Validation Error | Invalid country code provided |
| 500 | Internal Server Error | Failed to fetch categories from Vinted or parse response |

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