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 with the date each was released, so a revision shows up as a later release. 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 fetch from sources. Items fetched fresh 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 objectsShow 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 checked it with a source
codestringThe canonical code it resolved to
frequencystringThe frequency served
One of
dailyweeklymonthlyquarterlyannualnamestringobservationsarray of objectsShow 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 objectsShow 3 fields
codestringOne of
invalid_symbolinstrument_not_foundnot_supporteddata_unavailabledata_pendingsource_failedmessagestringseriesstring
metaobjectShow 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 fetch from sources. Items fetched fresh cost double
formatstringResponse format
One of
jsoncsvDefaults to json
Response
dataarray of objectsShow 10 fields
adjustmentstringsa is seasonally adjusted, nsa isn't
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, null until the series has been fetched
unitstringOne of
percentindexpersons
metaobjectShow 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.