CasafariMCP
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

References · REST API

Get zipcode boundary by zipcode and country code (v1)

POSThttps://api.casafari.com/api/v1/references/zipcode-boundary
Bearer token2 parameters

Send Authorization: Bearer $CASAFARI_TOKEN; see how to get a token.

Over MCP: no tool does this. MCP and REST compared.

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/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.

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.

Questions about this

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