ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
<- Your 32-character FRED API Key goes in cell A1.
2
Request your FRED API key fromhttps://research.stlouisfed.org/docs/api/api_key.html
3
4
Purpose
5
Retrieve one or more time series from FRED to Google Sheets.
6
Try a beta version that will retrieve multiple time series joined by date at common frequency.
7
https://docs.google.com/spreadsheets/d/17-UuMBeqfIZQ9Qf-w-VzCuENI9TTkLt3lP7-z6xQ1Ac/copy#gid=719802045
8
9
Use
10
On Notes/Technical sheet: copy your 32-character FRED API Key to a one-cell Named Range called APIKey (currently cell A1 above).
11
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).
12
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.
13
14
Technical Notes
15
Uses =IMPORTXML() with calls to the FRED API to get series metadata or observation data; to see raw XML, use =IMPORTDATA()
16
About the FRED APIhttps://fred.stlouisfed.org/docs/api/fred/
17
Documentation of parameters
https://fred.stlouisfed.org/docs/api/fred/series_observations.html#Parameters
18
Michael Ash (UMass Amherst) & the FRED team (Federal Reserve Bank of St. Louis). Comments welcome:mailto:mash@econs.umass.edu
19
20
Formatting for Dropdown Menus (do not alter or delete this section)
21
units-prettyunits-api-parameter
22
Default Unitslin
23
Change from Previous Periodchg
24
Change from Year Agoch1
25
Percent Change from Previous Periodpch
26
Percent Change from Year Agopc1
27
Compounded Annual Rate of Changepca
28
Continuously Compounded Rate of Changecch
29
Compounded cca
30
Loglog
31
32
order-prettyorder-api-parameter
33
Ascendingasc
34
Descendingdesc
35
36
frequency-prettyfrequency-api-parameter
37
Dailyd
38
Weeklyw
39
Bi-weeklybw
40
Monthlym
41
Quarterlyq
42
Seminannualsa
43
Annuala
44
Weekly Ending Fridaywef
45
Weekly Ending Thursdayweth
46
Weekly Ending Wednesdaywew
47
Weekly Ending Tuesdaywetu
48
Weekly Ending Mondaywem
49
Weekly Ending Sundaywesu
50
Weekly Ending Saturdaywesa
51
Biweekly Ending Wednesdaybwew
52
Biweekly Ending Mondaybwem
53
54
frequency-aggregation-prettyfrequency-aggregation-api-parameter
55
Averageavg
56
End of Periodeop
57
Sumsum
58
59
60
61
BSD License
62
Copyright 2020 Michael Ash
63
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
64
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
65
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.
66
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.
67
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.