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

Claro AI · REST API

Ask about a search you show

POSThttps://platform.casafari.com/v1/claro/search/ask
API key6 parámetros

Send Authorization: Bearer $CASAFARI_API_KEY: a platform API key or OAuth access token, metered in platform tokens; see platform sign-in and Claro AI. On the platform this is POST https://platform.casafari.com/v1/claro/search/ask; POST /v1/search/ask is Claro's own path, which the platform adds /claro to. The platform forwards the call to Claro unchanged: Claro's Claro-Version header and its error bodies ({"error":{"code","message"}}, with rate_limited and quota_reached on a 429) pass through.

Over MCP: no tool does this. MCP and REST compared.

Description

A free question about a search you show your user ("why only 180?", "which has the longest frontage?"), answered by a model from that search and the read-only operations (get_premises, compare_premises, market_snapshot) on your account. Every number in the answer is checked against the search and those results, and a sentence with any other number is dropped (counted in dropped); a sentence naming a property portal is dropped; a link survives only when it is a listing_url from the data. answer is null when nothing survived. When the user asks to change the search, change is the change in plain words for POST /v1/search/refine and answer says what will change. Counted against the account's daily calls like a search.

Cuerpo de la solicitud

Tipo de contenido application/json. Obligatorio. Tipo: object.

questionstringobligatorio
at most 2000 characters
searchobjectobligatorio
The search as you show it: a POST /v1/search answer (criteria, counts, notes, results), optionally with prev (the search it replaced: at, criteria, counts).
historyobject[]
The conversation so far, oldest first (the last 8 are read).
2 propiedades
rolestringobligatorio
user assistant
textstringobligatorio
langstring
The language to answer in when the question's own language is unclear.
en de es

Ejemplo de solicitud

Solo marcadores de posición: reemplace el token y los valores por los suyos.

curl
curl -X POST "https://platform.casafari.com/v1/claro/search/ask" \
  -H "Authorization: Bearer $CASAFARI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "question": "<question>",
  "search": {}
}'

Respuestas

200 The checked answer, or the change to apply

Tipo: object.

Show the response shape (12 fields)
answerstringobligatorio
Markdown.
changestringobligatorio
droppedobjectobligatorio
3 propiedades
numbersinteger
portalsinteger
linksinteger
modelstringobligatorio
usageobjectobligatorio
4 propiedades
roundsinteger
input_tokensinteger
output_tokensinteger
msinteger

400 Solicitud no válida

Tipo: object.

Mostrar la estructura de la respuesta (3 campos)
errorobject
2 propiedades
codestringobligatorio
messagestringobligatorio

401 Clave faltante o no válida

Tipo: object.

Mostrar la estructura de la respuesta (3 campos)
errorobject
2 propiedades
codestringobligatorio
messagestringobligatorio

403 Sin acceso

Tipo: object.

Mostrar la estructura de la respuesta (3 campos)
errorobject
2 propiedades
codestringobligatorio
messagestringobligatorio

429 Límite de peticiones alcanzado

Tipo: object.

Mostrar la estructura de la respuesta (3 campos)
errorobject
2 propiedades
codestringobligatorio
messagestringobligatorio

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