Gross Domestic Product API
Retrieve current-price national GDP for one quarter.
economics_get_gdp is available through REST and the economics_get_gdp MCP tool. Both return the same data shape and consume the same monthly quota.
Endpoint and request
GET /v1/economics/{country}/gdpcurl --request GET \
--url "https://api.narwhalapi.com/v1/economics/USA/gdp?period=2026-Q2" \
--header "Authorization: Bearer $NARWHAL_API_KEY"MCP uses tool economics_get_gdp with the corresponding arguments below.
Parameters
The accepted period format for this operation is YYYY-QN.
| Name | Required | Type | Meaning |
|---|---|---|---|
country | Yes | path · ISO alpha-3 | One supported uppercase country code: AUS, CAN, DEU, FRA, GBR, JPN, MYS, SGP, and USA. |
period | No | query · YYYY-QN | Omit it for the latest accepted complete release, or pass one exact period. |
Response
{
"country": "USA",
"period": "2026-Q2",
"value": "31000100000000",
"currency": "USD",
"price_basis": "current",
"seasonal_adjustment": "seasonally_adjusted",
"annualization": "annualized",
"released_on": "2026-07-30"
}| Field | Type | Required | Meaning |
|---|---|---|---|
country | string | Yes | The requested uppercase ISO alpha-3 country code. |
period | string | Yes | The official observation period returned. |
value | positive decimal string | Yes | The current-price GDP value. |
currency | ISO 4217 string | Yes | The national currency for the GDP value. |
price_basis | "current" | Yes | Confirms that the level is current-price GDP. |
seasonal_adjustment | enum | Yes | Whether the official series is seasonally adjusted. |
annualization | enum | Yes | Whether the official level is annualized. |
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 complete approved publication matches the request.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
Quarterly current-price national GDP is public for AUS, CAN, DEU, FRA, GBR, JPN, MYS, SGP, and USA.
Indonesia, regional routes, Commodities, and FX are not part of the public beta.
Return to all Economics operations.