FRED API: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:
from fredapi import Fred
from fredapi import Fred
fred = Fred(api_key='...')
fred = Fred(api_key='...')
</syntaxhighlight>
FRED with pandas:
<syntaxhighlight lang='py'>
</syntaxhighlight>
</syntaxhighlight>



Revision as of 01:21, 8 October 2023

External

Internal

Installation

pip3 install fredapi

Get the API Key

Request an API key from here: https://fred.stlouisfed.org/docs/api/api_key.html

Code Examples

Initialization

from fredapi import Fred
fred = Fred(api_key='...')

Search

Get Series

Organizatorium