# Zonaprop Map Sweep

Returns postings with coordinates for an area in a single call, which is far cheaper than fetching details one by one. Up to 100 postings per call.

- **Documentation:** [https://scrappa.co/docs/zonaprop-api/zonaprop_search_map](https://scrappa.co/docs/zonaprop-api/zonaprop_search_map)
- **API group:** Zonaprop API
- **Endpoint:** `GET https://scrappa.co/api/zonaprop/search/map`

## 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 |
| --- | --- | --- | --- |
| `operation_type` | integer | No | 1 venta, 2 alquiler, 4 alquiler temporal. |
| `real_estate_type` | integer | No | Verified Zonaprop type id. |
| `location` | array | No | Up to 20 Zonaprop location ids. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/zonaprop/search/map?operation_type=1&real_estate_type=2&location%5B0%5D=V1-C-1003694"
```

## Example response

```json
{
    "success": true,
    "data": [
        {
            "posting_id": "60123767",
            "location": {
                "latitude": -34.58,
                "longitude": -58.42
            }
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No Zonaprop posting or location matches that id. This response is not billable. |
| 422 | Validation Error | A parameter is invalid, including an unknown operation, property type, currency or sort value. Invalid enum values are rejected here rather than upstream, because upstream answers them with an empty result. This response is not billable. |
| 502 | Upstream Unavailable | Zonaprop did not return a usable result for this read. 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)
