All APIs

Economic output API

Read official GDP levels and GDP growth by country through REST or MCP. Request the latest accepted value, an exact period or dated history.

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

First request

Get the latest value

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

Endpoints

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 →
GETGross Domestic Product history/v1/economics/{country}/gdp/observations

Retrieve the current accepted gross domestic product time series for one country.

Parameters

  • countryrequired

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

  • startoptional

    Inclusive first observation period.

  • endoptional

    Inclusive last observation period.

  • limitoptional

    Maximum number of periods returned. Defaults to 100. A page may contain fewer periods; follow next_cursor.

  • cursoroptional

    The next_cursor from the previous page.

  • versionoptional

    Accepts first_reported only: returns the first stored value per period with first_reported_at. Cannot be combined with as_of.

  • as_ofoptional

    Returns the series as published through the end of the specified UTC day. Cannot be combined with version.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code. Returned once per page, not for each observation.

  • startstring

    Present only when Narwhal moves the requested start to a later period. Earlier periods are not returned.

  • as_ofRFC 3339 timestamp

    When the source last updated the newest observation on this page, in whole seconds, UTC.

  • sourceobject

    Provenance for a statistic received through a distributor; see the latest-value operation.

  • currencyISO 4217 string

    The national currency for every value on the page.

  • not_seasonally_adjustedtrue

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

  • annualizedtrue

    Present, as true, only when the figures are annualized.

  • observationsarray

    Oldest-first accepted observations, one per period. Missing source values are omitted, never filled. A page can hold fewer observations than limit; follow next_cursor until it is null.

  • observations[].periodstring

    The official month or quarter represented by the observation.

  • observations[].first_reported_atRFC 3339 timestamp

    Present only with version=first_reported, this UTC timestamp records when Narwhal first stored the period (the latest time if its measures were stored separately); periods released before capture began show Narwhal's first capture.

  • observations[].valuedecimal string

    The current-price GDP value.

  • next_cursorstring or null

    Pass this unchanged as cursor to read the next page; null on the last page.


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 →
GETGDP growth history/v1/economics/{country}/gdp-growth/observations

Retrieve the current accepted gdp growth time series for one country.

Parameters

  • countryrequired

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

  • startoptional

    Inclusive first observation period.

  • endoptional

    Inclusive last observation period.

  • limitoptional

    Maximum number of periods returned. Defaults to 100. A page may contain fewer periods; follow next_cursor.

  • cursoroptional

    The next_cursor from the previous page.

  • versionoptional

    Accepts first_reported only: returns the first stored value per period with first_reported_at. Cannot be combined with as_of.

  • as_ofoptional

    Returns the series as published through the end of the specified UTC day. Cannot be combined with version.

Response fields

  • countrystring

    The requested uppercase ISO alpha-3 country code. Returned once per page, not for each observation.

  • startstring

    Present only when Narwhal moves the requested start to a later period. Earlier periods are not returned.

  • as_ofRFC 3339 timestamp

    When the source last updated the newest observation on this page, in whole seconds, UTC.

  • sourceobject

    Provenance for a statistic received through a distributor; see the latest-value operation.

  • not_seasonally_adjustedtrue

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

  • annualizedtrue

    Present, as true, only when the figures are annualized.

  • year_over_year_not_seasonally_adjustedtrue

    Present, as true, only for a country that mixes bases and whose year-over-year figure is not seasonally adjusted.

  • quarter_over_quarter_not_seasonally_adjustedtrue

    Present, as true, only for a country that mixes bases and whose quarter-over-quarter figure is not seasonally adjusted.

  • observationsarray

    Oldest-first accepted observations, one per period. Missing source values are omitted, never filled. A page can hold fewer observations than limit; follow next_cursor until it is null.

  • observations[].periodstring

    The official month or quarter represented by the observation.

  • observations[].first_reported_atRFC 3339 timestamp

    Present only with version=first_reported, this UTC timestamp records when Narwhal first stored the period (the latest time if its measures were stored separately); periods released before capture began show Narwhal's first capture.

  • observations[].year_over_yeardecimal string

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

  • observations[].quarter_over_quarterdecimal string

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

  • observations[].year_to_datedecimal string

    Real change for the year to date, in percent. Omitted when the publisher does not release it.

  • next_cursorstring or null

    Pass this unchanged as cursor to read the next page; null on the last page.


Full reference →

Use cases

Growth from GDP levels

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

Read the guide →

Build an economic calendar

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

Read the guide →

Get an alert before a release

Set a reminder with a calendar feed or a daily script.

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 36 countries

Sources

  • AustraliaAustralian Bureau of Statistics (ABS)
  • AustriaStatistics Austria, Eurostat
  • BelgiumStatbel, National Bank of Belgium, Eurostat
  • CanadaStatistics Canada
  • 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
  • FinlandStatistics Finland, Finnish Customs (Tulli)
Show all 36 sources
  • 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

Economic data API

Official indicators for prices, labour, output, trade, and rates.

Explore the API →

FAQ

Does live coverage include GDP growth?

Yes. Both GDP levels and GDP growth are live today.

Can I query a particular reporting period?

Yes. You can request an exact period or retrieve dated history.

Where does the output data come from?

The API publishes official statistics from national publishers, organized by country.