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 location by passed coordinates (v1)

GEThttps://api.casafari.com/api/v1/references/locations/by-coordinates
Bearer token3 parameters

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

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

Description

Returns a location for the given coordinates with user restrictions.

Query parameters

latitudenumberrequired
The latitude coordinate.
-90–90
longitudenumberrequired
The longitude coordinate.
-180–180
langstring
Language to use for the location names in the response. (When the provided language is not supported, the results will be returned in English.)

Example request

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

curl
curl "https://api.casafari.com/api/v1/references/locations/by-coordinates?latitude=<latitude>&longitude=<longitude>" \
  -H "Authorization: Bearer $CASAFARI_TOKEN"

Responses

200 OK

Type: object.

Show the response shape (10 fields)
location_idintegerrequired
ID of the location.
namestringrequired
Name of the location.
parent_idintegerrequired
ID of the parent level location.
administrative_levelstringrequired
Location administrative level.
locations_structureobject[]required
Information about all the parent locations, starting from the top-most level - country.
5 properties
location_idintegerrequired
Location ID, as returned by the POST /api/v1/references/locations endpoint.
namestringrequired
Location name.
administrative_levelstringrequired
Location administrative level.
zip_codesstring[]
The location zip codes.
default []
levelintegerrequired
Location level as number.
Example from the API description (long arrays shortened)
JSON
{
  "location_id": 1615,
  "name": "São Gonçalo de Lagos",
  "parent_id": 1611,
  "administrative_level": "Freguesia",
  "locations_structure": [
    {
      "location_id": 499,
      "name": "Portugal",
      "administrative_level": "País",
      "zip_codes": [],
      "level": 1
    },
    {
      "location_id": 1597,
      "name": "Faro",
      "administrative_level": "Distrito",
      "zip_codes": [],
      "level": 2
    }
  ]
}

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.