# Wallapop Filters API Documentation

Get the server-driven filter facets and sort options available for a category or keyword. Facet names and sort values are published by Wallapop and can change, so read them here rather than hard-coding them. Vehicle brand, model and colour vocabulary is served by the car vocabulary endpoints instead.

- **Documentation:** [https://scrappa.co/docs/wallapop-api/wallapop_filters](https://scrappa.co/docs/wallapop-api/wallapop_filters)
- **API group:** Wallapop API
- **Endpoint:** `GET https://scrappa.co/api/wallapop/filters`

## 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 |
| --- | --- | --- | --- |
| `keywords` | string | No | Resolve facets for these search terms. |
| `category_id` | string | No | Resolve facets for this category. |
| `order_by` | string | No | Resolve facets as they apply to this sort. |
| `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/filters?category_id=17000&search_country=ES"
```

## Example response

```json
{
    "success": true,
    "data": {
        "filter_sections": [],
        "selected_filters": [],
        "order_by_options": []
    },
    "meta": {
        "endpoint_family": "filters"
    }
}
```

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