Skip to main content
POST
Macroeconomic series (CPI, inflation, GDP, unemployment, policy rate, treasury yield, retail sales, payrolls, PMI, money supply) by country. Returns a normalized SeriesPoint page, most recent first.

Authorizations

Authorization
string
header
required

AgentKey API key (ak_…).

Body

application/json
series
enum<string>
required

cpi = price index level; inflation = CPI change in percent year on year; gdp = output in the vendor's unit; unemployment = rate in percent; policy_rate = central bank rate; treasury_yield = government bond yield; retail_sales, payrolls, pmi, money_supply as the national statistics office publishes them.

Available options:
cpi,
inflation,
gdp,
unemployment,
policy_rate,
treasury_yield,
retail_sales,
payrolls,
pmi,
money_supply
country
string
default:US

ISO 3166-1 alpha-2 of the economy (US, CN, DE, JP).

fields
string[]

Projection: keep only these dotted paths of data, e.g. ["items.id", "items.text"].

include_raw
boolean
default:false

Attach the raw upstream payload as raw (not a stable contract; truncated above 256 KB).

interval
enum<string>
default:auto

Reporting frequency; auto = the series' native frequency at the provider.

Available options:
auto,
daily,
weekly,
monthly,
quarterly,
semiannual,
annual
limit
integer
default:24

Maximum number of observations to return.

Required range: 1 <= x <= 200
maturity
enum<string>
default:10year

Bond maturity for treasury_yield.

Available options:
3month,
2year,
5year,
7year,
10year,
30year
provider
string

Shorthand for routing.only = [provider].

routing
object

Provider routing override. order: try these providers first; only: restrict to these (equivalent to pinning); allow_fallbacks: false tries only the first eligible provider.

Response

Success envelope

Success envelope whose data is a SeriesPointPage.

attempts
object[]
required
credits_charged
number
required

Credits charged for this call (the method's fixed price).

data
object
required

One page of observations, most recent first.

op
string
required

Method name.

op_version
integer
required

Method version that served the call.

provider
string
required

Provider that actually served the call.

request_id
string
required

Correlation id; quote it in support requests.

took_ms
integer
required
unsupported_fields
string[]
required

Output paths this provider structurally does not supply; such fields are null for a different reason than 'missing on this record'.

raw
any

Upstream payload, only with include_raw=true. Not a stable contract.

raw_truncated
boolean