Skip to documentation
ScraperData

SERP API

Redfin

The same /v1/search endpoint with engine=redfin returns US homes for sale from Redfin as JSON: for 96 large cities by name, or for any area by its bounds or a Redfin region, 350 a page.

Send the API key in the X-API-Key header, or as the api_key query parameter (Authentication). Redfin searches can also run as async tasks with pingback_url.

Parameters

Say where to search in exactly one of three ways: q (a city), the four bounds, or region_id.

FieldTypeDescription
enginestringrequired Set it to redfin.Values:redfin
qstringoptional One of the 96 cities below, as city and state (Houston, TX). Up to 120 characters. location works too.Example: Houston, TX
south, west, north, eastnumberoptional Any area instead of a city: its edges in degrees, all four together. south must be below north and west below east.Example: 29.52, -95.79, 30.11, -95.01
region_idintegeroptional Or a Redfin region number instead of a city, like 30749.Example: 30749
region_typestringoptional What the region is, with region_id. The numbers 2, 5, 6 and 8 work too.Values:cityzipcountyneighborhoodDefault: city
typestringoptional Redfin gives homes for sale only. Any other value answers 400 invalid_type.Values:for_saleDefault: for_sale
sortstringoptional The order. Left out: Redfin's recommended order.Values:price_ascprice_descnewestoldest
pageintegeroptional The page of homes, from 1 to 20 (up to 7,000 homes). Each page has up to 350.Default: 1
num_pagesintegeroptional How many pages to fetch in this call, from 1 to 5, starting at page. Each page fetched costs one credit; page + num_pages - 1 can be at most 20.Default: 1
response_typestringoptional json: the listings. html: Redfin's raw answer for the fetched pages as text in html, without listings. both: the listings and html.Values:jsonhtmlbothDefault: json
pingback_urlstringoptional Queue the search and get the answer later; see Async tasks.

No count of all homes

Redfin does not say how many homes match. search_information.has_more is true while every fetched page was full (350 homes) and page 20 is not reached yet; a page with fewer than 350 is the last one. Up to 5 pages fit in one call: Redfin's pages are large.

The 96 cities

New York, Los Angeles, Chicago, Houston, Phoenix, Philadelphia, San Antonio, San Diego, Dallas, Austin, Jacksonville, San Jose, Fort Worth, Columbus, Charlotte, Indianapolis, San Francisco, Seattle, Denver, Washington DC, Nashville, Oklahoma City, El Paso, Boston, Portland, Las Vegas, Memphis, Louisville, Baltimore, Milwaukee, Albuquerque, Tucson, Fresno, Sacramento, Mesa, Kansas City, Atlanta, Omaha, Colorado Springs, Raleigh, Long Beach, Virginia Beach, Miami, Oakland, Minneapolis, Tampa, Tulsa, Arlington, New Orleans, Cleveland, Honolulu, Anaheim, Orlando, Henderson, St. Louis, Pittsburgh, Cincinnati, Riverside, Salt Lake City, Detroit, Boise, Richmond, Spokane, Des Moines, Charleston, Savannah, Madison, Providence, Birmingham, Knoxville, Buffalo, Rochester, Hartford, Oxnard, Bakersfield, Aurora, Scottsdale, Tacoma, Durham, Greensboro, Jersey City, Chandler, Fort Lauderdale, St. Petersburg, Reno, Tempe, Baton Rouge, Chesapeake, Irvine, Gilbert, Norfolk, Plano, Lincoln, Anchorage.

What comes back

