Description Usage Arguments Value References
Provides an interface to the Federal Reserve Economic Database. The database is maintained by the St. Louis Fed, while this package is merely a wrapper around the public API. Compulsory disclaimer: this product uses the FRED API but is not endorsed or certified by the Federal Reserve Bank of St. Louis.
api_key |
An application-specific code assigned by the Fed. |
file_type |
Data return format, either xml or json. Current default is xml, but this might change in the future. |
processor |
A function to process data returned via the web service. The default processor for XML creates a simple |
f |
A structure as returned by the |
category_id, release_id, series_id, source_id |
FRED identifiers for the associated objects. |
search_text, series_search_text, tag_names |
HTML-escaped search string, or a semicolon-separated list thereof. |
... |
Additional arguments as detailed in the FRED API docs. |
The fred
function returns a struct containing basic API settings. All other functions rely on the processor
element of their first argument; return types are dependent on that function.
The official API docs can be found at http://api.stlouisfed.org/docs/fred/. FRED API codes can be obtained from http://api.stlouisfed.org/api_key.html.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.