Find leads · Use case
How do I track what competing agencies are selling, reserving and removing in my area?
Casafari's property graph links each property to the agencies advertising it. On the platform, search your area with POST /v1/property-sourcing/searches, then read each home with GET /v1/property-sourcing/properties/{property_id} and expand=listings,history to see which agencies hold it and how its status changed. Filters by agency name and alerts stay on the Legacy API.
Products: Property Sourcing, References, New Market Leads, Comparables & Valuation
Short answer
The property graph links each property to the agencies and agents that advertise it, with one record per property. That lets you do three things for each competitor:
- count its active stock in an area
- see how much of that stock it holds alone
- follow reservations, removals from the market and sales on its properties
On the platform you do this from the properties: search an area, then read who advertises each home and what happened to it. Filtering by agency name, and alerts on a competitor's homes, are on the Legacy API only.
Steps
Search your area: POST /v1/property-sourcing/searches with location_ids
- Create a platform API key (
cf_sk_...) in the console at https://platform.casafari.com/console and send it asAuthorization: Bearer $CASAFARI_API_KEY. See platform API keys. - Find your area's id with Location Lookup,
GET /v1/locations/searchwithqueryandcountry. - Call
POST /v1/property-sourcing/searcheswithlocation_ids,operationand, if you like,types, andpage_sizeup to 100. FollownextwithGET /v1/property-sourcing/searches/{cursor}. See Search properties. The platform search has no agency filter, so you take the whole area and group the homes yourself. Addexclusive: truefor the homes offered through a single agency or private seller only, orexclusive: falsefor those offered through several; each result also carries itsexclusiveflag.changed_after(YYYY-MM-DD) keeps the homes whose price, status or details changed since your last review.
See who advertises each home: GET /v1/property-sourcing/properties/{property_id} with expand=listings,history
- For each result, call
GET /v1/property-sourcing/properties/{property_id}?expand=listings,history. See Get a property. listings_countsays how many places advertise the home. Each entry oflistings[]has itssource,agency,url,price,status,activeandfirst_seen.- Each entry of
history[]hasdate,event,old_value,new_value,sourceandagency: status changes such as a reservation or a sale, and price changes, with the agency that showed them.
Legacy API: exact names with GET /api/v1/references/agencies, GET /api/v1/references/agents and GET /api/v1/references/sources
- Existing clients on the Legacy API (api.casafari.com, contract clients, its own sign-in: how to sign in) look up each competitor's name as Casafari stores it: agencies with
GET /api/v1/references/agencies(Get agencies (v1)), agents withGET /api/v1/references/agents(Get agents (v1)), portals and other sources withGET /api/v1/references/sources. The platform has no route for these lists.
Legacy API: count and follow one competitor with POST /api/v2/properties/search and POST /api/v1/listing-alerts/search
- They call
POST /api/v2/properties/searchwithlocation_idsandwith_agencies(orlisting_agentsfor one agent), then again withexclusive: truefor the homes available exclusively from a single agency. See Search properties (v2). - They follow changes with
POST /api/v1/listing-alerts/search,with_agencies,alert_date_from,alert_date_toandalert_subtypesfor reservations, removals and sales (Search alerts (v1)). - A feed on
POST /alerts-api/feedscannot follow one competitor: itsfiltershave no key for an agency name, onlyhas_agency_name, true or false. See Create feed. The platform has no route for alerts.
Example: agencies active in Estoril
- Get the Estoril location id with
GET /v1/locations/search?query=Estoril&country=PT. - Search the homes for sale there:
curl -X POST "https://platform.casafari.com/v1/property-sourcing/searches" \
-H "Authorization: Bearer $CASAFARI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"location_ids": [<ESTORIL_LOCATION_ID>],
"operation": "sale",
"sort": "newest",
"page_size": 100
}'- For each
prop_id in the results, callGET /v1/property-sourcing/properties/{property_id}?expand=listings,history. - Group the homes by the
agencynames in their activelistings[]entries. Run the search again with"exclusive": trueto count the homes held alone.
Build a league table with one row per agency and these columns: active properties for sale, of which held alone, and the reservations, removals from the market and sales in its homes' history[] for the period. The figures come from your own responses; this page shows no sample numbers.
Existing clients on the Legacy API can fill the same table per agency with POST /api/v2/properties/search (with_agencies, then exclusive: true) and POST /api/v1/listing-alerts/search for the period.
An assistant connected to Casafari's MCP servers can do the platform part with locations_search, property-sourcing_search and property-sourcing_get_property, whose answer lists every agency and portal advertising the home. It reads one home per call, so keep the area small.
How to read the result
Shared versus exclusive properties
Each property is one record, so a home advertised by several agencies appears once, with one entry per agency or portal in listings[]. A home whose active entries all name the same agency is held alone; a home with several agencies is shared. Each search result's exclusive flag says the same without reading the home.
A high share held alone means mandates won alone. Shared stock is contested, and a removal or sale on it may have gone to another agency.
listings_count and sale_active_listings_count show how many advertise a home
listings_count, on a property read with expand=listings, is how many places advertise it; it is null in search results. Over MCP, comparables_get_comparables gives sale_active_listings_count, the number of active advertisements a property has on the sales market, and average_listings_per_property in its statistics.
A count above one means several agencies or portals advertise the same home. Count agencies, not portals, before you call a home shared.
Limits
Agency names come from the advertisements
On the platform, group by the agency names exactly as listings[] gives them; the same firm may appear under slightly different names. On the Legacy API, with_agencies, without_agencies and listing_agents accept only the names returned by the References operations. The graph sees only what is advertised, so mandates that are never advertised do not appear.
What is on the platform and what stays Legacy API
Property Sourcing (POST /v1/property-sourcing/searches, GET /v1/property-sourcing/properties/{property_id}) is self-serve on the platform, over REST and MCP, and one search reaches at most 1000 results. References, POST /api/v2/properties/search with its agency filters, POST /api/v1/listing-alerts/search and /alerts-api/feeds are Legacy API, for Casafari client accounts; the platform has no route for them yet.
No refresh frequency or quotas are published; ask Casafari.
Questions
Can I see which agent has a property?
Where an agent is named, on the Legacy API. The graph links properties to agents: GET /api/v1/references/agents gives the names Casafari stores, and listing_agents on POST /api/v2/properties/search or POST /api/v1/listing-alerts/search returns properties or alerts for those agents. On the platform, GET /v1/property-sourcing/properties/{property_id}?expand=listings names the agency of each entry; the sources show no agent field there.
Can I get competitor activity as a webhook?
Not by agency name. Alert feeds on POST /alerts-api/feeds, delivered through PUT /alerts-api/webhooks, are Legacy API only, and their filters only have has_agency_name, no agency names. Existing clients can filter alerts by agency on demand with with_agencies on POST /api/v1/listing-alerts/search. On the platform, search your area on a schedule with changed_after set to your last run, then compare the history[] of the homes that come back.
Can I exclude my own agency from results?
On the Legacy API, yes: without_agencies excludes the agencies, companies or sources you name, on POST /api/v2/properties/search and POST /api/v1/listing-alerts/search, using names from GET /api/v1/references/agencies. Over MCP, comparables_get_comparables takes without_agencies too. On the platform's Property Sourcing, drop the homes whose listings[] name only your agency when you group them.