FRED API: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:


=Code Examples=
=Code Examples=
==Initialization==
<syntaxhighlight lang='py'>
from fredapi import Fred
fred = Fred(api_key='...')
</syntaxhighlight>


FRED with pandas:
FRED with pandas:

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='...')


FRED with pandas:

Search

Get Series

Organizatorium