# Wallapop Categories API Documentation

Get the full Wallapop category tree with numeric IDs, names, paths and nested subcategories. The same taxonomy serves the Spain, Italy and Portugal markets, so category IDs are portable across them.

- **Documentation:** [https://scrappa.co/docs/wallapop-api/wallapop_categories](https://scrappa.co/docs/wallapop-api/wallapop_categories)
- **API group:** Wallapop API
- **Endpoint:** `GET https://scrappa.co/api/wallapop/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 |
| --- | --- | --- | --- |
| `context` | string | No | Category context. Defaults to search. |
| `search_country` | string | No | ES, IT or PT. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/wallapop/categories?search_country=ES"
```

## Example response

```json
{
    "success": true,
    "data": {
        "categories": []
    },
    "meta": {
        "endpoint_family": "categories"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing, seller or review does not exist. This response is not billable. |
| 422 | Invalid Arguments | A filter value was rejected, including a sort value the marketplace does not publish. This response is not billable. |
| 502 | Marketplace Unavailable | The marketplace did not answer the request. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. This response is not billable. |

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