Request data from the BLS public API.
(Array)
payload to send to the API
Promise
:
Retrieve data for the past three years of this series.
Promise
:
Retrieve data for an arbitrary range of years (max 20 year span) with options to to include annual averages and change calculations. If no parameters are specified, data for the last three years will be returned. If a start year is given, an end year must also be given.
(number)
first year of data to be requested
(number)
last year of data to be requested
(Boolean)
average of each year's data
(Boolean)
net and percent changes between months and years
Promise
:
Retrieve data for a single year, stripped of unnecessary response data.
(number)
the year to get data for
Promise
:
Get the annual average CPI value for a single year.
(number)
the year to get data for
Promise
:
Get the CPI value for a single month.
Promise
: