Redfin 'For Rent' Listings API
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.
curl --request GET \
--url "https://api.scraperapi.com/structured/redfin/forrent?api_key=API_KEY&\
url=URL&country_code=COUNTRY_CODE&tld=TLD&raw=RAW"import requests
payload = {
'api_key': 'API_KEY',
'url': 'URL',
'country_code': 'COUNTRY_CODE',
'tld': 'TLD',
'raw': 'RAW'
}
r = requests.get('https://api.scraperapi.com/structured/redfin/forrent',params=payload)
print(r.text)import fetch from 'node-fetch';
fetch(
'https://api.scraperapi.com/structured/redfin/forrent?api_key=API_KEY&url=URL&country_code=COUNTRY_CODE&tld=TLD&raw=RAW'
)
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error(error);
});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
Last updated

