Platform

Casafari to platforma analityczna danych nieruchomości zorientowana na agentów AI. Najpełniejszy indeks nieruchomości w Europie: zdeduplikowany i wyczyszczony graf nieruchomości mieszkalnych i komercyjnych na sprzedaż oraz na wynajem w 16 krajach.Najpełniejszy indeks nieruchomości w Europie: zdeduplikowany i wyczyszczony graf nieruchomości.

Jak budowany jest graf

Alerts · REST API

Create an alert feed

POSThttps://platform.casafari.com/v1/alerts/feeds
Klucz API25 tokenów za wywołanie46 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 25 tokens a call (1 token = EUR 0.04).

Plik OpenAPI platformy pozostawia strukturę otwartą; to, co zostało pokazane, pochodzi z tych samych definicji, które platforma publikuje gdzie indziej: request: opis tego samego backendu; response 200: opis tego samego backendu.

Przez MCP: brak; ten produkt jest dostępny wyłącznie przez REST.

Description

Costs 25 tokens a call. Each alert a feed delivers to its webhook costs 1 token; when the account has no tokens left, deliveries pause until it has tokens again.

Treść żądania

Typ zawartości application/json. Opcjonalny. Typ: object.

feed_namestringwymagany
filtersobjectwymagany
28 properties
location_idsinteger[]nullable
1–100 elementów
typesstring[]nullable
42 dozwolone wartościapartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel building other_commercial restaurant werkstatt urban_plot rural_plot room parking garage other apartment_building office_building mix_use_building apartment_development house_development
co najmniej 1 element
business_typestringwymagany
sale rent
statuses(string | string)[]nullable
co najmniej 1 element
alert_subtypesstring[]nullable
new price_increased price_decreased reserved delisted sold
custom_locationsobject[][]nullable
Lista zamkniętych wielokątów punktów geograficznych, w obrębie których prowadzone jest wyszukiwanie. Każdy wielokąt musi zawierać co najmniej 4 punkty. Pierwszy i ostatni punkt w każdym wielokącie muszą się pokrywać. Dozwolone są maksymalnie 4 wielokąty.
1–4 items4–25 items
2 właściwości
latitudenumberwymagany
-90–90
longitudenumberwymagany
-180–180
privatebooleannullable
price_rangeobjectnullable
2 właściwości
minintegernullable
1–2147483647
maxintegernullable
1–2147483647
price_psqm_rangeobjectnullable
2 właściwości
minintegernullable
1–2147483647
maxintegernullable
1–2147483647
bathrooms_rangeobjectnullable
2 właściwości
minintegernullable
1–15000
maxintegernullable
1–15000
bedrooms_rangeobjectnullable
2 właściwości
minintegernullable
0–15000
maxintegernullable
0–15000
total_area_rangeobjectnullable
2 właściwości
minintegernullable
1–1000000
maxintegernullable
1–1000000
new_developmentbooleannullable
bankbooleannullable
auctionbooleannullable
construction_year_rangeobjectnullable
2 właściwości
minintegernullable
1–3000
maxintegernullable
1–3000
plot_area_rangeobjectnullable
2 właściwości
minintegernullable
1–1000000
maxintegernullable
1–1000000
floorsstring[]nullable
no_floor ground middle top
co najmniej 1 element
conditionsstring[]nullable
new used ruin very-good other
co najmniej 1 element
orientationstringnullable
exterior interior
viewsstring[]nullable
A matching listing must have every requested view, not just one.
water landscape city golf park
co najmniej 1 element
directionsstring[]nullable
A matching listing must face every requested direction, not just one.
north south east west
co najmniej 1 element
characteristicsstring[]nullable
A matching listing must have every requested characteristic, not just one.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity
co najmniej 1 element
has_phonebooleannullable
has_emailbooleannullable
has_agency_namebooleannullable
ref_numbersstring[]nullable
1–100 elementów
listing_idsinteger[]nullable
1–100 elementów

Przykładowe żądanie

Tylko symbole zastępcze: zastąp token i wartości własnymi danymi.

