How to track property status changes with an API

The short answer

To detect when a property goes For Sale, Pending, Sold, or Off Market, query Datafiniti Property Data on mostRecentStatus with a date range on mostRecentStatusFirstDateSeen, then read statusHistory for the full timeline. Run the query on a schedule, diff each record's status against what you stored last time, and fire an event on every change.

Datafiniti Team Last updated 9 min read

Key facts

  • Endpoint: POST https://api.datafiniti.co/v4/properties/search with bearer-token auth.
  • Sale statuses: "For Sale", "For Sale By Owner", "Coming Soon", "Pending", "Sold", "Off Market" (with "Delisted (…)" variants), "Auction", "Pre-Foreclosure", "Foreclosed".
  • Rental statuses are tracked separately in mostRecentRentalStatus and rentalStatuses.
  • History lives in statusHistory; the older statuses field is deprecated.
  • Each property record returned costs 1 credit; counting matches with the MCP df_count tool is free.
  • Large result sets are delivered as downloadable files with "download": true.

Datafiniti is a data-as-a-service provider that offers Property, People, Business, and Product data through a REST API, bulk downloads, and an MCP server. This guide covers one of the most common features teams build on property data: knowing the moment a listing changes state.

Who needs property status change data?

Status changes are the trigger behind a lot of products:

  • Listing alerts and search apps that notify buyers when a saved home goes pending or comes back on the market.
  • Agent and lender CRMs that flag past clients whose homes were just listed or sold.
  • Investor deal-flow tools that surface new listings, relistings, and pre-foreclosures in a target market.
  • Portfolio and servicing monitors that watch a fixed set of addresses for sale or rental activity.
  • Market analytics that measure how fast inventory moves from listed to pending to sold.

Why is this hard to build yourself?

A reliable status feed needs more than a scraper:

  • Many sources, one property. The same house appears on several listing sites with different URLs, photos, and address spellings. You need address normalization and record merging before you can say "this property changed."
  • Inconsistent vocabularies. "Under contract," "contingent," and "pending" overlap differently on every site, and off-market reasons (withdrawn, expired, cancelled) are labeled differently everywhere.
  • History, not snapshots. A status alert is a diff. Without every prior state and its dates, you can't tell a new listing from a relisting.
  • Freshness and upkeep. Pages change layout, rate-limit, and block crawlers. The maintenance never ends.

Licensed MLS feeds solve the vocabulary problem for a single market, but they require agreements with each MLS or an aggregator, and redistribution typically requires broker back-office (BBO) licensing.

What fields describe a property's status?

Field Type What it tells you
mostRecentStatuskeywordThe current sale status, e.g. "Pending"
mostRecentStatusDatedateThe date of change for the current status
mostRecentStatusFirstDateSeendateWhen Datafiniti first saw the current status. Use it as your incremental watermark.
statusHistorynestedEvery sale status with type, date, dateSeen, firstDateSeen, lastDateSeen, sourceURLs
mostRecentSoldPriceAmount / mostRecentSoldPriceDatefloat / dateThe latest sold price and its date
mostRecentRentalStatuskeywordThe current rental status, e.g. "Rental" or "Short Term Rental"
rentalStatusesnestedRental status history, same shape as statusHistory
daysOnMarketintegerDays the property has been on the market

A trimmed record looks like this (fictional example data):

property record · JSON
{
"id": "EXAMPLE-PROP-0001",
"address": "1208 Larkspur Hollow Dr",
"city": "Austin",
"province": "TX",
"postalCode": "78745",
"country": "US",
"propertyType": "Single Family Dwelling",
"mostRecentStatus": "Pending",
"mostRecentStatusDate": "2026-10-21T00:00:00.000Z",
"mostRecentStatusFirstDateSeen": "2026-10-22T09:14:02.000Z",
"statusHistory": [
{
"type": "For Sale",
"date": "2026-09-30T00:00:00.000Z",
"firstDateSeen": "2026-10-01T06:02:11.000Z",
"lastDateSeen": "2026-10-20T07:45:39.000Z",
"sourceURLs": ["https://listings.example.com/1208-larkspur-hollow-dr"]
},
{
"type": "Pending",
"date": "2026-10-21T00:00:00.000Z",
"firstDateSeen": "2026-10-22T09:14:02.000Z",
"lastDateSeen": "2026-10-25T08:30:17.000Z",
"sourceURLs": ["https://listings.example.com/1208-larkspur-hollow-dr"]
}
]
}

How do I find properties whose status changed recently?

Step 1: Size the result before you spend credits

Every property record returned costs 1 credit, so check the count first. From an AI agent or MCP client, df_count is free. Over REST, request a single record and read num_found:

