API reference
Macro
CPI, GDP, unemployment and policy rates from statistics offices and central banks.
Macro observations
/v1/macro/observations Each series' values by period. Where the publisher dates its releases, usually only the latest one, released says when a value came out, and we keep those dates from then on, so a revision shows up as a later release. Setting frequency downsamples to a coarser one, keeping only complete periods.
Query parameters
seriesarray of strings RequiredComma-separated codes from /v1/macro/series, up to 100
Up to 100 items
fromdateFirst day, YYYY-MM-DD
todateLast day, YYYY-MM-DD
freshbooleanSkip our cache and get the latest data. Items refreshed this way cost double
formatstringResponse format
One of
jsoncsvDefaults to json
frequencystringDownsample to this frequency, which must not be finer than the series' own
One of
dailyweeklymonthlyquarterlyannual
Response
dataarray of objectsShowHide 7 fields
asOftimestampThe point in time this data describes. For history and events it's the date of the newest record, or the end of your range when there are none. Live values give when they were observed, and reference data gives when we last confirmed it
codestringThe canonical code it resolved to
frequencystringThe frequency served
One of
dailyweeklymonthlyquarterlyannualnamestringobservationsarray of objectsShowHide 3 fields
perioddateFirst day of the period
releaseddate or nullWhen this value was published, null when unknown
valuenumber
seriesstringThe code as sent
unitstringOne of
percentindexpersons
errorsarray of objectsShowHide 3 fields
codestringOne of
invalid_symbolinstrument_not_foundnot_supporteddata_unavailabledata_pendingdata_failedmessagestringseriesstring
metaobjectShowHide 2 fields
creditsintegerCredits this call cost
requestIdstring
Errors
400 Bad Request401 Unauthorized402 Payment Required403 Forbidden422 Unprocessable Entity429 Too Many Requests500 Internal Server Error503 Service Unavailable
Every error body is problem+json with a stable code. See errors.
Macro series
/v1/macro/series Every economic series we carry, like AU.CPI.YOY or US.POLICY_RATE, with its unit, frequency and the next expected release.
Query parameters
countrystringISO country code, EA for the euro area
Matches ^[A-Za-z]{2}$
categorystringOne of
inflationgdplabourratesfrequencystringOne of
dailyweeklymonthlyquarterlyannualfreshbooleanSkip our cache and get the latest data. Items refreshed this way cost double
formatstringResponse format
One of
jsoncsvDefaults to json
Response
dataarray of objectsShowHide 10 fields
adjustmentstringSeasonally adjusted (sa) or not (nsa)
One of
sansaaggregationstringHow periods combine when a coarser frequency is asked for
One of
meansumlastaliasesarray of stringsOther codes that resolve to this series
categorystringOne of
inflationgdplabourratescodestringcountrystringfrequencystringOne of
dailyweeklymonthlyquarterlyannualnamestringnextReleasedate or nullOur estimate of the next release, from the series' recent release dates once it has been fetched, and from its usual lag until then
unitstringOne of
percentindexpersons
metaobjectShowHide 3 fields
creditsintegerCredits this call cost
nextCursorstring or nullPass as cursor to get the next page, null on the last page
requestIdstring
Errors
400 Bad Request401 Unauthorized402 Payment Required403 Forbidden422 Unprocessable Entity429 Too Many Requests500 Internal Server Error503 Service Unavailable
Every error body is problem+json with a stable code. See errors.