All APIs

Economic data API

One source for CPI, inflation, labour, GDP, and trade data from official statistical agencies.

Online99.93% uptime, last 30 days378 ms typical response

First request

Get the latest CPI

curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/USA/cpi?period=2026-07" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"

Endpoints

GETConsumer Price Index/v1/economics/{country}/cpi

Retrieve the headline consumer price index for one country and month.

Parameters

  • countryrequired

    One supported uppercase country code; see this operation’s coverage list.

  • periodoptional

    Omit it for the latest accepted complete release, or pass one exact period.

  • version_idoptional

    Optional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code.

  • periodstring

    The official observation period returned.

  • valuepositive decimal string

    The headline index level.

  • index_basestring

    Base period and base value of the index, for example 1982-84=100.

  • released_ondate

    The official publication date, not Narwhal's retrieval time.

  • sourceobject

    The optional source object appears only when the statistic is received through a distributor. It contains publisher (the original publisher named by the distributor) and distributor (the distributing organisation). When source is present, released_on is the distributor's publication date, not the original publisher's release date. Publisher-direct series omit source.


Full reference →
GETInflation/v1/economics/{country}/inflation

Retrieve year-over-year, month-over-month, and year-to-date inflation for one month.

Parameters

  • countryrequired

    One supported uppercase country code; see this operation’s coverage list.

  • periodoptional

    Omit it for the latest accepted complete release, or pass one exact period.

  • version_idoptional

    Optional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code.

  • periodstring

    The official observation period returned.

  • year_over_yeardecimal string

    Change from the same month one year earlier, in percent.

  • month_over_monthdecimal string

    Change from the previous month, in percent.

  • year_to_datedecimal string

    Change from the prior December, in percent. Omitted when the publisher does not release it.

  • released_ondate

    The official publication date, not Narwhal's retrieval time.

  • sourceobject

    The optional source object appears only when the statistic is received through a distributor. It contains publisher (the original publisher named by the distributor) and distributor (the distributing organisation). When source is present, released_on is the distributor's publication date, not the original publisher's release date. Publisher-direct series omit source.


Full reference →
GETUnemployment/v1/economics/{country}/unemployment

Retrieve the official unemployment rate for one observation period.

Parameters

  • countryrequired

    One supported uppercase country code; see this operation’s coverage list.

  • periodoptional

    Omit it for the latest accepted complete release, or pass one exact period.

  • version_idoptional

    Optional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code.

  • periodstring

    The official observation period returned.

  • ratedecimal string

    The published rate, in percent, from 0 through 100.

  • released_ondate

    The official publication date, not Narwhal's retrieval time.

  • sourceobject

    The optional source object appears only when the statistic is received through a distributor. It contains publisher (the original publisher named by the distributor) and distributor (the distributing organisation). When source is present, released_on is the distributor's publication date, not the original publisher's release date. Publisher-direct series omit source.


Full reference →
GETLabour-force participation/v1/economics/{country}/labour-force-participation

Retrieve the official labour-force participation rate for one observation period.

Parameters

  • countryrequired

    One supported uppercase country code; see this operation’s coverage list.

  • periodoptional

    Omit it for the latest accepted complete release, or pass one exact period.

  • version_idoptional

    Optional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code.

  • periodstring

    The official observation period returned.

  • ratedecimal string

    The published rate, in percent, from 0 through 100.

  • released_ondate

    The official publication date, not Narwhal's retrieval time.

  • sourceobject

    The optional source object appears only when the statistic is received through a distributor. It contains publisher (the original publisher named by the distributor) and distributor (the distributing organisation). When source is present, released_on is the distributor's publication date, not the original publisher's release date. Publisher-direct series omit source.


Full reference →
GETGross Domestic Product/v1/economics/{country}/gdp

Retrieve national GDP for one quarter, always at current prices.

Parameters

  • countryrequired

    One supported uppercase country code; see this operation’s coverage list.

  • periodoptional

    Omit it for the latest accepted complete release, or pass one exact period.

  • version_idoptional

    Optional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code.

  • periodstring

    The official observation period returned.

  • valuepositive decimal string

    The current-price GDP value.

  • currencyISO 4217 string

    The national currency for the GDP value.

  • not_seasonally_adjustedtrue

    Present, as true, only when the official series is not seasonally adjusted.

  • annualizedtrue

    Present, as true, only when the official level is annualized.

  • released_ondate

    The official publication date, not Narwhal's retrieval time.

  • sourceobject

    The optional source object appears only when the statistic is received through a distributor. It contains publisher (the original publisher named by the distributor) and distributor (the distributing organisation). When source is present, released_on is the distributor's publication date, not the original publisher's release date. Publisher-direct series omit source.


Full reference →
GETGDP growth/v1/economics/{country}/gdp-growth

Retrieve official real GDP growth for one quarter, measured at constant prices and expressed in percent.

