Economics API reference
Latest releases and historical observations, with coverage listed by country and indicator.
Seven routes return the latest accepted official release. Seven matching / routes return the current accepted time series. REST and MCP use the same schemas and use the same credit.
/ returns annual total population from the World Bank. It has no latest-value route.
Base URL and parameters
https://api.narwhalapi.com/v1/economics/{country}countryis a supported uppercase ISO alpha-3 code.periodis optional. Omit it for the latest release or pass the operation's month, quarter, or year format.- Core economics endpoints such as /v1/economics/{country}/cpi and their MCP tools may return provisional first estimates of headline figures without identifying them as provisional in the response; Narwhal API replaces these values when the source publishes final figures.
- Every request requires the Bearer header described in Authentication.
curl --request GET \
--url "https://api.narwhalapi.com/v1/economics/USA/cpi?period=2026-07" \
--header "Authorization: Bearer $NARWHAL_API_KEY"Countries
46 Countries
ARG, AUS, AUT, BEL, BRA, CAN, CHE, CHL, CHN, COL, CZE, DEU, DNK, ESP, EST, FIN, FRA, GBR, HRV, IDN, IND, IRL, ISR, ITA, JPN, KOR, LTU, LUX, LVA, MEX, MYS, NLD, NOR, NZL, PAK, PHL, POL, PRT, QAT, SAU, SGP, SVN, SWE, THA, USA, ZAF
Coverage varies by operation and country. Each operation lists its supported countries.
215 countries in total. Countries without a national, OECD, Eurostat or BIS series have annual history from the World Bank on the history routes. Each operation page lists its countries.
Latest releases
Open an operation page for exact parameters, accepted period formats, response fields, examples, errors, freshness, and current limits.
| Operation | REST path | Period |
|---|---|---|
| Consumer Price Index | / | YYYY-MM |
| Inflation | / | YYYY-MM or YYYY-QN |
| Unemployment | / | YYYY, YYYY-MM, or YYYY-QN |
| Labour-force participation | / | YYYY, YYYY-MM, or YYYY-QN |
| Gross Domestic Product | / | YYYY-QN |
| GDP growth | / | YYYY-QN |
| Merchandise trade | / | YYYY or YYYY-MM |
Historical observations
Historical routes accept start, end, limit, and cursor. Results describe the current accepted series in order from oldest to newest. Any key can add as_ or version=first_ to read earlier vintages.
| Operation | REST path | Period |
|---|---|---|
| Consumer Price Index history | / | YYYY-MM |
| Inflation history | / | YYYY-MM or YYYY-QN |
| Unemployment history | / | YYYY-MM or YYYY-QN |
| Labour-force participation history | / | YYYY-MM or YYYY-QN |
| Gross Domestic Product history | / | YYYY-QN |
| GDP growth history | / | YYYY-QN |
| Merchandise trade history | / | YYYY-MM |
| Population history | / | YYYY |
More indicators
Five more indicators cover fewer countries, and each page lists them. Their routes take series_ and no as_ or version.
| Operation | REST path | Period |
|---|---|---|
| Current account | / | YYYY-QN |
| Harmonised inflation | / | YYYY-MM |
| Industrial production | / | YYYY-MM |
| Money supply | / | YYYY-MM |
| Producer prices | / | YYYY-MM |
| Current account history | / | YYYY-QN |
| Harmonised inflation history | / | YYYY-MM |
| Industrial production history | / | YYYY-MM |
| Money supply history | / | YYYY-MM |
| Producer prices history | / | YYYY-MM |
Yield curves
Every account includes yield curves for the US, UK, Germany, Japan, Canada, Sweden, Norway, Australia and the euro area with a Narwhal API key.
Field conventions
| Field or rule | Meaning |
|---|---|
country | The requested ISO alpha-3 country code. |
period | The exact official month, quarter, or year represented by the response. |
released_ | The official publication date, not Narwhal's retrieval time. |
| Decimal strings | Numeric economic values are strings to preserve exact decimal representation. |
| Units and bases | Percent fields are named as such. Currencies and index bases are stated. A flag appears only when a series is not seasonally adjusted or is annualized. |
| Missing releases | Narwhal fails closed instead of inventing, carrying forward, or converting missing values to zero. |
Series history by ID
GET / returns the history of one series by its ID. MCP tool: economics_. The ID is a UUID. Slug values in the economic release calendar’s series_ field, such as usa-new-home-sales, are not accepted and return 400 invalid_. Two series are available: the Australian Monthly CPI Indicator (for example 284aaefe-7919-4728-bc15-50879ba77211) and the New Zealand quarterly CPI.
Optional start and end take YYYY, YYYY-MM, YYYY-MM-DD or YYYY-QN. limit is 1–1000 (default 100). Pass next_ as cursor for the next page. Every account reads the full history. An unknown series returns 404 not_. Other errors: 400 invalid_ when the cursor is invalid or does not match the request. 409 snapshot_ when a cursor has expired or access to the series changed between pages; restart pagination without the cursor. 503 data_ when the series is temporarily not served.
{
"country": "AUS",
"series_id": "284aaefe-7919-4728-bc15-50879ba77211",
"unit": "percent",
"observations": [
{
"period": "2018-09",
"value": "2",
"released_on": "2025-10-29"
},
{
"period": "2018-10",
"value": "2.3",
"released_on": "2025-10-29"
}
],
"next_cursor": null
}country, series_, unit, observations and next_ are always present. next_ is null on the last page. Each observation has period, value and released_. currency and source appear only when they apply.
Any key can use either as_ or version=first_ on this route for the Australian Bureau of Statistics Monthly CPI Indicator and the Statistics New Zealand quarterly CPI. These parameters also work on the country history routes.
as_returns the series as published through the end of that UTC day. The series-by-id route also echoesof=YYYY-MM-DD as_in the response.of version=first_returns the first value Narwhal stored for each period and adds the UTC timestampreported first_to each observation. Where a period's measures were first stored at different times, the timestamp is the latest of those times.reported_ at
Both parameters work on the supported country history and series-by-id routes. Use either parameter on its own; sending both returns 400 invalid_. An as_ date before Narwhal's first capture of the series returns 404 series_. Vintages start at Narwhal's first capture. Paging works as usual, with the cursor keeping all pages on one snapshot.
first_ follows the series now served: after a CPI rebase or source-key replacement, it returns first values from the replacement onward, while as_ can still return the earlier release. Yield-curve, policy-rate and environment history do not accept these parameters.
curl --request GET \
--url "https://api.narwhalapi.com/v1/economics/series/284aaefe-7919-4728-bc15-50879ba77211/observations?as_of=2026-10-10&start=2025-07&limit=2" \
--header "Authorization: Bearer $NARWHAL_API_KEY"{
"country": "AUS",
"series_id": "284aaefe-7919-4728-bc15-50879ba77211",
"unit": "percent",
"observations": [
{
"period": "2025-07",
"value": "2.8",
"released_on": "2025-10-29"
},
{
"period": "2025-08",
"value": "3",
"released_on": "2025-10-29"
}
],
"next_cursor": "eyJ…",
"as_of": "2026-10-10"
}curl --request GET \
--url "https://api.narwhalapi.com/v1/economics/series/284aaefe-7919-4728-bc15-50879ba77211/observations?version=first_reported&start=2025-07&limit=3" \
--header "Authorization: Bearer $NARWHAL_API_KEY"{
"country": "AUS",
"series_id": "284aaefe-7919-4728-bc15-50879ba77211",
"unit": "percent",
"observations": [
{
"period": "2025-07",
"value": "2.8",
"released_on": "2025-10-29",
"first_reported_at": "2026-10-08T01:20:36.137656Z"
},
{
"period": "2025-08",
"value": "3",
"released_on": "2025-10-29",
"first_reported_at": "2026-10-08T01:20:36.137656Z"
},
{
"period": "2025-09",
"value": "3.5",
"released_on": "2025-10-29",
"first_reported_at": "2026-10-08T01:20:36.137656Z"
}
],
"next_cursor": null
}An as_ date earlier than the first capture
{
"type": ".../problems/not-found",
"title": "Economics series not found",
"status": 404,
"detail": "The series had no publication at that time.",
"code": "series_not_found"
}For periods the agency released before Narwhal began capturing the series between August and September 2026, first_ records when Narwhal first captured that value, after the agency's original release. Narwhal does not reconstruct earlier vintages.
OpenAPI and discovery
Current public-beta limits
Get government yield curves across nine countries and areas through REST and MCP. Read one source date or a paginated history, with decimal percent strings.
See Errors and credits for missing-series and service-unavailable behavior.
Start with a free key
Free $10 credits every month, no card.Free $10 credits a month, no card.
Was this page helpful?