FRED API: Difference between revisions

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


Request an API key from here: https://fred.stlouisfed.org/docs/api/api_key.html
Request an API key from here: https://fred.stlouisfed.org/docs/api/api_key.html
=Code Examples=
==Initialization==
<syntaxhighlight lang='py'>
from fredapi import Fred
fred = Fred(api_key='...')
</syntaxhighlight>
==Search==
<syntaxhighlight lang='py'>
fred.search("text", limit=1000, order_by=None, sort_order=None, filter=None)
</syntaxhighlight>
Do a full text search for series in the FRED data set. Returns the results as a [[Pandas_Concepts#Data_Frame|data frame]].
==Get Series==


=Organizatorium=
=Organizatorium=

Revision as of 19:26, 8 October 2023