---
title: "Economics API reference — Narwhal API"
description: "REST paths, countries, response fields, parameters, and discovery resources for the live Narwhal Economics API."
url: "https://narwhalapi.com/docs/api/economics"
---

# 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](https://narwhalapi.com/docs/authentication.md).

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.

| Operation | REST path | Period |
| --- | --- | --- |
| [Consumer Price Index](https://narwhalapi.com/docs/api/economics/cpi.md) | `/v1/economics/{country}/cpi` | `YYYY-MM` |
| [Inflation](https://narwhalapi.com/docs/api/economics/inflation.md) | `/v1/economics/{country}/inflation` | `YYYY-MM or YYYY-QN` |
| [Unemployment](https://narwhalapi.com/docs/api/economics/unemployment.md) | `/v1/economics/{country}/unemployment` | `YYYY, YYYY-MM, or YYYY-QN` |
| [Labour-force participation](https://narwhalapi.com/docs/api/economics/labour-force-participation.md) | `/v1/economics/{country}/labour-force-participation` | `YYYY, YYYY-MM, or YYYY-QN` |
| [Gross Domestic Product](https://narwhalapi.com/docs/api/economics/gdp.md) | `/v1/economics/{country}/gdp` | `YYYY-QN` |
| [GDP growth](https://narwhalapi.com/docs/api/economics/gdp-growth.md) | `/v1/economics/{country}/gdp-growth` | `YYYY-QN` |
| [Merchandise trade](https://narwhalapi.com/docs/api/economics/trade.md) | `/v1/economics/{country}/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_of` or `version=first_reported` to read earlier vintages.

| Operation | REST path | Period |
| --- | --- | --- |
| [Consumer Price Index history](https://narwhalapi.com/docs/api/economics/cpi-history.md) | `/v1/economics/{country}/cpi/observations` | `YYYY-MM` |
| [Inflation history](https://narwhalapi.com/docs/api/economics/inflation-history.md) | `/v1/economics/{country}/inflation/observations` | `YYYY-MM or YYYY-QN` |
| [Unemployment history](https://narwhalapi.com/docs/api/economics/unemployment-history.md) | `/v1/economics/{country}/unemployment/observations` | `YYYY-MM or YYYY-QN` |
| [Labour-force participation history](https://narwhalapi.com/docs/api/economics/labour-force-participation-history.md) | `/v1/economics/{country}/labour-force-participation/observations` | `YYYY-MM or YYYY-QN` |
| [Gross Domestic Product history](https://narwhalapi.com/docs/api/economics/gdp-history.md) | `/v1/economics/{country}/gdp/observations` | `YYYY-QN` |
| [GDP growth history](https://narwhalapi.com/docs/api/economics/gdp-growth-history.md) | `/v1/economics/{country}/gdp-growth/observations` | `YYYY-QN` |
| [Merchandise trade history](https://narwhalapi.com/docs/api/economics/trade-history.md) | `/v1/economics/{country}/trade/observations` | `YYYY-MM` |
| [Population history](https://narwhalapi.com/docs/api/economics/population-history.md) | `/v1/economics/{country}/population/observations` | `YYYY` |

## More indicators

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

| Operation | REST path | Period |
| --- | --- | --- |
| [Current account](https://narwhalapi.com/docs/api/economics/current-account.md) | `/v1/economics/{country}/current-account` | `YYYY-QN` |
| [Harmonised inflation](https://narwhalapi.com/docs/api/economics/harmonised-inflation.md) | `/v1/economics/{country}/harmonised-inflation` | `YYYY-MM` |
| [Industrial production](https://narwhalapi.com/docs/api/economics/industrial-production.md) | `/v1/economics/{country}/industrial-production` | `YYYY-MM` |
| [Money supply](https://narwhalapi.com/docs/api/economics/money-supply.md) | `/v1/economics/{country}/money-supply` | `YYYY-MM` |
| [Producer prices](https://narwhalapi.com/docs/api/economics/producer-prices.md) | `/v1/economics/{country}/producer-prices` | `YYYY-MM` |
| [Current account history](https://narwhalapi.com/docs/api/economics/current-account-history.md) | `/v1/economics/{country}/current-account/observations` | `YYYY-QN` |
| [Harmonised inflation history](https://narwhalapi.com/docs/api/economics/harmonised-inflation-history.md) | `/v1/economics/{country}/harmonised-inflation/observations` | `YYYY-MM` |
| [Industrial production history](https://narwhalapi.com/docs/api/economics/industrial-production-history.md) | `/v1/economics/{country}/industrial-production/observations` | `YYYY-MM` |
| [Money supply history](https://narwhalapi.com/docs/api/economics/money-supply-history.md) | `/v1/economics/{country}/money-supply/observations` | `YYYY-MM` |
| [Producer prices history](https://narwhalapi.com/docs/api/economics/producer-prices-history.md) | `/v1/economics/{country}/producer-prices/observations` | `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.

[United States yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#usa)
[United Kingdom yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#gbr)
[Germany yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#deu)
[Japan yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#jpn)
[Canada yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#can)
[Sweden yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#swe)
[Norway yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#nor)
[Australia yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#aus)
[Euro area yield curve →](https://narwhalapi.com/api/economics/yield-curve.md#emu)

## 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_on` | 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 /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

- [OpenAPI 3.1 document](https://api.narwhalapi.com/openapi.json)
- [ReDoc](https://api.narwhalapi.com/redoc)
- [MCP tools and connection guide](https://narwhalapi.com/docs/mcp.md)
- [Regional CPI and GDP: Malaysian states and US states](https://narwhalapi.com/docs/api/economics/regional.md)

## 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](https://narwhalapi.com/docs/errors.md) for missing-series and service-unavailable behavior.

## Start with a free key

Free $10 credits every month, no card.

[Get a free API key](https://narwhalapi.com/signup)

Was this page helpful?
