High Potential Seller Leads · REST API
List seller leads
https://platform.casafari.com/v1/seller-leadsSend 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 100 tokens a call (1 token = EUR 0.04).
El archivo OpenAPI de la plataforma permite flexibilidad; lo que se muestra proviene de las mismas definiciones que la plataforma publica en otros lugares: respuesta 200: el fragmento del centro de documentación extraído del contrato de la plataforma.
Over MCP: none; this product is REST only.
Description
Costs 100 tokens a call. Each page is a call. One search reaches at most 1000 results. Each lead is {id, property_id, coordinates, price_cuts, price_cuts_since}: the property id, its coordinates and its price reductions, no property details (type, price, size, address). For a lead's details, pass its property_id to Property Sourcing's GET /v1/property-sourcing/properties/{property_id} (10 tokens).
Parámetros de consulta
page_sizeintegercursorstringcountrystringlatnumberlonnumberradius_mintegeroperationstringsale rentmin_price_cutsintegermin_price_cut_pctnumbersincecadena (fecha)typesstringprice_minintegerprice_maxintegerEjemplo de solicitud
Sustituya la clave por la suya. Ejecútelo en la plataforma antes de publicarlo: cópiela, inserte su clave y funcionará.
curl "https://platform.casafari.com/v1/seller-leads?country=ES&lat=40.4168&lon=-3.7038&radius_m=300" \
-H "Authorization: Bearer $CASAFARI_API_KEY"Respuestas
200 Success.
Tipo: object.
Show the response shape (14 fields)
resultsobject[]5 propiedades
idstringlead_....property_idstringprop_ id, readable with GET /v1/property-sourcing/properties/{property_id}.coordinatesobjectnullable2 propiedades
latnumberlonnumberprice_cutsobjectnullable2 propiedades
countnumbernullablepercentagenumbernullableprice_cuts_sinceobjectnullablesince date; null without it.2 propiedades
countnumbernullablepercentagenumbernullabletotalintegernextstringnullableEjemplo con valores de muestra (los identificadores y las cifras son ilustrativos)
{
"results": [
{
"id": "lead_5Tn3wK8pR2yH6mQ1vX9cBe",
"property_id": "prop_9Rk4tW2nP7xM3cL6vB1qZs",
"coordinates": {
"lat": 40.4172,
"lon": -3.7051
},
"price_cuts": {
"count": 3,
"percentage": 12.5
},
"price_cuts_since": null
}
],
"total": 14,
"next": "https://platform.casafari.com/v1/seller-leads?cursor=cur_SAMPLE"
}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:
- 400
invalid_request,key_in_query,page_depth_exceeded(https://platform.casafari.com/errors/invalid-request, https://platform.casafari.com/errors/key-in-query, https://platform.casafari.com/errors/page-depth-exceeded) - 401
unauthorized,invalid_credential,credential_revoked,token_expired(https://platform.casafari.com/errors/unauthorized, https://platform.casafari.com/errors/invalid-credential, https://platform.casafari.com/errors/credential-revoked, https://platform.casafari.com/errors/token-expired) - 402
payment_required(https://platform.casafari.com/errors/payment-required) - 403
insufficient_scope,not_entitled,account_suspended(https://platform.casafari.com/errors/insufficient-scope, https://platform.casafari.com/errors/not-entitled, https://platform.casafari.com/errors/account-suspended) - 404
not_found(https://platform.casafari.com/errors/not-found) - 405
method_not_allowed(https://platform.casafari.com/errors/method-not-allowed) - 429
rate_limited,daily_limit_reached,request_limit_reached,usage_limit_reached(https://platform.casafari.com/errors/rate-limited, https://platform.casafari.com/errors/daily-limit-reached, https://platform.casafari.com/errors/request-limit-reached, https://platform.casafari.com/errors/usage-limit-reached) - 500
internal_error(https://platform.casafari.com/errors/internal-error) - 502
upstream_error(https://platform.casafari.com/errors/upstream-error) - 503
capacity_exhausted,unavailable(https://platform.casafari.com/errors/capacity-exhausted, https://platform.casafari.com/errors/unavailable) - 504
upstream_timeout(https://platform.casafari.com/errors/upstream-timeout)