Platform
Get started

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.The most complete property index in Europe: a deduplicated, cleaned property graph.

How the graph is built

Existing Casafari API · API v1 · References

Get zipcode boundary by zipcode and country code

POSThttps://api.casafari.com/v1/references/zipcode-boundary
Static token2 parametersAPI v1

Send Authorization: Token $CASAFARI_TOKEN with your existing API token; see where to get it.

The same path under /api, signed in with a bearer token, is in the REST API reference: POST /api/v1/references/zipcode-boundary.

Description

Get zipcode boundary by zipcode and country code.

Request body

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

zip_codestringrequired
Zipcode.
country_codestringrequired
Country code following the ISO 3166-1 alpha-2 rules.
ES FR DE RE GP MQ GY YT AD MC

Example request

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

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

Responses

200

Type: object.

Show the response shape (4 fields)
zip_codestringrequired
Zipcode.
boundaryobject[][]required
Zipcode boundary.
2 properties
latitudenumberrequired
Latitude.
-90–90
longitudenumberrequired
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.

Show the response shape (1 fields)
detailstring
Description of the error encountered.

403 Forbidden

Type: object.

Show the response shape (1 fields)
detailstring
Description of the error encountered.

Tip: add .md to any URL to read it as Markdown.