Redfin Listing Search API

Scrape Redfin property search results into structured JSON/CSV using ScraperAPI in Ruby. Supports search page URLs, country targeting, and domain selection.

This endpoint will return the search results from a listing search page and transform it into usable JSON.

require 'net/http'
require 'json'
params = {
:api_key => "API_KEY",
:url => "URL",
:country_code => "COUNTRY_CODE",
:tld => "TLD",
}
uri = URI('https://api.scraperapi.com/structured/redfin/search')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)

Parameters
Details

API_KEY (required)

User's API Key.

URL (required)

The URL of the Redfin search page. The URL has to be a Redfin Search page.

country_code

Allows you to geotarget the request. Use this parameter if you want Redfin to be scraped from a specific country.

TLD

The top level domain to scrape.

Valid options:

‘com’ (for redfin.com)

‘ca’ (for redfin.ca)

Sample Response

Last updated

Was this helpful?