{"repo":"mortada/fredapi","free":true,"listed":false,"github":"https://github.com/mortada/fredapi","clone":"git clone https://github.com/mortada/fredapi.git","description":"Python API for FRED (Federal Reserve Economic Data) and ALFRED (Archival FRED)","language":"Python","stars":1651,"topics":["python","fred","finance","economic-data"],"license":"Apache-2.0","category":"trading","readme_excerpt":"fredapi: Python API for FRED (Federal Reserve Economic Data) fredapi is a Python API for the FRED data provided by the Federal Reserve Bank of St. Louis. fredapi provides a wrapper in python to the FRED web service, and also provides several convenient methods for parsing and analyzing point-in-time data (i.e. historic data revisions) from ALFRED fredapi makes use of pandas and returns data to you in a pandas Series or DataFrame Installation Basic Usage First you need an API key, you can apply for one for free on the FRED website. Once you have your API key, you can set it in one of three ways: set it to the evironment variable FRED API KEY save it to a file and use the 'api key file' parameter pass it directly as the 'api key' parameter Working with data revisions Many economic data series contain frequent revisions. fredapi provides several convenient methods for handling data revisions and answering the quesion of what-data-was-known-when. In ALFRED there is the concept of a vintage date. Basically every observation can have three dates associated with it: date , realtime start and realtime end . - date: the date the value is for - realtime start: the first date the value is valid - realitime end: the last date the value is valid For instance, there has been three observations (data points) for the GDP of 2014 Q1: This means the GDP value for Q1 2014 has been released three times. First release was on 4/30/2014 for a value of 17149.6, and then there have been two revisions","default_branch":null,"files":null,"tree":[],"storefront":"/r/mortada","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mortada/fredapi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}