FRED API: Difference between revisions
Jump to navigation
Jump to search
(→Search) |
(→Search) |
||
Line 27: | Line 27: | ||
fred.search("text", limit=1000, order_by=None, sort_order=None, filter=None) | fred.search("text", limit=1000, order_by=None, sort_order=None, filter=None) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Do a full text search for series in the FRED data set. Returns the results as a [[ | 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== | ==Get Series== |
Revision as of 01:24, 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
fred.search("text", limit=1000, order_by=None, sort_order=None, filter=None)
Do a full text search for series in the FRED data set. Returns the results as a data frame.
Get Series
Organizatorium
- Source of data over API https://fred.stlouisfed.org and how to do it https://www.youtube.com/watch?v=R67XuYc9NQ4