Microproduct data guidebeginner

FHFA House Price Index

Repeat-sales indexes of U.S. single-family house prices for building local housing-market monitors and regional comparison tools.

At a glance

Difficulty
Beginner — comfortable for a first prototype
Size
Tiny · ≤0.05 GB
Formats
CSV, JSON, XML
Access
Download
API key
Not required
Provider
Federal Housing Finance Agency
Updates
Monthly

From source to product signal

Test a product idea in four steps

The FHFA House Price Index measures average price changes from repeat mortgage transactions on the same single-family properties. Start with purchase-only monthly series for a few states. The index is not a list of sale prices, and coverage is strongest where Fannie Mae and Freddie Mac purchase or securitize mortgages.

1

Check the setup

  • Python 3.10 or newer
  • A notebook environment such as Jupyter or Google Colab
  • An internet connection
2

Access the data

  1. 1.Open the FHFA HPI datasets page and identify the purchase-only monthly series.
  2. 2.Download the master CSV and filter to one index flavor, frequency, and geography level.
  3. 3.Record the flavor, seasonal-adjustment choice, and retrieval date before comparing places.
Open official source
3

Run the Python example

Install the packages, then run the notebook cell.

python -m pip install pandas

import pandas as pd

prices = pd.read_csv("https://www.fhfa.gov/hpi/download/monthly/hpi_master.csv")
state_prices = prices[
    (prices["hpi_flavor"] == "purchase-only")
    & (prices["frequency"] == "monthly")
    & (prices["level"] == "State")
    & (prices["place_name"].isin(["California", "Texas", "Florida"]))
].copy()
state_prices["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(state_prices[["place_name", "yr", "period", "index_nsa", "index_sa"]].tail(24))
4

Test a useful signal

Compare recent state house-price indexes

Describe how purchase-only monthly indexes moved for three states over the last two years.

  1. 01Filter the master file to purchase-only monthly state series and confirm the date range.
  2. 02Plot seasonally adjusted indexes for the selected states on a shared timeline.
  3. 03State that the HPI is a repeat-sales index, not observed list prices, and that Enterprise mortgage coverage varies by market.

Dataset details

Federal Housing Finance Agency is a government source. Last verified 2026-08-14. Temporal coverage: mid-1970s-present depending on geography and index flavor.

Theme

Markets & Economics

Domains

HousingRegional Economics

Data types

Time SeriesTabular

Tasks

Trend AnalysisRegional ComparisonMarket Monitoring

Geography

United States

Formats

CSVJSONXML

Provider

Federal Housing Finance Agency

Data terms

U.S. Government public data / federal copyright guidance