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).
Die OpenAPI-Datei der Plattform lässt die Struktur offen; die Angaben hier stammen aus denselben Definitionen, die die Plattform auch an anderer Stelle bereitstellt: response 200: das Fragment aus dem Vertrag der Plattform.
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).
Abfrageparameter
page_sizeintegercursorZeichenfolgecountryZeichenfolgelatnumberlonnumberradius_mintegeroperationZeichenfolgesale rentmin_price_cutsintegermin_price_cut_pctnumbersincestring (Datum)typesZeichenfolgeprice_minintegerprice_maxintegerBeispielanfrage
Ersetzen Sie den Schlüssel durch Ihren eigenen. Führen Sie ihn vor der Veröffentlichung auf der Plattform aus: Kopieren Sie ihn, fügen Sie Ihren Schlüssel ein, und er funktioniert.
curl "https://platform.casafari.com/v1/seller-leads?country=DE&lat=52.52&lon=13.405&radius_m=300" \
-H "Authorization: Bearer $CASAFARI_API_KEY"Antworten
200 Success.
Typ: object.
Show the response shape (14 fields)
resultsobject[]5 Eigenschaften
idZeichenfolgelead_....property_idZeichenfolgeprop_ id, readable with GET /v1/property-sourcing/properties/{property_id}.coordinatesobjectkann null sein2 Eigenschaften
latnumberlonnumberprice_cutsobjectkann null sein2 Eigenschaften
countnumberkann null seinpercentagenumberkann null seinprice_cuts_sinceobjectkann null seinsince date; null without it.2 Eigenschaften
countnumberkann null seinpercentagenumberkann null seintotalintegernextZeichenfolgekann null seinBeispiel mit Beispielwerten (IDs und Zahlen dienen der Veranschaulichung)
{
"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"
}Fehler
Jeder Fehler erfolgt als application/problem+json-Body (RFC 9457) mit type (eine Seite zur Erläuterung), title, status, detail (Handlungsempfehlung), instance, code und request_id (bitte bei Supportanfragen angeben). Ein 402-Status enthält eine upgrade_url, ein 429-Status einen Retry-After-Header. Die Codes pro Status:
- 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)