# Wallapop Postal Code API Documentation

Resolve a postal code to its locality, region and country, for use as search location context. Wallapop publishes no standalone geocoder, so resolve free-text place names with an external geocoder and pass the coordinates to search.

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

## 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 |
| --- | --- | --- | --- |
| `postal_code` | string | Yes | Postal code to resolve. |
| `country_iso_code` | string | No | Two-letter country code, for example ES. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/wallapop/postal-codes?postal_code=28001&country_iso_code=ES"
```

## Example response

```json
{
    "success": true,
    "data": {
        "postal_code": "28001",
        "city": "Madrid"
    },
    "meta": {
        "endpoint_family": "postal_code"
    }
}
```

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