curl
curl -X POST "https://platform.casafari.com/v1/alerts/feeds" \
  -H "Authorization: Bearer $CASAFARI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "feed_name": "Lisbon flats under 450K",
  "filters": {
    "business_type": "sale",
    "location_ids": [
      12345
    ],
    "types": [
      "apartment"
    ],
    "alert_subtypes": [
      "new",
      "price_decreased"
    ],
    "price_range": {
      "min": 200000,
      "max": 450000
    },
    "bedrooms_range": {
      "min": 2
    }
  }
}'

Odpowiedzi

200 Success.

Typ: object.

Show the response shape (47 fields)
feed_idintegerwymagany
feed_namestringwymagany
filtersobjectwymagany
28 properties
location_idsinteger[]nullable
1–100 elementów
typesstring[]nullable
42 dozwolone wartościapartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel building other_commercial restaurant werkstatt urban_plot rural_plot room parking garage other apartment_building office_building mix_use_building apartment_development house_development
co najmniej 1 element
business_typestringwymagany
sale rent
statuses(string | string)[]nullable
co najmniej 1 element
alert_subtypesstring[]nullable
new price_increased price_decreased reserved delisted sold
custom_locationsobject[][]nullable
Lista zamkniętych wielokątów punktów geograficznych, w obrębie których prowadzone jest wyszukiwanie. Każdy wielokąt musi zawierać co najmniej 4 punkty. Pierwszy i ostatni punkt w każdym wielokącie muszą się pokrywać. Dozwolone są maksymalnie 4 wielokąty.
1–4 items4–25 items
2 właściwości
latitudenumberwymagany
-90–90
longitudenumberwymagany
-180–180
privatebooleannullable
price_rangeobjectnullable
2 właściwości
minintegernullable
1–2147483647
maxintegernullable
1–2147483647
price_psqm_rangeobjectnullable
2 właściwości
minintegernullable
1–2147483647
maxintegernullable
1–2147483647
bathrooms_rangeobjectnullable
2 właściwości
minintegernullable
1–15000
maxintegernullable
1–15000
bedrooms_rangeobjectnullable
2 właściwości
minintegernullable
0–15000
maxintegernullable
0–15000
total_area_rangeobjectnullable
2 właściwości
minintegernullable
1–1000000
maxintegernullable
1–1000000
new_developmentbooleannullable
bankbooleannullable
auctionbooleannullable
construction_year_rangeobjectnullable
2 właściwości
minintegernullable
1–3000
maxintegernullable
1–3000
plot_area_rangeobjectnullable
2 właściwości
minintegernullable
1–1000000
maxintegernullable
1–1000000
floorsstring[]nullable
no_floor ground middle top
co najmniej 1 element
conditionsstring[]nullable
new used ruin very-good other
co najmniej 1 element
orientationstringnullable
exterior interior
viewsstring[]nullable
A matching listing must have every requested view, not just one.
water landscape city golf park
co najmniej 1 element
directionsstring[]nullable
A matching listing must face every requested direction, not just one.
north south east west
co najmniej 1 element
characteristicsstring[]nullable
A matching listing must have every requested characteristic, not just one.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity
co najmniej 1 element
has_phonebooleannullable
has_emailbooleannullable
has_agency_namebooleannullable
ref_numbersstring[]nullable
1–100 elementów
listing_idsinteger[]nullable
1–100 elementów
Przykład z przykładowymi wartościami (identyfikatory i liczby mają charakter poglądowy)
JSON
{
  "feed_id": 17,
  "feed_name": "Lisbon flats under 450K",
  "filters": {
    "business_type": "sale",
    "location_ids": [
      12345
    ],
    "types": [
      "apartment"
    ],
    "alert_subtypes": [
      "new",
      "price_decreased"
    ],
    "price_range": {
      "min": 200000,
      "max": 450000
    },
    "bedrooms_range": {
      "min": 2
    }
  }
}

Błędy

Każdy błąd to ciało typu application/problem+json (RFC 9457) zawierające type (strona z wyjaśnieniem), title, status, detail (co zrobić), instance, code oraz request_id (do podania przy zgłoszeniu wsparcia). Błąd 402 zawiera upgrade_url, a 429 nagłówek Retry-After. Kody, które może zwrócić każdy status:

Wskazówka: dodaj .md do dowolnego URL, aby wyświetlić go jako Markdown.