Redfin Agent Details API

Scrape Redfin Agent details into structured JSON/CSV using ScraperAPI in Java. Use URL, country code, and TLD parameters for precise data extraction.

This endpoint retrieves information and details from a Redfin Agent's page or a Redfin Partner Agents page and transforms 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/agent?api_key=" + apiKey + "&url=" + urlString + "&country_code=" + country_code + "&tld=" + tld;           
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection connection = (HttpURLConnection) urlForGetRequest.openConnection();
connection.setRequestMethod("GET");
int responseCode = connection.getResponseCode();            
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(connection.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 has to be a Redfin Agent URL or a Redfin Partner Agent URL.

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

Redfin Agent URL response:

Partner Agent URL response:

Last updated

Was this helpful?