Parameters

  • countryrequired

    One supported uppercase country code; see this operation’s coverage list.

  • periodoptional

    Omit it for the latest accepted complete release, or pass one exact period.

  • version_idoptional

    Optional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code.

  • periodstring

    The official observation period returned.

  • year_over_yeardecimal string

    Real GDP change from the same quarter one year earlier, in percent.

  • quarter_over_quarterdecimal string

    Real GDP change from the previous quarter, in percent, not annualized.

  • year_to_datedecimal string

    Official year-to-date growth, in percent, when the source publishes it; otherwise omitted.

  • not_seasonally_adjustedtrue

    Present, as true, only when the growth rates are not seasonally adjusted.

  • annualizedtrue

    Present, as true, only when the published growth rate is annualized.

  • year_over_year_not_seasonally_adjustedtrue

    Present, as true, only for a country that mixes bases: its year-over-year figure is not seasonally adjusted. The top-level flag is then absent.

  • quarter_over_quarter_not_seasonally_adjustedtrue

    Present, as true, only for a country that mixes bases: its quarter-over-quarter figure is not seasonally adjusted. The top-level flag is then absent.

  • released_ondate

    The official publication date, not Narwhal's retrieval time.

  • sourceobject

    The optional source object appears only when the statistic is received through a distributor. It contains publisher (the original publisher named by the distributor) and distributor (the distributing organisation). When source is present, released_on is the distributor's publication date, not the original publisher's release date. Publisher-direct series omit source.


Full reference →
GETMerchandise trade/v1/economics/{country}/trade

Retrieve exports, imports, and the exact merchandise-trade balance for one period. Services are excluded.

Parameters

  • countryrequired

    One supported uppercase country code; see this operation’s coverage list.

  • periodoptional

    Omit it for the latest accepted complete release, or pass one exact period.

  • version_idoptional

    Optional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code.

  • periodstring

    The official observation period returned.

  • exportsnon-negative decimal string

    Total merchandise exports.

  • importsnon-negative decimal string

    Total merchandise imports.

  • balancedecimal string

    Exact exports minus imports; it may be negative.

  • currencyISO 4217 string

    The currency for all three monetary values.

  • released_ondate

    The official publication date, not Narwhal's retrieval time.

  • sourceobject

    The optional source object appears only when the statistic is received through a distributor. It contains publisher (the original publisher named by the distributor) and distributor (the distributing organisation). When source is present, released_on is the distributor's publication date, not the original publisher's release date. Publisher-direct series omit source.


Full reference →

Use cases

Compare inflation across countries

Rank the latest inflation rates and keep each release date.

Read the guide →

Growth from GDP levels

Work out quarterly growth and show it as an annual rate.

Read the guide →

Check if the yield curve is inverted

Compare two yields and read the spread in basis points.

Read the guide →

Calculate the real interest rate

Take inflation off a nominal yield with the Fisher formula.

Read the guide →

Build an economic calendar

List release times in UTC for the countries and dates you choose.

Read the guide →

Backfill history

Download a full series page by page and resume if it stops.

Read the guide →

Coverage

Indicators

Countries

Show all 37 countries

Sources

  • AustraliaAustralian Bureau of Statistics (ABS)
  • AustriaStatistics Austria, Eurostat
  • BelgiumStatbel, National Bank of Belgium, Eurostat
  • CanadaStatistics Canada
  • SwitzerlandSwiss Federal Statistical Office (FSO), Eurostat
  • ChileCentral Bank of Chile (BCCh), National Statistics Institute of Chile (INE)
  • ColombiaNational Administrative Department of Statistics (DANE)
  • CzechiaCzech Statistical Office (ČSÚ)
  • GermanyFederal Statistical Office of Germany (Destatis)
  • DenmarkStatistics Denmark, Eurostat
  • SpainNational Statistics Institute of Spain (INE), Spanish Tax Agency (AEAT)
  • EstoniaStatistics Estonia
Show all 37 sources
  • FinlandStatistics Finland, Finnish Customs (Tulli)
  • FranceNational Institute of Statistics and Economic Studies (INSEE), French Customs
  • United KingdomOffice for National Statistics (ONS)
  • CroatiaCroatian Bureau of Statistics (CBS)
  • IrelandCentral Statistics Office (CSO)
  • ItalyItalian National Institute of Statistics (Istat), Eurostat
  • JapanStatistics Bureau of Japan, Cabinet Office of Japan, Japan Customs
  • LithuaniaState Data Agency of Lithuania
  • LuxembourgSTATEC, Eurostat
  • LatviaCentral Statistical Bureau of Latvia (CSB)
  • MexicoINEGI
  • MalaysiaDepartment of Statistics Malaysia (DOSM)
  • NetherlandsStatistics Netherlands (CBS)
  • NorwayStatistics Norway (SSB)
  • New ZealandStats NZ
  • PakistanPakistan Bureau of Statistics (PBS)
  • PhilippinesPhilippine Statistics Authority (PSA)
  • PolandStatistics Poland, Eurostat
  • PortugalStatistics Portugal (INE)
  • QatarNational Planning Council (NPC), via the Qatar Open Data portal
  • Saudi ArabiaGeneral Authority for Statistics (GASTAT)
  • SingaporeSingapore Department of Statistics (SingStat), Singapore government open-data publications
  • SloveniaStatistical Office of the Republic of Slovenia (SURS)
  • SwedenStatistics Sweden (SCB)
  • United StatesBureau of Labor Statistics (BLS), Bureau of Economic Analysis (BEA), US Census Bureau

Related APIs

Yield curve API for government bonds

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.

Explore the API →

FAQ

Which countries are supported?

Check the coverage table for the published countries. Available indicators and historical periods vary by country.

Does the API include historical economic data?

Yes. Each of the seven latest-release operations has a matching observations route for the current accepted historical series.

Where does the economic data come from?

Every live stream comes from a government statistics office or another official national publisher named in the coverage matrix.

How quickly is a new release available?

Narwhal publishes a release after it passes validation. The public beta does not promise a fixed source-to-publication delay.