# Zonaprop Location Polygon

Returns the GeoJSON boundary of a location so you can draw it on a map. This is geometry only: you still search by location id, not by drawing an area.

- **Documentation:** [https://scrappa.co/docs/zonaprop-api/zonaprop_location_polygon](https://scrappa.co/docs/zonaprop-api/zonaprop_location_polygon)
- **API group:** Zonaprop API
- **Endpoint:** `GET https://scrappa.co/api/zonaprop/locations/{location_id}/polygon`

## 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 |
| --- | --- | --- | --- |
| `location_id` | string | Yes | Zonaprop location id such as V1-C-1003694. |

## Example response

```json
{
    "success": true,
    "data": {
        "type": "MultiPolygon",
        "coordinates": []
    }
}
```

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