Realtor.com API: Property Listings as JSON
To get Realtor.com listings as JSON, call Perceptlayer's GET /v1/realtor-com/search with a status such as for_sale and a location. Each listing comes back with property_id, list_price, list_date, beds, baths, square footage, address and coordinates, plus a total_matching_count for the whole search. Every Realtor.com endpoint costs 1 credit per successful call, and in the recorded call one search page held 10 listings. This guide uses that to build a new-listings watcher: the request, the parameters, the response and the cost per listing tracked.
What can you get from the Realtor.com API?
The Realtor.com API returns listing data from five endpoints, each at 1 credit per successful call. search finds listings for sale, for rent or sold, with filters. listing takes a property_id and returns one listing. schools takes a property_id with optional radius_mi and limit_per_level. agent takes a property_id. autocomplete takes a query and returns location suggestions.
| Endpoint | Required | Optional | Credits |
|---|---|---|---|
GET /v1/realtor-com/search |
status |
18 filters (next section) | 1 |
GET /v1/realtor-com/listing |
property_id |
none | 1 |
GET /v1/realtor-com/schools |
property_id |
radius_mi, limit_per_level |
1 |
GET /v1/realtor-com/agent |
property_id |
none | 1 |
GET /v1/realtor-com/autocomplete |
query |
limit, area_types[] |
1 |
Search results carry a property_id on every listing, and listing, schools and agent take a parameter of that name. Only the search call is recorded here, so try the other endpoints in the playground on the Realtor.com API page before you depend on their fields. Data comes from publicly available sources and is returned as found at the time of the call.
How do you search Realtor.com listings?
Send a GET request to https://api.perceptlayer.com/v1/realtor-com/search with status and your filters in the query string and your key in the X-API-Key header. This is the request behind the recorded response in this guide, for homes for sale in Austin with at least 3 bedrooms:
curl "https://api.perceptlayer.com/v1/realtor-com/search?status=for_sale&location=Austin%2C+TX&per_page=10&min_beds=3" \
-H "X-API-Key: $API_KEY"
Keys start with sk_live_, and the api_key query parameter works where a header can't be set; the authentication docs cover both. Each successful response carries X-Credits-Used and X-Credits-Remaining headers, and the body's meta.credits_charged reports the same cost.
Which parameters does the search endpoint take?
search takes one required parameter, status, and 18 optional ones. They fall into four groups: where (location, or latitude, longitude and radius_mi), what (type[], price, beds, baths and square footage bounds), order (sort, order) and paging (page, per_page). sold_within_days applies to sold searches. No defaults or page sizes are documented, so set what you rely on.
| Parameter | Type | Allowed values or constraint |
|---|---|---|
status (required) |
string | for_sale, for_rent, sold |
location |
string | Up to 120 characters |
latitude, longitude |
number | None documented |
radius_mi |
number | None documented |
type[] |
list of string | single_family, condos, mobile, land, duplex_triplex, apartment |
sort |
string | list_date, list_price, sold_date |
order |
string | asc, desc |
sold_within_days |
integer | None documented |
page, per_page |
integer | None documented |
min_price, max_price |
integer | None documented |
min_beds, max_beds |
integer | None documented |
min_baths, max_baths |
integer | None documented |
min_sqft, max_sqft |
integer | None documented |
The recorded request set neither sort nor order, yet its filters_applied reports list_date and desc. For a new-listings watcher, send sort=list_date&order=desc explicitly so the order doesn't depend on behaviour that isn't documented. The full parameter list is on the search endpoint page.
How do you find the right location string?
autocomplete takes a query of up to 100 characters, an optional limit, and area_types[] with address, city, neighborhood or postal_code. Use it to check how a place is spelled before you fix it in a job. Its response isn't recorded here, so run it in the playground on the autocomplete endpoint page and test the suggestion as a location value in search.
What does a search response look like?
The response holds a listings array, counts for the page and the whole search, paging fields and the filters the API applied. This is the recorded response, trimmed to one listing and the fields a tracker reads. The advertisers array, which names the agents and offices on each listing, is cut here.
{
"success": true,
"data": {
"listings": [
{
"property_id": "7009647360",
"listing_id": "3003557193",
"status": "for_sale",
"list_price": 505000,
"list_date": "2026-11-12T12:55:11.000000Z",
"last_sold_date": "2018-10-24",
"url": "https://www.realtor.com/realestateandhomes-detail/5308-Sendero-Hills-Pkwy_Austin_TX_78724_M70096-47360",
"beds": 3,
"baths": 3,
"sqft": 2158,
"lot_sqft": 11064,
"year_built": 2007,
"type": "single_family",
"address": {
"line": "5308 Sendero Hills Pkwy",
"city": "Austin",
"state_code": "TX",
"postal_code": "78724"
},
"coordinates": {
"lat": 30.28292,
"lon": -97.647545
},
…
"flags": {
"new_listing": true
},
…
},
…
],
"count": 10,
"total_matching_count": 4497,
"page": 1,
"per_page": 10,
"has_more": true,
"status": "for_sale",
"filters_applied": {
"location": "Austin, TX",
"sort": "list_date",
"order": "desc",
"min_beds": 3
}
},
"meta": {
"request_id": "req_49d489ae7d2148248c3e2ace3ffffbb1",
"credits_charged": 1,
…
}
}
| Field | What a tracker or model does with it |
|---|---|
property_id |
Key for your table; the listing, schools and agent endpoints take a parameter of this name |
list_price, list_date |
Asking price and when it was listed; store both on every check |
beds, baths, sqft, lot_sqft, year_built, type |
Features for comparison or a valuation model |
address, coordinates |
Location for joins, maps and distance filters |
last_sold_date |
Prior sale date; present on the first recorded listing, absent on the second |
flags.new_listing |
Marks new listings in the recording |
total_matching_count, has_more |
Size of the search and whether more pages exist |
Which fields need care?
Not every listing has every field. In the recording, the second listing has no last_sold_date, so read optional fields with a fallback. list_date is a timestamp with a time zone marker, while last_sold_date is a plain date; parse them separately. total_matching_count is a useful market figure on its own: 4,497 homes for sale with 3 or more bedrooms in Austin at the time of the call.
How do you watch for new listings in Python?
A new-listings watcher runs the same search each day, sorted by list_date descending, and stores each property_id it hasn't seen. When a known listing comes back with a different list_price, it records the change. The script below does this with requests and sqlite3, reads only fields from the recorded response, and pages on while has_more is true, up to a fixed limit.
import datetime
import os
import sqlite3
import time
import requests
API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/realtor-com/search"
MARKETS = ["Austin, TX"]
MAX_PAGES = 3
db = sqlite3.connect("realtor.db")
db.execute("""CREATE TABLE IF NOT EXISTS listings (
property_id TEXT PRIMARY KEY, first_seen TEXT, list_date TEXT,
list_price INTEGER, beds INTEGER, baths INTEGER, sqft INTEGER,
postal_code TEXT, lat REAL, lon REAL, url TEXT)""")
db.execute("""CREATE TABLE IF NOT EXISTS price_changes (
property_id TEXT, seen TEXT, old_price INTEGER, new_price INTEGER)""")
def search(location, page, attempts=3):
params = {"status": "for_sale", "location": location, "sort": "list_date",
"order": "desc", "per_page": 10, "page": page, "min_beds": 3}
for _ in range(attempts):
r = requests.get(URL, params=params, headers={"X-API-Key": API_KEY}, timeout=60)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
return r.json()["data"]
raise RuntimeError(f"gave up on {location} page {page}")
today = datetime.date.today().isoformat()
for market in MARKETS:
for page in range(1, MAX_PAGES + 1):
data = search(market, page)
for item in data.get("listings", []):
pid = item["property_id"]
price = item.get("list_price")
row = db.execute("SELECT list_price FROM listings WHERE property_id = ?", (pid,)).fetchone()
if row is None:
addr = item.get("address", {})
coords = item.get("coordinates", {})
db.execute("INSERT INTO listings VALUES (?,?,?,?,?,?,?,?,?,?,?)", (
pid, today, item.get("list_date"), price, item.get("beds"),
item.get("baths"), item.get("sqft"), addr.get("postal_code"),
coords.get("lat"), coords.get("lon"), item.get("url")))
elif row[0] != price:
db.execute("INSERT INTO price_changes VALUES (?,?,?,?)", (pid, today, row[0], price))
db.execute("UPDATE listings SET list_price = ? WHERE property_id = ?", (price, pid))
db.commit()
if not data.get("has_more"):
break
time.sleep(1)
The one-second pause keeps the script within the free tier's 1 request a second; paying accounts run at least 5 a second. Set MAX_PAGES to cover a normal day's new listings in each market, and raise it if a day's newest page still holds only listings you haven't seen. The recorded response reports page and has_more, and the endpoint takes a page parameter; the names match.
What should the job do with errors?
Errors come back with an HTTP status and a JSON body with code, message and request_id. The script retries rate_limited (429) and temporarily_unavailable (503) after Retry-After. Treat invalid_parameters (422) as a bad filter and source_error (502) as a call to retry on the next run. Requests have no idempotency key, so a client timeout may hide a billed call; keep the timeout generous. The errors docs list every code.
What does tracking Realtor.com listings cost?
Every Realtor.com call costs 1 credit, so the cost of tracking is the number of calls, not the number of listings. One recorded search page held 10 listings for 1 credit, which makes search pages the cheap way to watch prices across a market. A listing call per property costs 1 credit per listing, so keep it for properties you need in detail.
| Job | Arithmetic | Credits a month |
|---|---|---|
| 5 markets, 3 search pages a day | 5 × 3 × 30 days × 1 credit | 450 |
| 20 markets, 5 search pages a day | 20 × 5 × 30 days × 1 credit | 3,000 |
300 watched homes, one listing call each a day |
300 × 30 days × 1 credit | 9,000 |
300 homes, plus one schools call each, once |
300 × 1 credit | 300 |
The 100 free credits on signup cover the first job for about 6 days. The first three jobs together come to 12,450 credits a month, within the Build pack's 50,000 for four months. Purchased credits last 12 months, with no subscription. See pricing for what credits cost and the credits docs for how debits work.
If you need valuations rather than a listing feed, Redfin Scraper or API covers that source, and the real estate APIs list the other portals on the same key. To start, run the Austin search above in the playground on the Realtor.com API page, swap in your own market, then get a free API key and schedule the watcher.
APIs in this post
Frequently asked questions
How much does a Realtor.com API call cost?
Each successful call to any of the 5 Realtor.com endpoints costs 1 credit: search, listing, schools, agent or autocomplete. A failed call costs nothing and returns X-Credits-Used: 0. In the recorded search, one call returned 10 listings, so watching 5 markets with 3 pages a day costs 450 credits a month. The pricing page lists what credit packs cost.
Can I get sold homes and rentals too?
Yes. The search endpoint's required status parameter takes for_sale, for_rent or sold, and sort accepts sold_date as well as list_date and list_price. For sold searches, sold_within_days limits the window. Each search page is one call at 1 credit. Only the for_sale search is recorded here, so check the sold and rental responses in the playground.
What do the agent and schools endpoints take?
GET /v1/realtor-com/agent takes a required property_id and nothing else. GET /v1/realtor-com/schools takes a required property_id with optional radius_mi and limit_per_level. Both cost 1 credit per successful call. Search results include a property_id for each listing, and both endpoints take a parameter of that name.
How fast can I call the Realtor.com endpoints?
Rates are per account, shared by all its keys, and counted per minute. Free accounts get 1 request a second, 60 a minute. Paying accounts run at least 5 a second, 300 a minute, depending on the pack. Responses carry RateLimit-Remaining and RateLimit-Reset, and a 429 carries Retry-After. The rate limits docs have the details.
Can an AI agent search Realtor.com listings?
Yes. Through the MCP server at https://perceptlayer.com/mcp, an agent finds the Realtor.com endpoints with search_endpoints, reads their parameters with get_endpoint (both free) and runs a search with call_endpoint, which spends credits on success only and reports the credits used and remaining. The AI agents docs show the setup.