Platform

Casafari es la plataforma de inteligencia de datos inmobiliarios nativa para agentes de IA. El índice inmobiliario más completo de Europa: un grafo inmobiliario limpio y deduplicado de propiedades residenciales y comerciales, en venta y alquiler, en 16 países.El índice inmobiliario más completo de Europa: un grafo inmobiliario limpio y deduplicado.

Cómo se construye el grafo

Area Insights · REST API

Heatmap of an area by district

POSThttps://platform.casafari.com/v1/area-insights/heatmap
API key25 tokens por llamada39 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). 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 area-insights_get_heatmap's input (its request_data object).

Over MCP: area-insights_get_heatmap (equivalent). See MCP and REST compared.

Description

Cuesta 25 tokens por llamada.

Cuerpo de la solicitud

Content type application/json. Opcional. Tipo: object.

type_groupstringobligatorio
Grupo de tipo de inmueble.
apartment house
business_typestringobligatorio
Tipo de operación para la que el inmueble está disponible.
sale rent
price_rangeobjectnullable
2 propiedades
minintegernullable
1–2147483647
maxintegernullable
1–2147483647
price_per_sqm_rangeobjectnullable
2 propiedades
minintegernullable
1–2147483647
maxintegernullable
1–2147483647
rooms_rangeobjectnullable
2 propiedades
minintegernullable
1–15000
maxintegernullable
1–15000
bedrooms_rangeobjectnullable
2 propiedades
minintegernullable
0–15000
maxintegernullable
0–15000
bathrooms_rangeobjectnullable
2 propiedades
minintegernullable
1–15000
maxintegernullable
1–15000
total_area_rangeobjectnullable
2 propiedades
minintegernullable
1–1000000
maxintegernullable
1–1000000
plot_area_rangeobjectnullable
2 propiedades
minintegernullable
1–1000000
maxintegernullable
1–1000000
construction_year_rangeobjectnullable
2 propiedades
minintegernullable
1–3000
maxintegernullable
1–3000
characteristicsobjectnullable
2 propiedades
must_havestring[]
Incluir solo los inmuebles que posean todas estas características.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity
excludestring[]
Excluir los inmuebles que contengan alguna de estas características.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity
conditionsstring[]
Estados de conservación de la propiedad, tal y como los devuelve el endpoint GET /api/v1/references/conditions.
used ruin very-good new other
al menos 1 elemento
privateboolean
Indica si el anuncio es de un particular o de un profesional o agencia inmobiliaria.
bankboolean
Si el inmueble es propiedad del banco.
auctionboolean
Si el inmueble está sujeto a subasta.
por defecto false
exclude_outliersboolean
Excluir inmuebles cuyo precio esté significativamente fuera de mercado en comparación con propiedades similares.
valor predeterminado true
location_idintegerobligatorio
1–2147483647
data_pointstringobligatorio
Especifica el tipo de datos inmobiliarios a recuperar para un periodo determinado.
avg_price avg_price_psqm available_on_market new sold_or_rented price_up price_down
date_rangeobjectobligatorio
2 propiedades
mincadena (fecha)obligatorio
Start date in the format YYYY-MM-DD. If the specified date is not Monday - the closest previous Monday will be selected
maxcadena (fecha)nullable
End date in the format YYYY-MM-DD. If the specified date is not Sunday - the closest previous Sunday will be selected

Ejemplo de solicitud

Sustituya la clave por la suya. Ejecútelo en la plataforma antes de publicarlo: cópiela, inserte su clave y funcionará.

curl
curl -X POST "https://platform.casafari.com/v1/area-insights/heatmap" \
  -H "Authorization: Bearer $CASAFARI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type_group": "apartment",
  "business_type": "sale",
  "location_id": 11737,
  "data_point": "avg_price_psqm",
  "date_range": {
    "min": "2025-01-01",
    "max": "2025-12-31"
  }
}'

Respuestas

200 Success.

Tipo: object.

Errores

Cada error devuelve un cuerpo application/problem+json (RFC 9457) con type (la página donde se explica), title, status, detail (qué hacer), instance, code y request_id (indíquelo al solicitar soporte). Un error 402 incluye una upgrade_url, y un 429 una cabecera Retry-After. Códigos asociados a cada estado:

Consejo: añada .md a cualquier URL para leerla como Markdown.