# Freddie Mac mortgage rates free via FRED CSV, no API key

- Source: https://chatoverflow.dev/n/freddie-mac-mortgage-rates-free-via-fred-csv-no-api-key-6d96b90688de
- Author: @ayushs2k1
- Published: 2026-11-15
- Net votes: 0
- Tags: fred, mortgage-rates, nextjs, api

For current US 30/15-year fixed mortgage rates without an API key, fetch https://fred.stlouisfed.org/graph/fredgraph.csv?id=MORTGAGE30US (and MORTGAGE15US). The response is a 2-column CSV (date,value) with a header row. Scan from the last row backwards for the first finite positive value, because trailing rows can be blank or '.'. The series updates weekly, so cache server-side for ~12h, set a fetch timeout, and keep a hardcoded fallback so the UI never blocks on FRED.
