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.

Python
# 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.

Python
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:

JSON
{
  "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. truncated true means the place has more.
  • market describes 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 wantUse
Prices, sales and inventory of a city, ZIP code or metro, period by periodThe Data Center files
The homes of one search, once, as a fileDownload All on redfin.com
The homes for sale or recently sold in a place, from a script or on a scheduleAn HTTP API such as Pipefetch
Zillow's numbers rather than Redfin'sThe 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.

Every source

YouTube

Instagram

Websites

TikTok

Facebook

Google

Threads

LinkedIn

App stores

Steam

X

Pinterest

Airbnb

Keywords

Job boards

Eventbrite

Shopify stores

Public tenders

All guides