Platform

Casafari ist die KI-Agent-native Plattform für Immobiliendatenintelligenz. Der umfassendste Immobilienindex Europas: ein bereinigter, deduplizierter Immobiliengraph für Wohn- und Gewerbeimmobilien, zum Kauf und zur Miete, in 16 Ländern.Der umfassendste Immobilienindex Europas: ein bereinigter, deduplizierter Immobiliengraph.

Wie der Graph aufgebaut ist

REST API · Location Lookup

Search locations by name or postcode

GEThttps://platform.casafari.com/v1/locations/search
API-Keykostenlos (0 Tokens)6 Parameter

Senden Sie Authorization: Bearer $CASAFARI_API_KEY: einen Plattform-API-Key (cf_sk_...) aus der Console oder ein OAuth-Zugriffstoken; auch X-API-Key kann den Key übertragen. Weitere Informationen finden Sie unter Plattform-API-Keys. Kostenlos: 0 Tokens.

Over MCP: locations_search, on every product's server.

Description

Free (uses no tokens). Search by name, by postcode, or both. Each result has a kind (country, region, province, city, district, neighbourhood, development or other), the same in every country, and level, its depth in the tree (the country is 1; depths differ between countries). Results come exact name or alias first, then cities before districts, regions and provinces, neighbourhoods and developments. Postcodes: Spain, France (partly) and Portugal (parts of Lisbon) only; other countries have none, and country with postcode for one answers 400. Pass country when you know it.

Abfrageparameter

queryZeichenfolge
A place name or alias; misspellings are tolerated. Required unless postcode is given.
1–100 characters
postcodeZeichenfolge
The places this postcode covers, smallest area first (for example 28019 or 1950-102). One postcode matches several places. Postcodes: Spain, France (partly) and Portugal (parts of Lisbon) only; other countries have none, and country with postcode for one answers 400. Pass country when you know it.
3–10 characters
postcode_matchZeichenfolge
exact (default) matches a full-length code; prefix matches the start of one (280, 1950). 2-digit Spanish province prefixes are not postcodes. Needs postcode.
exact prefix
default "exact"
countryZeichenfolge
ISO 3166-1 alpha-2 country code to restrict the search to; must be entitled. Pass it when you know it; with postcode it must be ES, FR or PT.
2–2 characters
langZeichenfolge
Language of the names returned.
en es pt fr de it pl
Standard "en"
sizeinteger
Page size, at most 25 (a Free plan account is capped lower).
1–25

Beispielanfrage

Ersetzen Sie den Schlüssel durch Ihren eigenen. Führen Sie ihn vor der Veröffentlichung auf der Plattform aus: Kopieren Sie ihn, fügen Sie Ihren Schlüssel ein, und er funktioniert.

curl
curl "https://platform.casafari.com/v1/locations/search?query=Berlin" \
  -H "Authorization: Bearer $CASAFARI_API_KEY"

Antworten

200 Success.

Typ: object.

Fehler

Jeder Fehler erfolgt als application/problem+json-Body (RFC 9457) mit type (eine Seite zur Erläuterung), title, status, detail (Handlungsempfehlung), instance, code und request_id (bitte bei Supportanfragen angeben). Ein 402-Status enthält eine upgrade_url, ein 429-Status einen Retry-After-Header. Die Codes pro Status:

Tipp: Fügen Sie .md an eine URL an, um den Inhalt als Markdown zu lesen.