Browse all documentation

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 /observations routes return the current accepted time series. REST and MCP use the same schemas and use the same credit.

/v1/economics/{country}/population/observations returns annual total population from the World Bank. It has no latest-value route.

Base URL and parameters

REST base path
https://api.narwhalapi.com/v1/economics/{country}
  • country is a supported uppercase ISO alpha-3 code.
  • period is 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.
Request one known period
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.

OperationREST pathPeriod
Consumer Price Index/v1/economics/{country}/cpiYYYY-MM
Inflation/v1/economics/{country}/inflationYYYY-MM or YYYY-QN
Unemployment/v1/economics/{country}/unemploymentYYYY, YYYY-MM, or YYYY-QN
Labour-force participation/v1/economics/{country}/labour-force-participationYYYY, YYYY-MM, or YYYY-QN
Gross Domestic Product/v1/economics/{country}/gdpYYYY-QN
GDP growth/v1/economics/{country}/gdp-growthYYYY-QN
Merchandise trade/v1/economics/{country}/tradeYYYY 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_of or version=first_reported to read earlier vintages.

OperationREST pathPeriod
Consumer Price Index history/v1/economics/{country}/cpi/observationsYYYY-MM
Inflation history/v1/economics/{country}/inflation/observationsYYYY-MM or YYYY-QN
Unemployment history/v1/economics/{country}/unemployment/observationsYYYY-MM or YYYY-QN
Labour-force participation history/v1/economics/{country}/labour-force-participation/observationsYYYY-MM or YYYY-QN
Gross Domestic Product history/v1/economics/{country}/gdp/observationsYYYY-QN
GDP growth history/v1/economics/{country}/gdp-growth/observationsYYYY-QN
Merchandise trade history/v1/economics/{country}/trade/observationsYYYY-MM
Population history/v1/economics/{country}/population/observationsYYYY

More indicators

Five more indicators cover fewer countries, and each page lists them. Their routes take series_id and no as_of or version.

OperationREST pathPeriod
Current account/v1/economics/{country}/current-accountYYYY-QN
Harmonised inflation/v1/economics/{country}/harmonised-inflationYYYY-MM
Industrial production/v1/economics/{country}/industrial-productionYYYY-MM
Money supply/v1/economics/{country}/money-supplyYYYY-MM
Producer prices/v1/economics/{country}/producer-pricesYYYY-MM
Current account history/v1/economics/{country}/current-account/observationsYYYY-QN
Harmonised inflation history/v1/economics/{country}/harmonised-inflation/observationsYYYY-MM
Industrial production history/v1/economics/{country}/industrial-production/observationsYYYY-MM
Money supply history/v1/economics/{country}/money-supply/observationsYYYY-MM
Producer prices history/v1/economics/{country}/producer-prices/observationsYYYY-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 ruleMeaning
countryThe requested ISO alpha-3 country code.
periodThe exact official month, quarter, or year represented by the response.
released_onThe official publication date, not Narwhal's retrieval time.
Decimal stringsNumeric economic values are strings to preserve exact decimal representation.
Units and basesPercent 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 releasesNarwhal fails closed instead of inventing, carrying forward, or converting missing values to zero.

Series history by ID

GET /v1/economics/series/{series_id}/observations returns the history of one series by its ID. MCP tool: economics_read_series_observations. The ID is a UUID. Slug values in the economic release calendar’s series_id field, such as usa-new-home-sales, are not accepted and return 400 invalid_query. 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_cursor as cursor for the next page. Every account reads the full history. An unknown series returns 404 not_found. Other errors: 400 invalid_cursor when the cursor is invalid or does not match the request. 409 snapshot_unavailable when a cursor has expired or access to the series changed between pages; restart pagination without the cursor. 503 data_unavailable when the series is temporarily not served.

Example response
{
  "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_id, unit, observations and next_cursor are always present. next_cursor is null on the last page. Each observation has period, value and released_on. currency and source appear only when they apply.

Any key can use either as_of=YYYY-MM-DD or version=first_reported 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_of=YYYY-MM-DD returns the series as published through the end of that UTC day. The series-by-id route also echoes as_of in the response.
  • version=first_reported returns the first value Narwhal stored for each period and adds the UTC timestamp first_reported_at to each observation. Where a period's measures were first stored at different times, the timestamp is the latest of those times.

Both parameters work on the supported country history and series-by-id routes. Use either parameter on its own; sending both returns 400 invalid_query. An as_of date before Narwhal's first capture of the series returns 404 series_not_found. Vintages start at Narwhal's first capture. Paging works as usual, with the cursor keeping all pages on one snapshot.

first_reported follows the series now served: after a CPI rebase or source-key replacement, it returns first values from the replacement onward, while as_of can still return the earlier release. Yield-curve, policy-rate and environment history do not accept these parameters.

Series at a specified date
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"
}
First reported values
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_of 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_reported_at 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.

Was this page helpful?