---
title: "International trade data API | Narwhal API"
description: "Query official merchandise trade statistics by country through REST or MCP. Retrieve the latest accepted value, an exact period or dated history."
url: "https://narwhalapi.com/api/economics/international-trade"
---

All APIs

# International trade data API

Query official merchandise trade statistics by country through REST or MCP. Retrieve the latest accepted value, an exact period or dated history.

[Get a free API key](https://narwhalapi.com/signup)
[Read the docs →](https://narwhalapi.com/docs/api/economics.md)

## First request

### Get the latest value

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

## Endpoints

GET Merchandise trade`/v1/economics/{country}/trade`

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

#### Parameters

- `country` required One supported uppercase country code; see this operation’s coverage list.
- `period` optional Omit it for the latest accepted complete release, or pass one exact period.
- `version_id` optional Optional immutable publication version. Use resource_version from a dataset.published or dataset.revised event; omit to read the current admitted indicator.

#### Response fields

- `country` string The requested uppercase ISO alpha-3 country code.
- `period` string The official observation period returned.
- `exports` non-negative decimal string Total merchandise exports.
- `imports` non-negative decimal string Total merchandise imports.
- `balance` decimal string Exact exports minus imports; it may be negative.
- `currency` ISO 4217 string The currency for all three monetary values.
- `seasonal_adjustment` string or null Whether the figure is seasonally adjusted, as the publisher states it: seasonally_adjusted, not_seasonally_adjusted, calendar_adjusted or trend. null means the publisher does not say. Never read null as adjusted.
- `scope` string What the totals cover. goods is trade in goods only, so services are not included. A headline figure that adds services is a different series and is not served here.
- `not_seasonally_adjusted` true Present, as true, only when the figures are the original series, not seasonally adjusted. Absent means the figures are seasonally adjusted, or yearly World Bank figures, which have no seasonal adjustment.
- `released_on` date The official publication date, not Narwhal's retrieval time.
- `source` object Who published the figure: the statistics office or central bank, for example {"publisher": "Office for National Statistics"}. Where the data reaches us through another body, distributor names that body too. If we cannot tell who published a figure, source is left out.

---

[Full reference →](https://narwhalapi.com/docs/api/economics/trade.md)

GET Merchandise trade history`/v1/economics/{country}/trade/observations`

Retrieve the current accepted merchandise trade time series for one country.

#### Parameters

- `country` required One supported uppercase country code; see this operation’s coverage list.
- `start` optional Inclusive first observation period. A year in YYYY format works only for countries served from World Bank annual data. A national series rejects it with 400 invalid_query.
- `end` optional Inclusive last observation period. A year in YYYY format works only for countries served from World Bank annual data. A national series rejects it with 400 invalid_query.
- `limit` optional Maximum number of periods returned. Defaults to 100. A page may contain fewer periods; follow next_cursor.
- `cursor` optional The next_cursor from the previous page.
- `version` optional Accepts first_reported only: returns the first stored value per period with first_reported_at. Cannot be combined with as_of.
- `as_of` optional Returns the series as published through the end of the specified UTC day. Cannot be combined with version.

#### Response fields

- `country` string The requested uppercase ISO alpha-3 country code. Returned once per page, not for each observation.
- `start` string Present only when Narwhal moves the requested start to a later period. Earlier periods are not returned.
- `as_of` RFC 3339 timestamp When the source last updated the newest observation on this page, in whole seconds, UTC.
- `source` object Who published the figure: the statistics office or central bank, for example {"publisher": "Office for National Statistics"}. Where the data reaches us through another body, distributor names that body too. If we cannot tell who published a figure, source is left out.
- `frequency` string Present, as annual, only for yearly World Bank history. Periods are then years in YYYY format.
- `seasonal_adjustment` string or null Whether the figure is seasonally adjusted, as the publisher states it: seasonally_adjusted, not_seasonally_adjusted, calendar_adjusted or trend. null means the publisher does not say. Never read null as adjusted.
- `scope` string What the totals cover. goods is trade in goods only, so services are not included. A headline figure that adds services is a different series and is not served here.
- `currency` ISO 4217 string The currency for every value on the page.
- `not_seasonally_adjusted` true Present, as true, only when the figures are the original series, not seasonally adjusted. Absent means the figures are seasonally adjusted, or yearly World Bank figures, which have no seasonal adjustment.
- `observations` array 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[].period` string The official month, quarter or year represented by the observation.
- `observations[].first_reported_at` RFC 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[].exports` decimal string Merchandise exports in the period. Omitted when no value is available for the period.
- `observations[].imports` decimal string Merchandise imports in the period. Omitted when no value is available for the period.
- `next_cursor` string or null Pass this unchanged as cursor to read the next page; null on the last page.

---

[Full reference →](https://narwhalapi.com/docs/api/economics/trade-history.md)

## Use cases

### Build an economic calendar

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

[Read the guide →](https://narwhalapi.com/how-to/build-an-economic-calendar.md)

### Get an alert before a release

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

[Read the guide →](https://narwhalapi.com/how-to/get-an-alert-before-an-economic-release.md)

### Backfill history

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

[Read the guide →](https://narwhalapi.com/how-to/backfill-historical-data.md)

## Coverage

### Indicators

- [Trade balance](https://narwhalapi.com/economics/trade-balance.md)
- [Exports](https://narwhalapi.com/economics/exports.md)
- [Imports](https://narwhalapi.com/economics/imports.md)

### Countries

- [Australia](https://narwhalapi.com/economics/australia.md)
- [Austria](https://narwhalapi.com/economics/austria.md)
- [Belgium](https://narwhalapi.com/economics/belgium.md)
- [Brazil](https://narwhalapi.com/economics/brazil.md)
- [Canada](https://narwhalapi.com/economics/canada.md)
- [Chile](https://narwhalapi.com/economics/chile.md)
- [China](https://narwhalapi.com/economics/china.md)
- [Colombia](https://narwhalapi.com/economics/colombia.md)
- [Czechia](https://narwhalapi.com/economics/czechia.md)
- [Germany](https://narwhalapi.com/economics/germany.md)
- [Denmark](https://narwhalapi.com/economics/denmark.md)
- [Spain](https://narwhalapi.com/economics/spain.md)

Show all 39 countries

- [Estonia](https://narwhalapi.com/economics/estonia.md)
- [Finland](https://narwhalapi.com/economics/finland.md)
- [France](https://narwhalapi.com/economics/france.md)
- [United Kingdom](https://narwhalapi.com/economics/united-kingdom.md)
- [Croatia](https://narwhalapi.com/economics/croatia.md)
- [Indonesia](https://narwhalapi.com/economics/indonesia.md)
- [Ireland](https://narwhalapi.com/economics/ireland.md)
- [Italy](https://narwhalapi.com/economics/italy.md)
- [Japan](https://narwhalapi.com/economics/japan.md)
- [South Korea](https://narwhalapi.com/economics/south-korea.md)
- [Lithuania](https://narwhalapi.com/economics/lithuania.md)
- [Luxembourg](https://narwhalapi.com/economics/luxembourg.md)
- [Latvia](https://narwhalapi.com/economics/latvia.md)
- [Mexico](https://narwhalapi.com/economics/mexico.md)
- [Malaysia](https://narwhalapi.com/economics/malaysia.md)
- [Netherlands](https://narwhalapi.com/economics/netherlands.md)
- [Norway](https://narwhalapi.com/economics/norway.md)
- [New Zealand](https://narwhalapi.com/economics/new-zealand.md)
- [Pakistan](https://narwhalapi.com/economics/pakistan.md)
- [Philippines](https://narwhalapi.com/economics/philippines.md)
- [Poland](https://narwhalapi.com/economics/poland.md)
- [Portugal](https://narwhalapi.com/economics/portugal.md)
- [Saudi Arabia](https://narwhalapi.com/economics/saudi-arabia.md)
- [Singapore](https://narwhalapi.com/economics/singapore.md)
- [Slovenia](https://narwhalapi.com/economics/slovenia.md)
- [Sweden](https://narwhalapi.com/economics/sweden.md)
- [United States](https://narwhalapi.com/economics/united-states.md)

## Sources

- Australia Australian Bureau of Statistics (ABS)
- Austria Statistics Austria, Eurostat
- Belgium Statbel, National Bank of Belgium, Eurostat
- Brazil Brazilian Institute of Geography and Statistics (IBGE), Secretariat of Foreign Trade (SECEX)
- Canada Statistics Canada
- Chile Central Bank of Chile (BCCh), National Statistics Institute of Chile (INE)
- China National Bureau of Statistics of China, General Administration of Customs of China
- Colombia National Administrative Department of Statistics (DANE)
- Czechia Czech Statistical Office (ČSÚ)
- Germany Federal Statistical Office of Germany (Destatis)
- Denmark Statistics Denmark, Eurostat
- Spain National Statistics Institute of Spain (INE), Spanish Tax Agency (AEAT)

Show all 39 sources

- Estonia Statistics Estonia
- Finland Statistics Finland, Finnish Customs (Tulli)
- France National Institute of Statistics and Economic Studies (INSEE), French Customs
- United Kingdom Office for National Statistics (ONS)
- Croatia Croatian Bureau of Statistics (CBS)
- Indonesia Statistics Indonesia (BPS)
- Ireland Central Statistics Office (CSO)
- Italy Italian National Institute of Statistics (Istat), Eurostat
- Japan Statistics Bureau of Japan, Cabinet Office of Japan, Japan Customs
- South Korea Bank of Korea, Statistics Korea
- Lithuania State Data Agency of Lithuania
- Luxembourg STATEC, Eurostat
- Latvia Central Statistical Bureau of Latvia (CSB)
- Mexico INEGI
- Malaysia Department of Statistics Malaysia (DOSM)
- Netherlands Statistics Netherlands (CBS)
- Norway Statistics Norway (SSB)
- New Zealand Stats NZ
- Pakistan Pakistan Bureau of Statistics (PBS)
- Philippines Philippine Statistics Authority (PSA)
- Poland Statistics Poland, Eurostat
- Portugal Statistics Portugal (INE)
- Saudi Arabia General Authority for Statistics (GASTAT)
- Singapore Singapore Department of Statistics (SingStat), Singapore government open-data publications
- Slovenia Statistical Office of the Republic of Slovenia (SURS)
- Sweden Statistics Sweden (SCB)
- United States Bureau 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 →](https://narwhalapi.com/api/economics.md)

### Economic calendar API

Release schedules, status, and publication versions.

[Explore the API →](https://narwhalapi.com/api/economic-calendar.md)

### Methodology

How releases are checked and revised.

[Read the methodology →](https://narwhalapi.com/methodology/economics.md)

## FAQ

What kind of trade does this cover?

This kind covers official merchandise trade statistics from national publishers.

Can I request trade data for an exact period?

Yes. The API supports exact-period requests, dated history and the latest accepted value.

Can I access trade data through MCP?

Yes. Trade data is available through MCP and REST using the same API key.

## Start with a free key

Free $10 credits every month, no card.Free $10 credits a month, no card.

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