Property data in your product · Use case
How do I look up one property and see every price and status change?
Fetch the property with GET /v1/property-sourcing/properties/{property_id} and expand=listings,history in Casafari's Property Sourcing, with a platform API key. Each record merges every advertisement of one property: history lists its price changes and other events with dates, and listings gives each advertisement's status. Find the prop_ id first from a portal or agency link, or a reference, with POST /v1/property-sourcing/properties/resolve.
Products: Property Sourcing, References
Short answer
Casafari collects property advertisements from agency websites and portals in 16 countries. It structures, cleans and deduplicates them, then merges every advertisement of a property into one record. That record carries the property's history: each price change and other event, with its date, in history, and every advertisement with its own status in listings.
You fetch the record with GET /v1/property-sourcing/properties/{property_id} and expand=listings,history, part of Property Sourcing. The property graph explains how the record is built. Existing clients on the Legacy API call GET /api/v1/properties/search/{property_id} and read sale_price_history and rent_price_history; its ids are not the platform's prop_ ids.
Steps
Get a platform API key: no sign-in call
- Create a platform API key (
cf_sk_...) in the console at https://platform.casafari.com/console. Send it asAuthorization: Bearer $CASAFARI_API_KEY(or inX-API-Key) on every call. There is no sign-in or refresh call. See platform API keys.
Find the property id: from a portal or agency link or reference with POST /v1/property-sourcing/properties/resolve, or with POST /v1/property-sourcing/searches
- If you hold the link of a portal or agency ad, send it in
urltoPOST /v1/property-sourcing/properties/resolve. Addcountrywhen the link's domain does not say the country. Theidinresultsis the property'sprop_id. - If you only hold the agency's own reference number, send it in
reference, withcountry, to the same operation. If you hold neither, find the property withPOST /v1/property-sourcing/searchesbylocation_idsfrom Location Lookup (GET /v1/locations/search) and filters. Existing Legacy API clients resolve ad ids withPOST /api/v1/properties/match-by-listings.
Fetch: GET /v1/property-sourcing/properties/{property_id} with expand=listings,history
- Call the operation with the
prop_id from step 2 or 3.expand=listings,historyadds every advertisement of the property (listings) and their changes (history). Addoperation=saleoroperation=rentto choose which price and status the record shows.
Read history, status and listings
- Read
historyin date order. Each entry hasdate,event(for exampleneworprice_change),action(for exampledecrease),operation,old_value,new_value, and thesourceandagencyit came from. - Read
statusfor the property's current state andfirst_seenfor when it came on the market for this operation. Each entry inlistingshas its ownstatus,active,first_seen,price,url,sourceandagency. The operation's reference page has the full response.
Example
A buyer's agent in Lisbon has the link of a portal ad for a flat. They want to know how long it has been offered and at what prices.
curl -X POST "https://platform.casafari.com/v1/property-sourcing/properties/resolve" \
-H "Authorization: Bearer $CASAFARI_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "<portal ad link>", "country": "PT" }'curl "https://platform.casafari.com/v1/property-sourcing/properties/<prop_id>?expand=listings,history" \
-H "Authorization: Bearer $CASAFARI_API_KEY"The condensed record below shows field names only. Values are elided. The full shape, with sample values, is on the reference page.
{
"id": "prop_...",
"operation": "sale",
"price": { "amount": "...", "currency": "...", "per_sqm": "..." },
"first_seen": "...",
"status": "...",
"listings_count": "...",
"listings": [
{ "source": "...", "agency": "...", "url": "...", "price": { "amount": "...", "currency": "..." }, "status": "...", "active": "...", "first_seen": "...", "references": ["..."] }
],
"history": [
{ "date": "...", "event": "...", "action": "...", "operation": "...", "old_value": "...", "new_value": "...", "source": "...", "agency": "..." }
]
}How to read the result
Read history in date order.
- First event and
first_seen: tell you how long the property has been offered. - Each
price_change:old_value,new_valueandactionshow the direction and size of the move. - Inactive advertisements beside newer ones: an entry in
listingswithactivefalse next to one with a laterfirst_seensuggests the property was withdrawn and offered again. This answers the question "was this home on the market before?"
A long history with several cuts is negotiation leverage for a buyer. For a valuer, lender or due-diligence team, the same history is a dated record of how the market has treated the property.
Statuses: status on the property and on each advertisement
The property's status is its current state on the market for the operation you read; the reference page's example shows active. Each entry in listings carries its own status and an active flag. Read a status as the property's state on the market as the graph observed it from the advertisements. In the Legacy API record the same states sit in sale_status and rent_status: active, reserved, hold, sold or rented.
Several agencies, one record: the agencies linked to the property
When several agencies and portals advertise the same property, Casafari recognises them as one property. It keeps one record that links the advertisements, agencies, location and history. You therefore read one history, not one per advertisement: each entry names its source and agency, and listings_count says how many advertisements the property has. Existing Legacy API clients match agency names to GET /api/v1/references/agencies; the platform has no route for that vocabulary yet.
Limits
Property Sourcing is self-serve on the Casafari API and MCP Platform over REST, with a platform API key, and over MCP. Existing clients keep the Legacy API with their Casafari account.
The sources give no figures for quotas, rate limits, refresh frequency or SLAs. Ask Casafari at https://www.casafari.com/.
Over REST and MCP: an assistant reads the same record
The Property Sourcing MCP server (https://platform.casafari.com/mcp/property-sourcing, also on the one server for every product, https://platform.casafari.com/mcp) answers a request such as "show me the price history of this property" with property-sourcing_get_property, and turns a link into the property with property-sourcing_resolve_listing. Your own code calls the REST operations above. See MCP vs REST API: which to use.
History covers what the graph observed since the property first appeared
The history starts when the property first appeared in the sources Casafari collects. A property never advertised in those sources has no history in the graph. Changes made before its first appearance are not recorded. The history shows asking prices and statuses on the market; it does not tell you the price a buyer finally paid. For what similar homes nearby sold for, see GET /v1/property-sourcing/properties/{property_id}/closing-prices. More: How long has this property been on the market and what did it originally ask?
Ask in Claude or ChatGPT
Property Sourcing has an MCP server, https://platform.casafari.com/mcp/property-sourcing, so an assistant can run this from a chat. In Claude or ChatGPT, add a custom connector with that URL; in Claude Code: claude mcp add --transport http casafari-property-sourcing https://platform.casafari.com/mcp/property-sourcing. Sign in with your Casafari Platform account in the browser (a new account starts on the Free plan). Then ask, for example:
Flats in Madrid under €650K, 2+ bedrooms: show each with every agency advertising it and its price history.
The assistant finds the place with locations_search (free), searches with property-sourcing_search (5 tokens a page of up to 10 homes, property-sourcing_next_page for more), reads each home with property-sourcing_get_property (2 tokens: every agency and portal advertising it and its asking price history) and turns a pasted portal or agency link into its home with property-sourcing_resolve_listing (2 tokens). Prices are asking prices. See Property Sourcing.
Questions
Can I look up a property over MCP?
Yes. Property Sourcing has an MCP server at https://platform.casafari.com/mcp/property-sourcing, and its tools are also on the one server for every product, https://platform.casafari.com/mcp. property-sourcing_get_property reads one property by its prop_ id with its advertisements and history, the same record as GET /v1/property-sourcing/properties/{property_id}, and property-sourcing_resolve_listing finds the property behind a portal or agency link. An assistant signs in with OAuth in the browser or a platform API key.
What if the same property was advertised at different prices by two agencies?
It is still one property record, because Casafari recognises the same property advertised by several agencies and portals as one and merges every advertisement into that record. With expand=listings, each entry in listings carries its own price, agency and source, so you see both asking prices side by side, and history keeps every change with its date and agency. The sources do not describe how the record's own price is chosen when they differ.
Can I see which agencies advertised it?
Yes. With expand=listings, each entry in listings names its agency, source and url, and each history entry names the agency behind the change. The exact response fields are on the reference page at /docs/rest/property-sourcing/get-a-property. Existing Legacy API clients match agency names to GET /api/v1/references/agencies; the platform has no route for that vocabulary yet.
Can I get the history for every property in an area in bulk?
For bulk delivery, see Data Export at /docs/data-export, which describes bulk delivery and the fields of each entity, including the Property entity. Over the REST API you can search an area with POST /v1/property-sourcing/searches, follow next through the pages (one search reaches at most 1000 results), and fetch each property by id with expand=history. The sources publish no terms or limits for bulk delivery; ask Casafari at https://www.casafari.com/.
Related: Resolve client-forwarded links to one property record