SERP API
Realtor.com
Send the API key in the X-API-Key header, or as the api_key query parameter (Authentication). Realtor.com searches can also run as async tasks with pingback_url.
Parameters
| Field | Type | Description |
|---|---|---|
engine | string | required Set it to realtor.Values:realtor |
q | string | required The place: a US city and state (Austin, TX) or a ZIP code (90210). Up to 120 characters. location works too. Or send url instead.Example: Austin, TX |
url | string | optional A Realtor.com search page (realestateandhomes-search) instead of q: the place and the type are read from it (/show-sold, /show-for-rent, else for sale). It wins over q; type wins over the page's own type. Filters in the page (beds, home type) are not applied.Example: https://www.realtor.com/realestateandhomes-search/Las-Vegas_NV |
type | string | optional Homes for sale, for rent, or sold. status works too. property reads one home instead (below). Any other value answers 400 invalid_type.Values:for_salefor_rentsoldpropertyDefault: for_sale |
page | integer | optional The page of listings, from 1 to 50. Each page has up to 42; search_information.total_pages says how many there are.Default: 1 |
num_pages | integer | optional How many pages to fetch in this call, from 1 to 10, starting at page. Each page fetched costs one credit; page + num_pages - 1 can be at most 50.Default: 1 |
maxResults | integer | optional How many homes to return, from 1 to 200, instead of num_pages: the pages follow from it (42 homes a page, one credit each), so maxResults=100 is 3 credits. With full_details only these homes are read, so it sets the cost. max_results works too.Default: 42Example: 10 |
response_type | string | optional json: the listings. html: Realtor.com's raw answer for the fetched pages as text in html, without listings. both: the listings and html. Realtor.com's source is a GraphQL API, so this raw answer is JSON text, not an HTML page; the field keeps the name html as on every engine.Values:jsonhtmlbothDefault: json |
full_details | boolean | optional true: every listing comes back in full, 63 fields each (below). One more credit a home; num_pages 1 to 5, or maxResults up to 200.Values:truefalseDefault: false |
pingback_url | string | optional Queue the search and get the answer later; see Async tasks. |
Several pages in one call
num_pages) starting at page, 42 listings each. If Realtor.com stops partway (a captcha), you get the pages before it and pay only for those: search_information.pages_fetched says how many. Bedroom and price filters are not available for Realtor.com yet.What comes back
| Field | Type | Description |
|---|---|---|
search_metadata | object | About this request. |
id | string | A unique id for the search. |
status | string | Success when Realtor.com answered. |
created_at | string | When the search ran, in ISO 8601 (UTC). |
pages | integer | Pages fetched in this call. |
credits_charged | integer | Credits this request cost: one per page fetched. |
task_id | string | Only for async tasks: the task the result belongs to. |
search_parameters | object | What the search used: engine, q, type, page, num_pages (when above 1) or maxResults, full_details (when true) and response_type. |
search_information | object | About the listings. |
total_results | integer | How many homes match the place and type. |
page, per_page, total_pages | integer | This page, listings a page (42) and the pages you can ask for (up to 50). |
pages_fetched | integer | Pages this call fetched (fewer than num_pages when the site stopped partway). |
results_on_page | integer | How many listings this answer has (all fetched pages). |
listings | array | The homes, newest first, each with position (1, 2, 3... counted across pages, so page 2 starts at 43) and the fields below. |
property_id, listing_id | string | Realtor.com's ids for the home and for this listing of it. |
url, image_url | string | The listing on Realtor.com and its main photo (image_url can be null). |
street_address, city, state, zipcode, county, country | string | Where the home is. |
price, currency | integer / string | The asking price (for sale), the monthly rent (for rent) or the sale price (sold), in whole US dollars; currency is always USD. |
bedrooms, bathrooms, bathrooms_full, bathrooms_half | number / null | Bedrooms and bathrooms, when listed. |
living_area, living_area_unit, lot_area, lot_area_unit | integer / string | The home's size and the lot's size, with their units (usually sqft). |
home_type, home_sub_type, home_status | string | The kind of home (single_family, multi_family, condo, townhomes...) and its status (for_sale, for_rent, sold...). |
year_built, stories, garage | integer / null | The year it was built, its floors and garage spaces, when listed. |
list_date | string / null | When it was listed, in ISO 8601. Listings come newest first. |
last_sold_price, last_sold_date, price_reduced_amount | integer / string / null | The last sale and its date, and how much the price was cut, when known. |
broker_name, branding_name | string | The broker and the company shown on the listing. |
source_id, source_type | string | Where the listing comes from, like an MLS id and mls. |
is_new_construction, is_foreclosure, is_pending, is_contingent, is_new_listing, is_coming_soon, is_price_reduced | boolean / null | Flags Realtor.com shows on the listing (null when not set). |
tags | array | Realtor.com's tags, like basement or garage_1_or_more. |
description | string | The listing's text, up to 500 characters. |
html | string | response_type html or both: Realtor.com's raw answer for the fetched pages, as text. It is JSON (Realtor.com's GraphQL answer), not an HTML page. |
Homes sold in a ZIP code, second page
curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=realtor" \
--data-urlencode "q=90210" \
--data-urlencode "type=sold" \
--data-urlencode "page=2"Search by a Realtor.com page
curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=realtor" \
--data-urlencode "url=https://www.realtor.com/realestateandhomes-search/New-York_NY/show-sold"Every listing in full
Add full_details=true to a search and each listing comes back with the 63 fields of one home in full, in the same order, with its position. Each listing also has detail_available: false means the home could not be read in time, so it stays the short listing and costs nothing.
| Field | Type | Description |
|---|---|---|
search_information.details_fetched | integer | Homes that came back in full (one credit each). |
search_information.details_missing | integer | Homes that stayed short listings (free). |
listings[].detail_available | boolean | true when this home came back in full. |
| Field | Type | Description |
|---|---|---|
default (42 homes, short listings) | 1 credit | One page. |
maxResults=10 | 1 credit | One page, 10 homes. |
maxResults=100 | 3 credits | Three pages. |
full_details=true | up to 43 | 1 page + 42 homes in full. |
maxResults=10, full_details=true | up to 11 | 1 page + 10 homes in full. |
maxResults=100, full_details=true | up to 103 | 3 pages + 100 homes in full. |
curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=realtor" \
--data-urlencode "q=Austin, TX" \
--data-urlencode "maxResults=10" \
--data-urlencode "full_details=true"One home in full
With type=property the same endpoint reads one home: 63 fields, with its price history, tax history, nearby schools, flood score and every photo. Take the property_id from any listing above, or send the home's Realtor.com page as url.
| Field | Type | Description |
|---|---|---|
type | string | required Set it to property.Values:property |
property_id | string | optional The home's number from a listing, like 1856054834. The page form M18560-54834 works too. Send this or url.Example: 1856054834 |
url | string | optional The home's Realtor.com page (realestateandhomes-detail). It wins when both are sent. |
response_type | string | optional json: the home. html: Realtor.com's raw answer in html, as JSON text (its GraphQL answer, not an HTML page). both: the home and html.Values:jsonhtmlbothDefault: json |
| Field | Type | Description |
|---|---|---|
search_parameters | object | engine, type (property), property_id or url, and response_type. |
property_results | object | The home, with the fields below. |
property_id, listing_id, url | string | Realtor.com's ids for the home and its listing, and its page on Realtor.com. |
street_address, city, state, zipcode, country, county, county_fips | string | Where the home is. |
latitude, longitude, street_view_url | number / string | The home on the map, and a Google Street View picture link when there is one. |
neighborhoods | array | The areas the home is in, each with name, city and level. |
price, price_per_sqft, currency | integer / null / string | The price in whole US dollars (asking, rent or last price) and per square foot; currency is always USD. |
home_status, list_date, days_on_market, move_in_date | string / integer / null | Its status (for_sale, for_rent, sold, off_market...), when it was listed, days on the market and a move-in date for new homes. |
last_sold_price, last_sold_date | integer / string / null | The last sale and its date. |
bedrooms, bathrooms, bathrooms_full, bathrooms_half, rooms | number / null | Bedrooms, bathrooms and rooms, when listed. |
living_area, living_area_unit, lot_area, lot_area_unit | integer / string | The home's size and the lot's size, in sqft. |
home_type, home_sub_type, year_built, stories, garage | string / integer / null | The kind of home, the year it was built, its floors and garage spaces. |
description, home_name | string / null | The listing's full text and a community or development name. |
hoa_fee, mortgage_monthly_payment, mortgage_loan_amount | integer / null | The monthly HOA fee and Realtor.com's mortgage estimate, in US dollars. |
image_url, photos, photo_count | string / array / integer | The main photo, every photo (href, type, description) and how many there are. |
flags | object | is_new_construction, is_foreclosure, is_pending, is_contingent, is_new_listing, is_coming_soon and is_price_reduced. |
property_history | array | Sales and listing events: date, event_name, price and source_name. |
tax_history | array | Each year's tax with the assessment of the building, the land and the total. May be empty for co-ops (the tax is in the maintenance fee) and newly built homes. |
nearby_schools | array | Schools near the home: name, distance_in_miles, education_levels, rating (1 to 10) and funding_type. |
flood_factor_score, flood_factor_severity, noise_score | integer / string / null | Flood risk from 1 (minimal) to 10 (extreme) in numbers and words, and a noise score when available (Realtor.com now often sends null). |
details, tags | array | The home's features by category (heating, parking, interior...) and Realtor.com's tags, like central_air or pool. |
advertisers, consumer_advertisers, branding, broker_name, builder_name | array / string / null | The agents, office and broker on the listing, and the builder of a new home. |
source_id, source_type | string / null | Where the listing comes from, like an MLS id and mls. |
open_houses, virtual_tours | array | Open house dates and virtual tour links. |
{
"search_metadata": { "status": "Success", "pages": 1, "credits_charged": 1 },
"search_parameters": { "engine": "realtor", "type": "property", "property_id": "1856054834", "response_type": "json" },
"property_results": {
"property_id": "1856054834",
"url": "https://www.realtor.com/realestateandhomes-detail/8209-Spring-Arts-Ave_Las-Vegas_NV_89129_M18560-54834",
"street_address": "8209 Spring Arts Ave",
"city": "Las Vegas",
"state": "NV",
"price": 579900,
"bedrooms": 5,
"bathrooms": 3,
"living_area": 2895,
"year_built": 1996,
"last_sold_price": 575000,
"last_sold_date": "2023-10-03",
"hoa_fee": 17,
"flood_factor_score": 1,
"tax_history": [{ "year": 2024, "tax": 3200, "assessment": { "building": 180000, "land": 95000, "total": 275000 } }],
"nearby_schools": [{ "name": "Shadow Ridge High School", "distance_in_miles": 0.8, "rating": 6 }],
"photo_count": 28,
"...": "and the other fields below"
}
}curl -G "https://api.scraperdata.com/v1/search" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "engine=realtor" \
--data-urlencode "type=property" \
--data-urlencode "property_id=1856054834"Errors
Errors never cost credits. Every error code is on the Errors page; these are the Realtor.com ones:
| Field | Type | Description |
|---|---|---|
missing_query, invalid_query | 400 | No q, or one longer than 120 characters. |
invalid_type | 400 | type (or status) is not for_sale, for_rent or sold. |
invalid_page | 400 | page is not a whole number from 1 to 50. |
invalid_num_pages | 400 | num_pages is not 1 to 10 (1 to 5 with full_details), or page + num_pages - 1 goes past page 50. |
invalid_max_results | 400 | maxResults is not 1 to 200, was sent with num_pages, goes past page 50 from page, or was sent with another engine. |
invalid_full_details | 400 | full_details=true with response_type=html: send json or both. |
invalid_filter | 400 | bedrooms, min_price or max_price was sent: Realtor.com searches do not take them. |
invalid_response_type | 400 | response_type is not json, html or both. |
missing_property | 400 | type=property without a property_id or url. |
invalid_property_id | 400 | With type=property, property_id is not a listing's number. |
invalid_url | 400 | A search's url is not a Realtor.com search page (a home's page goes with type=property), or with type=property it is not a Realtor.com home page. |
no_results | 404 | Realtor.com does not know the place, or has no homes there (check the city and state or the ZIP code), or has no home with this property_id or URL. |
upstream_error, upstream_unavailable, upstream_timeout | 502 / 503 / 504 | Realtor.com could not be reached in time. Retry in a few seconds. |
{
"error": {
"code": "no_results",
"message": "Realtor.com has no listings for this place. Check the spelling of the place (like Austin, TX). You were not charged."
},
"charged": false
}Credits
maxResults to control cost: maxResults=10 with full_details=true is 11 credits instead of 43. One home by type=property is 1 credit. A page past the last one is an ordinary answer with no listings. Failed searches, places with no listings and homes that are not found are free.