Skip to documentation
ScraperData

SERP API

Realtor.com

The same /v1/search endpoint with engine=realtor returns US homes from Realtor.com as JSON: for sale, for rent or recently sold, for a city or ZIP code, 42 a page, newest first. With type=property it returns one home in full.

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

FieldTypeDescription
enginestringrequired Set it to realtor.Values:realtor
qstringrequired 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
urlstringoptional 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
typestringoptional 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
pageintegeroptional 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_pagesintegeroptional 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
maxResultsintegeroptional 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_typestringoptional 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_detailsbooleanoptional 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_urlstringoptional Queue the search and get the answer later; see Async tasks.

Several pages in one call

One call fetches 1 to 10 pages (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

FieldTypeDescription
search_metadataobjectAbout this request.
idstringA unique id for the search.
statusstringSuccess when Realtor.com answered.
created_atstringWhen the search ran, in ISO 8601 (UTC).
pagesintegerPages fetched in this call.
credits_chargedintegerCredits this request cost: one per page fetched.
task_idstringOnly for async tasks: the task the result belongs to.
search_parametersobjectWhat the search used: engine, q, type, page, num_pages (when above 1) or maxResults, full_details (when true) and response_type.
search_informationobjectAbout the listings.
total_resultsintegerHow many homes match the place and type.
page, per_page, total_pagesintegerThis page, listings a page (42) and the pages you can ask for (up to 50).
pages_fetchedintegerPages this call fetched (fewer than num_pages when the site stopped partway).
results_on_pageintegerHow many listings this answer has (all fetched pages).
listingsarrayThe 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_idstringRealtor.com's ids for the home and for this listing of it.
url, image_urlstringThe listing on Realtor.com and its main photo (image_url can be null).
street_address, city, state, zipcode, county, countrystringWhere the home is.
price, currencyinteger / stringThe 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_halfnumber / nullBedrooms and bathrooms, when listed.
living_area, living_area_unit, lot_area, lot_area_unitinteger / stringThe home's size and the lot's size, with their units (usually sqft).
home_type, home_sub_type, home_statusstringThe kind of home (single_family, multi_family, condo, townhomes...) and its status (for_sale, for_rent, sold...).
year_built, stories, garageinteger / nullThe year it was built, its floors and garage spaces, when listed.
list_datestring / nullWhen it was listed, in ISO 8601. Listings come newest first.
last_sold_price, last_sold_date, price_reduced_amountinteger / string / nullThe last sale and its date, and how much the price was cut, when known.
broker_name, branding_namestringThe broker and the company shown on the listing.
source_id, source_typestringWhere 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_reducedboolean / nullFlags Realtor.com shows on the listing (null when not set).
tagsarrayRealtor.com's tags, like basement or garage_1_or_more.
descriptionstringThe listing's text, up to 500 characters.
htmlstringresponse_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

Request
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

Request
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.

FieldTypeDescription
search_information.details_fetchedintegerHomes that came back in full (one credit each).
search_information.details_missingintegerHomes that stayed short listings (free).
listings[].detail_availablebooleantrue when this home came back in full.
FieldTypeDescription
default (42 homes, short listings)1 creditOne page.
maxResults=101 creditOne page, 10 homes.
maxResults=1003 creditsThree pages.
full_details=trueup to 431 page + 42 homes in full.
maxResults=10, full_details=trueup to 111 page + 10 homes in full.
maxResults=100, full_details=trueup to 1033 pages + 100 homes in full.
Request
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.

FieldTypeDescription
typestringrequired Set it to property.Values:property
property_idstringoptional The home's number from a listing, like 1856054834. The page form M18560-54834 works too. Send this or url.Example: 1856054834
urlstringoptional The home's Realtor.com page (realestateandhomes-detail). It wins when both are sent.
response_typestringoptional 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
FieldTypeDescription
search_parametersobjectengine, type (property), property_id or url, and response_type.
property_resultsobjectThe home, with the fields below.
property_id, listing_id, urlstringRealtor.com's ids for the home and its listing, and its page on Realtor.com.
street_address, city, state, zipcode, country, county, county_fipsstringWhere the home is.
latitude, longitude, street_view_urlnumber / stringThe home on the map, and a Google Street View picture link when there is one.
neighborhoodsarrayThe areas the home is in, each with name, city and level.
price, price_per_sqft, currencyinteger / null / stringThe 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_datestring / integer / nullIts 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_dateinteger / string / nullThe last sale and its date.
bedrooms, bathrooms, bathrooms_full, bathrooms_half, roomsnumber / nullBedrooms, bathrooms and rooms, when listed.
living_area, living_area_unit, lot_area, lot_area_unitinteger / stringThe home's size and the lot's size, in sqft.
home_type, home_sub_type, year_built, stories, garagestring / integer / nullThe kind of home, the year it was built, its floors and garage spaces.
description, home_namestring / nullThe listing's full text and a community or development name.
hoa_fee, mortgage_monthly_payment, mortgage_loan_amountinteger / nullThe monthly HOA fee and Realtor.com's mortgage estimate, in US dollars.
image_url, photos, photo_countstring / array / integerThe main photo, every photo (href, type, description) and how many there are.
flagsobjectis_new_construction, is_foreclosure, is_pending, is_contingent, is_new_listing, is_coming_soon and is_price_reduced.
property_historyarraySales and listing events: date, event_name, price and source_name.
tax_historyarrayEach 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_schoolsarraySchools near the home: name, distance_in_miles, education_levels, rating (1 to 10) and funding_type.
flood_factor_score, flood_factor_severity, noise_scoreinteger / string / nullFlood risk from 1 (minimal) to 10 (extreme) in numbers and words, and a noise score when available (Realtor.com now often sends null).
details, tagsarrayThe 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_namearray / string / nullThe agents, office and broker on the listing, and the builder of a new home.
source_id, source_typestring / nullWhere the listing comes from, like an MLS id and mls.
open_houses, virtual_toursarrayOpen house dates and virtual tour links.
200 OK
{
  "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"
  }
}
Request
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:

FieldTypeDescription
missing_query, invalid_query400No q, or one longer than 120 characters.
invalid_type400type (or status) is not for_sale, for_rent or sold.
invalid_page400page is not a whole number from 1 to 50.
invalid_num_pages400num_pages is not 1 to 10 (1 to 5 with full_details), or page + num_pages - 1 goes past page 50.
invalid_max_results400maxResults is not 1 to 200, was sent with num_pages, goes past page 50 from page, or was sent with another engine.
invalid_full_details400full_details=true with response_type=html: send json or both.
invalid_filter400bedrooms, min_price or max_price was sent: Realtor.com searches do not take them.
invalid_response_type400response_type is not json, html or both.
missing_property400type=property without a property_id or url.
invalid_property_id400With type=property, property_id is not a listing's number.
invalid_url400A 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_results404Realtor.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_timeout502 / 503 / 504Realtor.com could not be reached in time. Retry in a few seconds.
404 Not Found
{
  "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

Search: 1 credit per page (42 homes). Full details: +1 credit per home returned in full. Use 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.