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

Jun 7Jun 9Jun 11Jun 13Jun 15Jun 17Jun 19Jun 21Jun 23Jun 25Jun 27Jun 29Jul 1Jul 3Jul 604008001440Minutes
Online
Offline

Related APIs in Finance