FRED

FRED

Finance

Economic data from the Federal Reserve Bank of St. Louis

Visit API

πŸ“š Documentation & Examples

Everything you need to integrate with FRED

πŸš€ Quick Start Examples

FRED Javascript Examplejavascript
// FRED API Example
const response = await fetch('https://fred.stlouisfed.org/docs/api/fred/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Accessing economic data has never been easier, thanks to the Federal Reserve Bank of St. Louis (FRED) API. This powerful tool allows developers, researchers, and analysts to effortlessly retrieve an extensive range of economic data series, including but not limited to GDP, interest rates, and employment statistics. By leveraging this API, users can integrate real-time economic insights into their applications, websites, or research projects, making informed decisions based on the latest available data. With a comprehensive documentation available at FRED API Documentation, integrating economic data into your projects has never been more straightforward.

Using the FRED API offers numerous advantages for those seeking reliable economic information. Benefits include:

  • Access to a vast database of historical and current economic data.
  • User-friendly endpoints that simplify data retrieval.
  • The ability to filter and customize requests to suit specific needs.
  • Regular updates to ensure access to the latest economic figures.
  • Extensive documentation that helps developers seamlessly integrate data into various applications.

Here’s a JavaScript example demonstrating how to call the FRED API to fetch the latest Gross Domestic Product (GDP) data:

const apiKey = 'YOUR_API_KEY';
const url = `https://api.stlouisfed.org/fred/series/observations?series_id=GDP&api_key=${apiKey}&file_type=json`;

fetch(url)
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error fetching data:', error));

πŸ“Š 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jul 3Jul 5Jul 7Jul 9Jul 11Jul 13Jul 15Jul 17Jul 19Jul 21Jul 23Jul 25Jul 27Jul 29Aug 104008001440Minutes
Online
Offline

Related APIs in Finance