cURL
curl --request POST \
--url https://api.datafiniti.co/v4/properties/search \
--header "Authorization: Bearer $DATAFINITI_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"query": "country:US AND province:TX AND city:Austin AND propertyType:\"Single Family Dwelling\" AND mostRecentStatus:(\"Pending\" OR \"Sold\") AND mostRecentStatusFirstDateSeen:[2026-10-19 TO *]",
"num_records": 1
}'

The response includes num_found, the total number of matches, and records.

Step 2: Write the query for the changes you care about

Geographic filters use top-level fields: country, province, city, postalCode. Combine them with a status and a date window, and always wrap OR-groups in parentheses.

Datafiniti query syntax
# New listings in the last 7 days
country:US AND province:TX AND city:Austin AND mostRecentStatus:("For Sale" OR "Coming Soon") AND mostRecentStatusFirstDateSeen:[2026-10-19 TO *]
# Went pending or sold since your last run
country:US AND province:TX AND city:Austin AND mostRecentStatus:("Pending" OR "Sold") AND mostRecentStatusFirstDateSeen:[2026-10-19 TO *]
# Came off the market, including every "Delisted (...)" variant
country:US AND province:TX AND city:Austin AND (mostRecentStatus:("Off Market" OR Delisted*) OR statusHistory.type:Delisted*) AND mostRecentStatusDate:[2026-10-19 TO *]
# Recent sales with a sold-price date window
country:US AND province:TX AND city:Austin AND propertyType:"Single Family Dwelling" AND mostRecentStatus:"Sold" AND mostRecentSoldPriceDate:[2026-09-26 TO 2026-10-26]

Step 3: Pull the full set as a download

Searches return a sample. For the full set, send the same body with "download": true, poll GET /v4/downloads/{id} until the status is "completed", then fetch each file listed in results. Set num_records to cap spend: if you omit it, every matching record is downloaded and charged.

Step 4: Diff against your last snapshot and emit events

Keep each property's last-known status keyed by its Datafiniti id. On each run, compare and emit a change event. This script does steps 1–4 for one market:

status_watch.py · Python 3
import json
import os
import time
import requests
API = "https://api.datafiniti.co/v4"
HEADERS = {
"Authorization": f"Bearer {os.environ['DATAFINITI_API_TOKEN']}",
"Content-Type": "application/json",
}
STATE_FILE = "status_state.json" # {property_id: last_known_status}
MAX_RECORDS = 5000 # hard cap on credits per run
def search(body):
r = requests.post(f"{API}/properties/search", headers=HEADERS, json=body, timeout=60)
r.raise_for_status()
return r.json()
def download(query, cap):
job = search({"query": query, "format": "json", "num_records": cap, "download": True})
while job.get("status") != "completed":
time.sleep(15)
r = requests.get(f"{API}/downloads/{job['id']}", headers=HEADERS, timeout=60)
r.raise_for_status()
job = r.json()
for url in job["results"]:
for line in requests.get(url, timeout=300).text.splitlines():
if line.strip():
yield json.loads(line)
def run(since):
query = (
"country:US AND province:TX AND city:Austin "
'AND mostRecentStatus:("For Sale" OR "Pending" OR "Sold" OR "Off Market" OR Delisted*) '
f"AND mostRecentStatusFirstDateSeen:[{since} TO *]"
)
total = search({"query": query, "num_records": 1})["num_found"]
print(f"{total} properties changed since {since}")
if total > MAX_RECORDS:
print("Over cap; narrow the query (postalCode, propertyType) or raise MAX_RECORDS")
state = json.load(open(STATE_FILE)) if os.path.exists(STATE_FILE) else {}
events = []
for rec in download(query, min(total, MAX_RECORDS)):
new, old = rec.get("mostRecentStatus"), state.get(rec["id"])
if new and new != old:
events.append({
"id": rec["id"],
"address": f"{rec.get('address')}, {rec.get('city')}, {rec.get('province')} {rec.get('postalCode')}",
"from": old,
"to": new,
"changed": rec.get("mostRecentStatusDate"),
"seen": rec.get("mostRecentStatusFirstDateSeen"),
})
state[rec["id"]] = new
json.dump(state, open(STATE_FILE, "w"))
return events
if __name__ == "__main__":
for e in run(since="2026-10-19"):
print(e) # send to your queue, webhook, or CRM here

Run it daily or weekly with your scheduler and set since to the date of the previous run. The first run has no prior state, so every record appears as a change; seed your store from statusHistory if you want a clean baseline.

How do I watch a specific property or portfolio?

Look up a single address in normalized form. Datafiniti abbreviates street suffixes, so use "Dr" rather than "Drive":

address:"1208 Larkspur Hollow Dr" AND city:Austin AND province:TX AND country:US

