Merchandise trade API
Retrieve exports, imports, and the exact merchandise-trade balance for one period.
economics_get_trade is available through REST and the economics_get_trade MCP tool. Both return the same data shape and consume the same monthly quota.
Endpoint and request
GET /v1/economics/{country}/tradecurl --request GET \
--url "https://api.narwhalapi.com/v1/economics/USA/trade?period=2026-06" \
--header "Authorization: Bearer $NARWHAL_API_KEY"MCP uses tool economics_get_trade with the corresponding arguments below.
Parameters
The accepted period format for this operation is YYYY or YYYY-MM.
| Name | Required | Type | Meaning |
|---|---|---|---|
country | Yes | path · ISO alpha-3 | One supported uppercase country code; see this operation’s coverage list. |
period | No | query · YYYY or YYYY-MM | Omit it for the latest accepted complete release, or pass one exact period. |
version_id | No | query · UUID | Optional immutable publication version. Use `resource_version` from a `dataset.published` or `dataset.revised` event; omit to read the current admitted indicator. |
Response
{
"country": "USA",
"period": "2026-06",
"exports": "189000000000",
"imports": "275000000000",
"balance": "-86000000000",
"currency": "USD",
"coverage": "merchandise",
"released_on": "2026-08-04"
}| Field | Type | Required | Meaning |
|---|---|---|---|
country | string | Yes | The requested uppercase ISO alpha-3 country code. |
period | string | Yes | The official observation period returned. |
exports | non-negative decimal string | Yes | Total merchandise exports. |
imports | non-negative decimal string | Yes | Total merchandise imports. |
balance | decimal string | Yes | Exact exports minus imports; it may be negative. |
currency | ISO 4217 string | Yes | The currency for all three monetary values. |
coverage | "merchandise" | Yes | Confirms that services trade is not included. |
released_on | date | Yes | The official publication date, not Narwhal's retrieval time. |
Errors and quota
400 invalid_query— the country, period, or filter format is invalid.401 invalid_api_key— the Bearer key is missing or rejected.404 series_not_found— no approved observation matches the request.429 rate_limit_exceeded— the network or account short-window limit was reached; retry afterRetry-After.429 quota_exhausted— the account has reached its monthly allowance.503 economics_unavailable— Narwhal cannot safely serve an accepted publication.
Only a successful data response consumes quota. See all errors, headers, and retry rules.
Freshness
Omitting period returns Narwhal's latest stored accepted release. The API call reads Narwhal's database; it does not call the official publisher live.
released_on is the official publication date.
Read how source checks, validation, stored releases, and failed checks work.
Current public-beta coverage
35 Countries
AUS, AUT, BEL, CAN, CHL, COL, CZE, DEU, DNK, ESP, EST, FIN, FRA, GBR, HRV, IRL, ITA, JPN, LTU, LUX, LVA, MEX, MYS, NLD, NOR, NZL, PAK, PHL, POL, PRT, SAU, SGP, SVN, SWE, USA
National merchandise totals follow the country list below. Services trade is not included.
Indonesia and regional Economics routes are not public. Daily FX is available through the FX API.
Return to all Economics operations.
Docs