How to get Redfin housing data in Python
Checked on 2026-11-24.
Redfin publishes its housing market figures as free files in its Data Center: homes sold, median sale price, inventory, days on market and dozens more, for cities, ZIP codes, neighborhoods, counties and metro areas across the US. pandas reads them in one line. They are figures per area and period, not homes. For the homes themselves Redfin's site has a Download All button on a search, and from a script there is an HTTP API that reads Redfin.
1. Market data: the Data Center files
The Data Center download hub lists fourteen datasets, from the Housing Market Tracker to price drops, purchase cancellations, investor purchases and migration patterns. The Housing Market Tracker is the one most people want. Redfin's methodology page calls it "Redfin's most comprehensive data product" and says it "monitors roughly 40 metrics spanning sales, listings, prices, and time on market".
- Monthly for the nation, states, metro areas, counties, cities, ZIP codes and neighborhoods; weekly, in "rolling four-week (28-day) windows", for the nation and metro areas.
- For small areas a month is not a calendar month: "For smaller geographies—cities, zip codes, and neighborhoods—we aggregate over rolling three-month windows to ensure adequate sample sizes."
- "All metrics cover residential properties: single family, condo/co-op, townhouse, and multi-family (2-4 unit)."
The hub downloads each file from a public address, so a script can read it too. The file of the 50 largest cities is 3.9 MB; those of every city and every ZIP code were 1.7 GB and 2.0 GB on 24 November 2026.
# pip install pandas
import pandas as pd
URL = ("https://redfin-public-data.s3.us-west-2.amazonaws.com/redfin_data_center/"
"housing_market/monthly/top_50_cities.csv")
df = pd.read_csv(URL)
austin = df[df["REGION NAME"] == "Austin, TX"].sort_values("PERIOD END")
latest = austin.iloc[-1]
print(latest["PERIOD BEGIN"], "to", latest["PERIOD END"])
print(latest["HOMES SOLD"], "homes sold")
print(latest["MEDIAN SALE PRICE NSA ($)"], "median sale price")
print(latest["MEDIAN DAYS ON MARKET (DAYS)"], "median days on market")On 24 November 2026 that file had 86 columns and one row per city and period back to January 2012. The latest Austin row covered 1 August to 31 October 2026: 2,211 homes sold, a median sale price of $528,657 and a median of 73 days on market. Its REGION ID, 30818, is the number in the address of Austin's page on Redfin, redfin.com/city/30818/TX/Austin. In the hub's own words, MOM and YOY in a column name are month-over-month and year-over-year changes, and NA "means no data was available for that region or time period".
Where it stops:
- Figures per area and period only: no homes and no addresses.
- The latest period is an estimate. Redfin adjusts it for sales that are reported late and revises history "if and when any new information arrives", so a number can change between two downloads.
- The files with every city or every ZIP code are gigabytes. Download them once and keep them; do not read them on every run.
2. One search's homes: the Download All button
For the homes of a search, Redfin's help article Downloading Data says: "To download data, you will want to scroll to the bottom of the table and, from there, click on the 'Download All' button." The file holds listing details for each home, such as the sale price, time on Redfin and bed and bath counts.
Where it stops: "There is a 350-home cap. Additionally, if your search results are less than 20 homes, the download option will not be available." And "The option to download data will only be available if the local MLS allows it." It is also a button for a person in a browser: Redfin's Terms of Use, updated 29 September 2025, say in section 2.3.5: "You may not automatedly crawl or query the Services for any purpose or by any means (including, without limitation, screen and database scraping, spiders, robots, crawlers and any other automated activity with the purpose of obtaining information from the Services) unless you have received prior express written permission from the applicable Redfin Company." That covers a script of your own and a service such as the one below alike. Read the terms and weigh them for your own use.
3. A place's homes from a script: an HTTP API
The Pipefetch listings endpoint returns the homes Redfin lists for a US city, ZIP code, county or neighborhood, read at the moment of your request: the ones for sale now, or with type=sold the ones sold in the last 90 days. You name the place with the address of its page on redfin.com, copied from the browser.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/realestate/listings",
params={
"location": "https://www.redfin.com/city/30818/TX/Austin", # or /zipcode/78704
"type": "for-sale", # or sold
"limit": 20,
},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
print(res.json()["error"]["code"]) # no_results or location_not_found; not charged
else:
res.raise_for_status()
data = res.json()["data"]
market = data["market"]
print(market["listingCount"], "homes, median price", market["medianPrice"], "more on Redfin:", market["truncated"])
for home in data["listings"]:
print(home["price"], home["beds"], home["baths"], home["squareFeet"], home["city"], home["url"])The market part of the answer saved for Austin on 19 November 2026:
{
"url": "https://www.redfin.com/city/30818/TX/Austin",
"type": "for-sale",
"listingCount": 20,
"truncated": true,
"medianPrice": 519900,
"minPrice": 225000,
"maxPrice": 3950000,
"medianPricePerSqft": 340,
"medianSquareFeet": 1997,
"medianDaysOnMarket": 9,
"unconfirmedSaleCount": 0
}Each home has its price and price per square foot, beds, baths, floor area, lot size, year built, days on market and HOA fee, its street address, city, ZIP code, Redfin's neighborhood label and coordinates, the property type and listing status, the source of the listing with its MLS number, and its link on Redfin. A sold home has its sale price and soldDate. A request costs 1 credit, and most take 2 to 9 seconds. A place with no homes of the type asked for (404 no_results) or an address Redfin has no page for (404 location_not_found) costs nothing. A new account has 100 free credits and needs no card.
Where it stops:
- Up to 20 homes per request, with no further pages and no filters for price, size or type.
truncatedtrue means the place has more. marketdescribes the homes in the answer, not the whole place: the median above is of 20 asking prices, the Data Center's of three months of sales.- A place name on its own is refused. A city page can include homes of neighboring towns, and each home carries its own city.
- Sold homes are the confirmed sales of the last 90 days; records Redfin shows without a sale date or price are left out and counted in
unconfirmedSaleCount. - The United States only. It is not an official Redfin API, and Pipefetch is not affiliated with Redfin.
Which one should you use?
| You want | Use |
|---|---|
| Prices, sales and inventory of a city, ZIP code or metro, period by period | The Data Center files |
| The homes of one search, once, as a file | Download All on redfin.com |
| The homes for sale or recently sold in a place, from a script or on a schedule | An HTTP API such as Pipefetch |
| Zillow's numbers rather than Redfin's | The guide to Zillow API alternatives |
What about the redfin package?
The redfin package on PyPI (0.2.2, 6 April 2026) describes itself as "A Python wrapper around the unofficial Redfin API". Its README works with one property at a time: an address lookup, then that property's estimated value and neighborhood scores. The API it wraps is not an official one, and section 2.3.5 of Redfin's terms applies to it as to any other automated route.
Try it with 100 free credits. No card needed. No scraper to build or maintain. Get an API key or read the docs.
APIs used in this guide
More Real estate guides
Guides for other sources
Every source
YouTube
- How to get a YouTube transcript in Python
- How to get a YouTube transcript in Node.js
- YouTube API quota exceeded: what the error means and how to fix it
- How to find a YouTube channel ID from a handle or URL
- How to download YouTube subtitles as SRT or VTT
- youtube-transcript-api RequestBlocked or IpBlocked: why it happens and how to fix it
- How to get YouTube comments in Python
- How to search YouTube from Python
- How to list a YouTube channel's videos in Python
- How to summarize a YouTube video with an LLM in Python
- How to get YouTube transcripts and video stats in Google Sheets
- How to get YouTube video views and likes in Python
- How to get YouTube transcripts in n8n, Make and Zapier
- LangChain YoutubeLoader fails on a server: why, and a loader that works
- How to get a YouTube channel's subscriber count in Python
- How to give Claude or Cursor access to YouTube (MCP server)
- How to get YouTube comments in Node.js
- How to analyze YouTube comments with an LLM in Python
- How to list a YouTube channel's Shorts in Python
- How to search YouTube from JavaScript
- How to get an Instagram follower count in Python
- Instagram Basic Display API alternatives: what to use after the shutdown
- Instaloader 401 Unauthorized, 429 and "Login required": what to do
- How to calculate an Instagram engagement rate in Python
- How to get an Instagram follower count in Node.js
- How to get Instagram follower counts in Google Sheets
- How to get Instagram Reel views in Python
Websites
- Clearbit Logo API alternatives: get a company logo from its domain
- How to extract email addresses from a website in Python
- How to turn a web page into Markdown in Python
- How to detect what a website is built with, in Python
- How to get the contact emails and phone numbers of websites in Google Sheets
- How to build a LangChain tool that reads web pages and searches Google
- How to turn a web page into Markdown in JavaScript for RAG
- How to extract social media links from a website in Python
- How to get a website's favicon in Python
- How to check robots.txt in Python before you fetch a page
TikTok
- How to get a TikTok video's views and likes in Python
- How to get the comments of a TikTok video in Python
- How to get a TikTok follower count in Python
- TikTok Research API: who can get access, and what to do if you cannot
- How to get TikTok video views, likes and shares in Node.js
- How to get TikTok views, likes and follower counts in Google Sheets
- How to get a Facebook Page's posts without app review
- Is there a Facebook Marketplace API?
- Facebook Groups API alternatives after its removal in 2024
- How to get a Facebook Page's follower count and contact details in Python
- How to get Google search results in Python
- pytrends 429 TooManyRequestsError: what it means and what to do
- How to get Google Trends data in Python
- Why is Wyoming first in Google Trends?
- How to get Google search results in Node.js
- How to get Google search results into Google Sheets
- How to give an LLM live Google results with tool calling
Threads
- How to get LinkedIn company data in Python
- How to search LinkedIn jobs from Python
- How to get a LinkedIn company page's latest posts in Python