Platform

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

Legacy API (api.casafari.com)

The product pages and the REST API reference document the platform's routes, https://platform.casafari.com/v1/<product>. This page keeps the routes of the existing Casafari API at https://api.casafari.com, for Casafari clients with a contract who still call them. Nothing changes for them today: same base URL, same paths, same token. New integrations use the platform: sign in to the console for a platform API key.

Routes and what replaces them

Every route of the old API's public description, by product, with the platform route that does the same job where there is one. Each route keeps its own page.

Property Sourcing

Legacy routeWhat it doesOn the platform
POST /api/v1/properties/match-by-listingsGet property by listing IDs (v1)No platform route yet
POST /api/v1/properties/searchSearch properties (v1)POST /v1/property-sourcing/searches
GET /api/v1/properties/search/{property_id}Get property by ID (v1)GET /v1/property-sourcing/properties/{property_id}
POST /api/v1/properties/smart-linksCreate a smart link (BETA) (v1)No platform route yet
POST /api/v2/properties/searchSearch properties (v2)POST /v1/property-sourcing/searches

Comparables & Valuation

Legacy routeWhat it doesOn the platform
POST /api/v1/comparables/searchSearch comparables (v1)POST /v1/comparables/search
POST /api/v2/comparables/ai-builderInitialize an AI Builder session (v2)No platform route yet
POST /api/v2/comparables/searchSearch comparables (v2)POST /v1/comparables/search
POST /api/v1/valuation/comparables-pricesSearch estimated prices (v1)POST /v1/comparables/search (its answer carries the estimated prices)

Area Insights

New Market Leads

Set your webhook first: creating a feed before a webhook is set is refused with 409 "No webhook configured". A feed is created with feed_name and filters: filters.business_type is required, and private, bank, auction and alert_subtypes (new, price_increased, price_decreased, reserved, delisted, sold) narrow it and combine. POST /alerts-api/webhooks/rotate-secret rotates the secret that signs deliveries. The routes under /api/v1/listing-alerts/ read alerts without a webhook.

Legacy routeWhat it doesOn the platform
GET /api/v1/listing-alerts/feedsGet feeds list (v1)No platform route yet
POST /api/v1/listing-alerts/feedsCreate feed (v1)No platform route yet
GET /api/v1/listing-alerts/feeds/{id}Get alerts by feed (v1)No platform route yet
DELETE /api/v1/listing-alerts/feeds/{id}Delete feed (v1)No platform route yet
PUT /api/v1/listing-alerts/feeds/{id}/updateUpdate feed (v1)No platform route yet
POST /api/v1/listing-alerts/searchSearch alerts (v1)No platform route yet
GET /alerts-api/feedsList feedsNo platform route yet
POST /alerts-api/feedsCreate feedNo platform route yet
GET /alerts-api/feeds/{feed_id}Get feedNo platform route yet
DELETE /alerts-api/feeds/{feed_id}Delete feedNo platform route yet
PUT /alerts-api/webhooksSet webhook URLNo platform route yet
POST /alerts-api/webhooks/rotate-secretRotate signing secretNo platform route yet

References

Legacy routeWhat it doesOn the platform
GET /api/v1/references/agenciesGet agencies (v1)No platform route yet
GET /api/v1/references/agentsGet agents (v1)No platform route yet
GET /api/v1/references/conditionsGet conditions (v1)No platform route yet
GET /api/v1/references/featuresGet features (v1)No platform route yet
POST /api/v1/references/locationsGet locations (v1)GET /v1/locations/search (search by name)
GET /api/v1/references/locations/by-coordinatesGet location by passed coordinates (v1)GET /v1/locations/by-coordinates
POST /api/v1/references/locations/typeaheadGet locations typeahead suggestions scoped by country code (v1)GET /v1/locations/search (search by name)
GET /api/v1/references/sourcesGet sources (v1)No platform route yet
GET /api/v1/references/typesGet types (v1)No platform route yet
POST /api/v1/references/zipcode-boundaryGet zipcode boundary by zipcode and country code (v1)No platform route yet

Authentication

The sign-in of the routes above: see How to sign in.

Legacy routeWhat it doesOn the platform
POST /loginLoginA platform API key from the console instead
GET /refresh-tokenRefresh TokenA platform API key from the console instead

How to sign in

Base URLhttps://api.casafari.com
FormatJSON requests and responses
AuthenticationA bearer token (JWT) from POST /login with your account's email and password, or, for an integration without a person, OAuth2 client credentials: an API client created in your API account's settings, exchanged at POST /oauth/token with grant_type=client_credentials. Platform API keys do not work here; a platform key sent here answers 401.
OpenAPI description/docs/existing-api-customers/openapi.json, with request and response examples. Upstream: https://docs.api.casafari.com/openapi.json
Interactive docshttps://docs.api.casafari.com/

The API description says about the token:

The API endpoints require an authentication token to be provided with each request. The token must be sent via the Authorization HTTP header, containing the keyword Bearer followed by your authentication token.

The public description lists the base catalogue. What your account can call depends on its subscription, and the interactive docs show your account's own list after you sign in. For agents, auth.md covers both ways of signing in.

Get a token

  1. Call POST /login with your account's email and password. The response has an access_token and a refresh_token.
  2. Send Authorization: Bearer <access_token> with every other request.
  3. When the access token expires, call GET /refresh-token with the refresh token as the bearer. A 401 from it means the refresh token has expired: log in again.
bash
curl -X POST "https://api.casafari.com/login" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "<email>",
  "password": "<password>"
}'

Then, with the token in an environment variable ($CASAFARI_TOKEN in every example of the Legacy API on this site is a placeholder, never a credential):

bash
curl "https://api.casafari.com/api/v1/references/types" \
  -H "Authorization: Bearer $CASAFARI_TOKEN"

Some old routes take a static token instead, sent in the Authorization header after the word Token:

bash
curl "https://api.casafari.com/v1/references/types" \
  -H "Authorization: Token $CASAFARI_TOKEN"

The reference by version

Generated from the API's own description, the reference developer.casafari.com used to show (that address now redirects here):

  • API v1: 22 operations at https://api.casafari.com/v1
  • API v2: 3 operations at https://api.casafari.com/v2

This is the public part of the API. If your account also has services that are not public (cadastre, market data and integrations among them), their reference appears when you log in to your API account.

The old API's whole public description, with request and response examples, is /docs/existing-api-customers/openapi.json.

Where to get your existing token

Your token is issued by Casafari with your API contract and is no longer shown in your API account's settings. If you do not have it, or need it reset, ask your Casafari contact or write to Casafari. Your profile, password and usage statistics are in your API account. This site never asks for a token and never shows one, so there is nothing to enter here.

The new platform

The new platform has its own account and its own keys: sign in at platform.casafari.com/console. You do not need to migrate anything today, and your existing token keeps working. If you want to try the new platform, you can set up its account next to the one you have.

Quota and tokens

The quota in your API contract is set by that contract and is not metered in tokens. Tokens, credits and 402 payment_required errors belong to the new platform and do not apply to your existing API. Casafari publishes no quota or rate-limit figures for existing contracts, so ask Casafari about yours.

Who to contact

If you cannot find your token or something looks wrong, contact Casafari through casafari.com and mention that you are an existing API customer.

Questions about this

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