FieldTypeDescription
search_metadataobjectAbout this request.
idstringA unique id for the search.
statusstringSuccess when Redfin 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 or the bounds or region_id and region_type, type, page, num_pages (when above 1), sort (when given) and response_type.
search_informationobjectAbout the homes.
query_displayedstringThe area in words: the city, the bounds, or the region.
page, per_pageintegerThis page and homes a page (350).
pages_fetchedintegerPages this call fetched (fewer than num_pages at the last page, or when the site stopped partway).
results_on_pageintegerHow many homes this answer has (all fetched pages).
has_morebooleanWhether a next page may have more homes.
search_medianobjectRedfin's medians for the fetched homes: price, sqFt, pricePerSqFt, dom (days on market), beds and baths.
listingsarrayThe homes, each with position (1, 2, 3... counted across pages, so page 2 starts at 351) and the fields below.
property_id, listing_id, mls_id, mls_sourceinteger / stringRedfin's ids for the home and the listing, and the MLS number and MLS it comes from.
urlstringThe home on Redfin.
street_address, city, state, zipcode, country, neighborhoodstringWhere the home is (street_address can be empty for coming-soon homes).
latitude, longitudenumberThe home on the map.
price, currency, price_per_sqftinteger / string / nullThe asking price in whole US dollars (null when not shown), always USD, and the price per square foot.
bedrooms, bathroomsnumber / nullBedrooms and bathrooms, when listed.
living_area, living_area_unit, lot_area, lot_area_unitinteger / stringThe home's size and the lot's size, in sqft.
property_type, ui_property_typestring / integerThe kind of home: single_family, condo, townhouse, multi_family, land, other, mobile or co_op, read from Redfin's code (1 to 8).
mls_status, listing_type, status_labelstring / integerThe listing's status (Active, New, Coming Soon...), Redfin's listing type code and its badge text when it has one.
year_built, days_on_marketinteger / nullThe year it was built and how many days it has been on the market.
time_on_redfin_ms, original_time_on_redfin_ms, sold_dateinteger / string / nullHow long it has been on Redfin, in milliseconds, and a sold date when there is one.
num_photos, photo_urlinteger / stringHow many photos the listing has. photo_url is empty: Redfin's map search gives no photo links.
has_3d_tour, has_video_tour, has_virtual_tour, is_new_construction, is_hot, is_redfin_listed, is_redfin_brokerbooleanFlags Redfin shows on the listing.
listing_agent, listing_brokerstringThe agent and the broker on the listing, when shown.
hoa_valueinteger / nullThe monthly HOA fee in US dollars, when there is one.
data_source_id, market_idintegerRedfin's ids for the listing's data source and market.
descriptionstringThe listing's text, up to 500 characters.
key_facts, tagsarrayShort facts and Redfin's tags for the home, like CUL_DE_SAC (empty entries removed).
htmlstringresponse_type html or both: Redfin's raw answer for the fetched pages, as text.

Any area by its bounds, cheapest first

Request
curl -G "https://api.scraperdata.com/v1/search" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "engine=redfin" \
  --data-urlencode "south=29.52" \
  --data-urlencode "west=-95.79" \
  --data-urlencode "north=30.11" \
  --data-urlencode "east=-95.01" \
  --data-urlencode "sort=price_asc"

Errors

Errors never cost credits. Every error code is on the Errors page; these are the Redfin ones:

FieldTypeDescription
missing_query400No area: send q, the four bounds, or region_id.
invalid_query400Two ways at once, a q longer than 120 characters, or a city Redfin does not know by name (use the bounds or region_id).
invalid_bounds400Not all four edges, not numbers, or south is not below north or west not below east.
invalid_region400region_id is not a whole number, or region_type is not city, zip, county or neighborhood.
invalid_sort400sort is not price_asc, price_desc, newest or oldest.
invalid_type400type is not for_sale.
invalid_page400page is not a whole number from 1 to 20.
invalid_num_pages400num_pages is not 1 to 5, or page + num_pages - 1 goes past page 20.
invalid_filter400bedrooms, min_price or max_price was sent: Redfin searches do not take them.
invalid_response_type400response_type is not json, html or both.
no_results404No homes for sale in the area, or the page is past the last one.
upstream_error, upstream_unavailable, upstream_timeout502 / 503 / 504Redfin could not be reached in time. Retry in a few seconds.
400 Bad Request
{
  "error": {
    "code": "invalid_query",
    "message": "Redfin knows 96 large US cities by name, like Houston, TX. For any other place send bounds (south, west, north and east) or region_id. You were not charged."
  },
  "charged": false
}

Credits

Each page fetched costs one credit (350 homes a page, up to 5 pages a call). Failed searches, cities Redfin does not know, areas with no homes and pages past the last one are free.