# Get zipcode boundary by zipcode and country code (v1)

> **Casafari is the AI agent-native real estate data intelligence platform.** The most complete property index in Europe: a deduplicated, cleaned property graph of residential and commercial property, for sale and for rent, in 16 countries. Every property is one record with its full price and market history. [How the property graph is built](/docs/property-graph).

`POST https://api.casafari.com/api/v1/references/zipcode-boundary`

[References](/docs/references) · [REST API](/docs/rest/references). Send `Authorization: Bearer $CASAFARI_TOKEN`; see [how to get a token](/docs/rest#get-a-token).

Over MCP: no tool does this. See [MCP and REST compared](/docs/parity#references).

## Description

Get zipcode boundary by zipcode and country code.

## Request body

Content type `application/json`. Optional. Type: `object`.

- `zip_code` (string, required): Zipcode.
- `country_code` (string, required): Country code following the ISO 3166-1 alpha-2 rules. Values: `ES`, `FR`, `DE`, `RE`, `GP`, `MQ`, `GY`, `YT`, `AD`, `MC`.

## Example request

Placeholders only: replace the token and the values with your own.

```bash
curl -X POST "https://api.casafari.com/api/v1/references/zipcode-boundary" \
  -H "Authorization: Bearer $CASAFARI_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "zip_code": "36116",
  "country_code": "ES"
}'
```

## Responses

### 200 OK

Type: `object`.

- `zip_code` (string, required): Zipcode.
- `boundary` (object[][], required): Zipcode boundary.
  - `latitude` (number, required): Latitude. -90–90.
  - `longitude` (number, required): Longitude. -180–180.

Example from the API description (long arrays shortened):

```json
{
  "zip_code": "36116",
  "boundary": [
    [
      {
        "latitude": 42.59448,
        "longitude": -8.3877
      },
      {
        "latitude": 42.58795,
        "longitude": -8.38622
      }
    ]
  ]
}
```

### 401 Unauthorized

Type: `object`.

- `detail` (string, optional): Description of the error encountered.

### 403 Forbidden

Type: `object`.

- `detail` (string, optional): Description of the error encountered.

## Questions about this

- [What are the References operations for?](/docs/faq/what-is-references)