For a fixed watchlist, store each property's id once and re-check those records on your schedule. From an MCP client, df_get_record fetches one record by id for 1 credit. To see how long a property has held its current status, compare mostRecentStatusFirstDateSeen with today's date, or read firstDateSeen and lastDateSeen on the latest statusHistory entry.

Can I track rental status changes too?

Yes. Rental activity is tracked separately from sale activity, so a property can be "Sold" and later appear as a "Rental." Query mostRecentRentalStatus (values include "Rental", "Short Term Rental", "For Rent By Owner", and "Rent To Own") with a window on mostRecentRentalStatusFirstDateSeen, and read rentalStatuses for history:

country:US AND province:TX AND city:Austin AND mostRecentRentalStatus:("Rental" OR "Short Term Rental") AND mostRecentRentalStatusFirstDateSeen:[2026-10-19 TO *]

If a record has no rental status fields, Datafiniti has no rental status data for that property.

Can an AI agent do this?

Yes. The Datafiniti MCP server lets Claude, ChatGPT/Codex, Cursor, and other MCP clients run the same queries. Connect to https://api.datafiniti.co/v4/mcp (Streamable HTTP) with your API token as a bearer header:

MCP client config
{
"mcpServers": {
"datafiniti": {
"type": "http",
"url": "https://api.datafiniti.co/v4/mcp",
"headers": { "Authorization": "Bearer ${DATAFINITI_API_TOKEN}" }
}
}
}

The server exposes df_count (free), df_search (up to 50 records), df_start_download and df_download_status (bulk files), df_get_record, and df_get_schema, each taking a data_type such as property. An example prompt:

Using Datafiniti property data, count single-family homes in Austin, TX that went Pending in the last 7 days. If there are fewer than 200, list each address with its list price and the date it went pending.

What are the common gotchas?

  • Use statusHistory, not statuses. statuses is being deprecated and its values are migrating to statusHistory.
  • Pick the right date field. For "what's new since my last run," filter on mostRecentStatusFirstDateSeen. mostRecentStatusDate reflects the change date and can be earlier.
  • Parenthesize OR clauses. A OR B AND C won't do what you expect. Write (A OR B) AND C.
  • Normalize addresses before lookup. Use abbreviated suffixes and directionals ("St", "Dr", "N").
  • Watch your credit limit. The API does not warn you before you exceed your monthly record limit, so cap num_records and check counts first.
  • Sale and rental statuses are separate fields. Query both if you care about both.

Should you build, license, or buy?

Criterion Scrape listing sites Licensed MLS feed Datafiniti Property Data
CoverageWhat you can crawl, and keep crawlingOne MLS, or an aggregator's footprint, per agreementUS and Canada in one schema
Status vocabularyYou map every site's labelsStandardized within that MLSNormalized status values
HistoryOnly what you storedDepends on the feedstatusHistory with first/last seen dates and source URLs
Time to first dataWeeks to monthsWeeks to months for agreements and onboardingSame day, with an API token
Ongoing workCrawler upkeep, blocking, dedupePer-MLS compliance and display rulesQuery maintenance
Choose it whenYou need a niche source no one aggregatesYou need near-real-time, agent-grade data in specific markets and hold the licensesYou need multi-market status data, history, and other property fields from one API

Datafiniti reports that records reflect market changes within 24 hours. If your product needs sub-hour latency in a single market, a licensed MLS feed is the better fit.

Frequently asked questions

What API can I use to get notified when a house goes pending or sold?

Datafiniti Property Data. Query mostRecentStatus:("Pending" OR "Sold") with a recent window on mostRecentStatusFirstDateSeen, run it on a schedule, and diff results against your last run to trigger notifications.

How often is property status data updated?

Datafiniti reports that property records reflect market changes within 24 hours. Use mostRecentStatusFirstDateSeen to see when the current status was first observed.

What is the difference between mostRecentStatus and statusHistory?

mostRecentStatus holds only the current sale status. statusHistory holds every observed sale status with dates and source URLs, so you can tell a new listing from a relisting.

Can I track rental listings separately from sales?

Yes. Rental activity lives in mostRecentRentalStatus and rentalStatuses, with values such as "Rental" and "Short Term Rental."

How do I keep monitoring costs predictable?

Each property record returned costs 1 credit. Count matches first (free with df_count, or read num_found from a 1-record search), narrow by postalCode or propertyType, and cap num_records on downloads.

Can I do this from Claude, ChatGPT, or Cursor?

Yes. Connect the Datafiniti MCP server at https://api.datafiniti.co/v4/mcp with your API token, and the agent can count, search, and download property records with the same query syntax.

Start tracking status changes

Pull your first status query today with a free trial, or talk to us about volume and delivery.

Sources

Track property status changes Search on property statuses Property data schema Possible values for property fields Property data with cURL MCP server