How to hit the FRED (St. Louis Fed) API

FRED at https://api.stlouisfed.org/fred serves hundreds of thousands of economic time series. Add file_type=json; the default is XML.

Authentication

Get a free key at fredaccount.stlouisfed.org and pass it as api_key. In the examples it's written {{FRED_API_KEY}}.

Full reference: https://fred.stlouisfed.org/docs/api/fred/

Series observations

UNRATE is the US unemployment rate.

curl "https://api.stlouisfed.org/fred/series/observations?series_id=UNRATE&file_type=json&sort_order=desc&limit=5&api_key={{FRED_API_KEY}}"
Run in PostTaco