|<- Your 32-character FRED API Key goes in cell A1.|
|Request your FRED API key from||https://research.stlouisfed.org/docs/api/api_key.html|
Retrieve one or more time series from FRED to Google Sheets.
Try a beta version that will retrieve multiple time series joined by date at common frequency.
On Notes/Technical sheet: copy your 32-character FRED API Key to a one-cell Named Range called APIKey (currently cell A1 above).
On any sheet: copy a gray/blue box from Template; set FRED series name in blue cell; and adjust values in pale blue section by selecting frequency, dates, etc. (blanks give the FRED defaults).
You need the sheet Notes/Technical and one copy of the gray/blue box from Template. It is ok to delete the appendixes, which include a search facility, examples, and detailed demonstrations of the API calls.
Uses =IMPORTXML() with calls to the FRED API to get series metadata or observation data; to see raw XML, use =IMPORTDATA()
|About the FRED API||https://fred.stlouisfed.org/docs/api/fred/|
|Documentation of parameters|
|Michael Ash (UMass Amherst) & the FRED team (Federal Reserve Bank of St. Louis). Comments welcome:||mailto:email@example.com|
Formatting for Dropdown Menus (do not alter or delete this section)
|Change from Previous Period||chg|
|Change from Year Ago||ch1|
|Percent Change from Previous Period||pch|
|Percent Change from Year Ago||pc1|
|Compounded Annual Rate of Change||pca|
|Continuously Compounded Rate of Change||cch|
|Weekly Ending Friday||wef|
|Weekly Ending Thursday||weth|
|Weekly Ending Wednesday||wew|
|Weekly Ending Tuesday||wetu|
|Weekly Ending Monday||wem|
|Weekly Ending Sunday||wesu|
|Weekly Ending Saturday||wesa|
|Biweekly Ending Wednesday||bwew|
|Biweekly Ending Monday||bwem|
|End of Period||eop|
|Copyright 2020 Michael Ash|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.