Redfin 'For Rent' Listings API (Async)
The Redfin 'For Rent' Listings API endpoint will retrieve listing information from a single 'For Rent' property listing page and transform it into usable JSON.
Single URL Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"url": "URL",
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"raw": "RAW",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/redfin/forrent"import requests
url = "https://async.scraperapi.com/structured/redfin/forrent"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"url": "URL",
"country_code": "COUNTRY_CODE",
"tld" : "TLD",
"raw": "RAW",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)Multiple URLs Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"urls": ["URL1", "URL2],
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"raw": "RAW",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/redfin/forrent"import requests
url = "https://async.scraperapi.com/structured/redfin/forrent"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"urls": ["URL1", "URL2"],
"country_code": "COUNTRY_CODE",
"tld" : "TLD",
"raw": "RAW",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)Supported Parameters
API_KEY (required)
Your API Key.
URL (required)
The URL of the Redfin page. The URL has to be the URL of a property for rent.
country_code
Allows you to geotarget the request. Use this parameter if you want Redfin to be scraped from a specific country.
TLD
raw
This is a boolean param - true or false
If the raw parameter is set to true, the raw data will be extracted from the page without further parsing.
Important: The structure of the data in raw mode cannot be guaranteed, it’s a tradeoff: You get a lot more information back, but the structure of the response may change if Redfin modifies their page layout.
Sample Response
Single URL Request
Multiple URLs Request
After the job(s) finish, you will find the result under the response key in the response JSON object. The structure is the same as in the corresponding SYNC data endpoint.
Last updated

