Redfin Rentals Search
redfin.listings.for_rent
List the rentals in a city with monthly rent, beds, baths and size. Filter by rent and by the fewest bedrooms you need.
At a glance
- Endpoint ID
redfin.listings.for_rent- Price
- 1–5 credits per call; failed calls are free
- Runs for up to
- 45 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "redfin.listings.for_rent", "input": { "max_pages": 1, "max_rent": 3000, "min_beds": 2, "page": 1, "region_id": 16163, "region_type": 6 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "redfin.listings.for_rent", "input": { "max_pages": 1, "max_rent": 3000, "min_beds": 2, "page": 1, "region_id": 16163, "region_type": 6 }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "redfin.listings.for_rent", "input": { "max_pages": 1, "max_rent": 3000, "min_beds": 2, "page": 1, "region_id": 16163, "region_type": 6 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
region_id |
integer | yes | Redfin's ID for the city, such as 16163 for Seattle. It is the number in the city's Redfin link: redfin.com/city/16163/WA/Seattle. | 16163 |
max_pages |
integer | no | How many pages to read in this call, up to 10. | 1 |
max_rent |
integer | no | The highest monthly rent, in US dollars. | 3000 |
min_beds |
integer | no | The fewest bedrooms a rental must have. | 2 |
min_rent |
integer | no | The lowest monthly rent, in US dollars. | |
page |
integer | no | The page of results to start from. | 1 |
query |
string | no | A label of your own, returned with the results. It does not pick the area. | |
region_type |
integer | no | The kind of area. 6 is a city, and the default. | 6 |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "has_more": true, "matched_count": 902, "next_page": 2, "total_count": 20, "listings": [ { "title": "Skye Apartments", "address": "500 Wall St, Seattle, WA 98121", "area_sqft": 851, "baths": 1, "beds": 2, "currency": "USD", "id": "2060927", "position": 1, "rent": 2363, "status": "For Rent", "url": "https://www.redfin.com/WA/Seattle/Skye-Apartments/apartment/2060927" }, { "title": "Metropolitan Park", "address": "601 S Washington St, Seattle, WA 98104", "area_sqft": 715, "baths": 1, "beds": 2, "currency": "USD", "id": "2062185", "position": 2, "rent": 2350, "status": "For Rent", "url": "https://www.redfin.com/WA/Seattle/Metropolitan-Park/apartment/2062185" } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
listings[].title |
string | The building or home name. | Skye Apartments |
listings[].address |
string | The street address. | 500 Wall St, Seattle, WA 98121 |
listings[].rent |
integer | The monthly rent Redfin shows for a matching home, in US dollars. | 2363 |
listings[].beds |
integer | Bedrooms. | 2 |
listings[].baths |
integer | Bathrooms. | 1 |
listings[].area_sqft |
integer | The size, in square feet. | 851 |
listings[].currency |
string | The currency of the rent. | USD |
listings[].id |
string | Redfin's ID for the rental. | 2060927 |
listings[].position |
integer | The rental's place in Redfin's results. | 1 |
listings[].status |
string | The listing status, such as For Rent. | For Rent |
listings[].url |
string | The rental's page on Redfin. | https://www.redfin.com/WA/Seattle/Skye-Apartments/apartment/206… |
has_more |
boolean | Whether more pages follow. | true |
listings |
array | The rentals returned. | 20 records |
matched_count |
integer | How many rentals match the search across every page. | 902 |
next_page |
integer | The page to ask for next. | 2 |
total_count |
integer | How many rentals this response holds. | 20 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Redfin Real Estate endpoints
Something missing or unclear? Ask the team that builds the Redfin Real Estate endpoints.