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

Property Sourcing · REST API

Search properties

POSThttps://platform.casafari.com/v1/property-sourcing/searches
API-Key50 tokens a call26 parameters

Send Authorization: Bearer $CASAFARI_API_KEY: a platform API key (cf_sk_...) from the console, or an OAuth access token; X-API-Key carries the key too. See platform API keys. Costs 50 tokens a call (1 token = EUR 0.04). In an AI assistant, the same call as an MCP tool costs 5 tokens a call.

The platform's OpenAPI file leaves the shape open; what is shown comes from the same definitions the platform publishes elsewhere: request: the MCP tool property-sourcing_search's input; response 200: the hub's fragment from the platform's contract.

Over MCP: property-sourcing_search (equivalent). See MCP and REST compared.

Description

Costs 50 tokens a call. Each page is a call. Page size: page_size in the body, at most 100 (a Free plan account is capped lower). One search reaches at most 1000 results. A structured search: location_ids (from Location Lookup), country, operation (sale or rent), types, price, price_per_sqm, bedrooms, bathrooms, living_area_sqm, plot_area_sqm, features, exclude_features, below_market_pct (percent below our market value), days_on_market, private, exclusive, rental_yield (rent only), first_seen_after, changed_after, sort and page_size. Each result's id is a prop_ id and carries days_on_market, market_value, below_market and seller flags. Prices are asking prices.

Request-Body

Content-Type application/json. Optional. Typ: object.

location_idsinteger[]erforderlich
1 to 100 location ids, from locations_search (a city, district or neighbourhood).
1–100 Elemente≥ 1
countryZeichenfolge
ISO country code, e.g. "ES". Optional: the location ids say their country.
pattern ^[A-Za-z]{2}$
operationZeichenfolge
Homes for "sale" (default) or for "rent".
sale rent
typesstring[]
Property types, lower case, e.g. ["apartment", "penthouse", "house", "villa"].
1–40 Elementemaximal 40 ZeichenMuster ^[a-z][a-z_]*$
priceobject
Asking price in the country's currency (monthly rent when operation is rent): {"min": n, "max": n}, whole numbers from 1; either may be left out.
2 Eigenschaften
mininteger
≥ 1
maxinteger
≥ 1
price_per_sqmobject
Asking price per square metre: {"min": n, "max": n}, whole numbers from 1; either may be left out.
2 Eigenschaften
mininteger
≥ 1
maxinteger
≥ 1
bedroomsobject
Bedrooms: {"min": n, "max": n}, whole numbers from 0; either may be left out.
2 Eigenschaften
mininteger
≥ 0
maxinteger
≥ 0
bathroomsobject
Bathrooms: {"min": n, "max": n}, whole numbers from 1; either may be left out.
2 Eigenschaften
mininteger
≥ 1
maxinteger
≥ 1
living_area_sqmobject
Living area in square metres: {"min": n, "max": n}, whole numbers from 1; either may be left out.
2 Eigenschaften
mininteger
≥ 1
maxinteger
≥ 1
plot_area_sqmobject
Plot area in square metres: {"min": n, "max": n}, whole numbers from 1; either may be left out.
2 Eigenschaften
mininteger
≥ 1
maxinteger
≥ 1
featuresstring[]
Features every result must have.
balcony elevator garage garden parking storage swimming_pool terrace rental_license furniture no_elevator rented_out life_annuity business_transfer smoke_outlet
1–15 items
exclude_featuresstring[]
Features no result may have.
balcony elevator garage garden parking storage swimming_pool terrace rental_license furniture no_elevator rented_out life_annuity business_transfer smoke_outlet
1–15 items
sortZeichenfolge
Order of the results. newest: most recently on the market first.
newest oldest recently_updated price_asc price_desc price_per_sqm_asc price_per_sqm_desc largest
page_sizeinteger
Results per page, 1 to 100 (default 25; the plan may allow fewer). Every page costs the same.
1–100

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 -X POST "https://platform.casafari.com/v1/property-sourcing/searches" \
  -H "Authorization: Bearer $CASAFARI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "location_ids": [
    544116
  ],
  "country": "DE",
  "operation": "sale",
  "types": [
    "apartment"
  ],
  "price": {
    "max": 450000
  },
  "bedrooms": {
    "min": 2
  },
  "sort": "newest",
  "page_size": 25
}'

Antworten

200 Success.

Typ: object.

Show the response shape (21 fields)
resultsobject[]
10 properties
idZeichenfolge
Opaque property id, prop_....
typeZeichenfolgekann null sein
Property type.
operationZeichenfolge
sale rent
priceobject
3 Immobilien
amountnumberkann null sein
Asking price; null when the price is on request.
currencyZeichenfolgekann null sein
ISO 4217 currency code.
per_sqmnumberkann null sein
Asking price per m².
bedroomsnumberkann null sein
living_area_sqmnumberkann null sein
locationobject
3 Immobilien
idintegerkann null sein
Location id.
nameZeichenfolgekann null sein
Standortname.
coordinatesobjectkann null sein
Latitude and longitude.
2 Eigenschaften
latnumber
lonnumber
first_seenZeichenfolgekann null sein
When the property came on the market for this operation.
listings_countintegerkann null sein
How many listings advertise it; known on a property read with expand=listings, null in search results.
matched_tagsstring[]kann null sein
The phrases of a plain-language search this property matched; null for structured searches.
totalintegerkann null sein
How many properties match, when known.
nextZeichenfolgekann null sein
URL of the next page (valid one hour), or null.
Beispiel mit Beispielwerten (IDs und Zahlen dienen der Veranschaulichung)
JSON
{
  "results": [
    {
      "id": "prop_7Hq2pZk1vY0sW4nB8cR3tL",
      "type": "apartment",
      "operation": "sale",
      "price": {
        "amount": 425000,
        "currency": "EUR",
        "per_sqm": 4474
      },
      "bedrooms": 3,
      "living_area_sqm": 95,
      "location": {
        "id": 12345,
        "name": "Sample district",
        "coordinates": {
          "lat": 39.462,
          "lon": -0.376
        }
      },
      "first_seen": "2026-09-28",
      "listings_count": null,
      "matched_tags": null
    }
  ],
  "total": 312,
  "next": "https://platform.casafari.com/v1/property-sourcing/searches/cur_SAMPLE"
}

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.