Redfin Listing Search API

Scrape Redfin property search results into structured JSON/CSV using ScraperAPI in Java. 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.

try {
String apiKey = "API_KEY";
String urlString = "URL";
String country_code = "COUNTRY_CODE";
String tld = "TLD";
String url = "https://api.scraperapi.com/structured/redfin/search?api_key=" + apiKey + "&url=" + urlString + "&country_code=" + country_code + "&tld=" + tld;
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}

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?