fred

Federal Reserve Bank of St. Louis Federal Reserve Economic Data (FRED) API

Usage no npm install needed!

<script type="module">
  import fred from 'https://cdn.skypack.dev/fred';
</script>

README

Fred

FRED Logo

Installation

npm install fred

API Key

Fred and the FRED API require and API key. You can request an api key from the official Federal Reserve web site.

Overview

Create an instance of fred with your API key:

var fred = require('fred')('GiVeMe1APIKeYPLeaSe' || process.env.FRED_API_KEY);

Request a resource:

fred.series.observations('GDP', function(err, grossNationalProduct) {
  if (!err) console.log(grossNationalProduct.observations)
  done(err);
});

More information

The documentation for the FRED API is available on the Federal Reserve's web site.