Finance

FRED API

by fred.stlouisfed.org

Finance Added on November 9th, 2026
Visit fred.stlouisfed.org →

What it does

The FRED API from the Federal Reserve Bank of St. Louis gives economic data series such as GDP, inflation and interest rates, for example to chart unemployment over time. Requests are GET calls with an api_key parameter, and the answers are XML or JSON. Free with a free API key. Apps must show FRED's notice that they are not endorsed by the bank, and series owned by third parties may need their permission.
  • API
  • HTTP-GET
  • JSON
  • REST
  • XML

At a glance

API key
Needed, free · More APIs with a free key
Pricing
Free with a free API key.
Formats
JSON, XML
Interface
REST, HTTP-GET
Provider
fred.stlouisfed.org

More information: https://fred.stlouisfed.org/docs/api/fred/

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

Example request

curl

curl 'https://api.stlouisfed.org/fred/series/observations?series_id=GDP&file_type=json&api_key=YOUR_API_KEY'

JavaScript

const response = await fetch("https://api.stlouisfed.org/fred/series/observations?series_id=GDP&file_type=json&api_key=YOUR_API_KEY");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://api.stlouisfed.org/fred/series/observations?series_id=GDP&file_type=json&api_key=YOUR_API_KEY",
    timeout=30,
)
print(response.json())

Replace YOUR_API_KEY with your own key.

Did it work for you?

Tell us what you found when you tried FRED API.