Redfin Agent Details API

Scrape Redfin Agent details into structured JSON/CSV using ScraperAPI in Ruby. 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.

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/agent')
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 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?