OECD Annual GDP and National Accounts
oecd.economy.gdpFetch annual GDP and national accounts data for any OECD member country. Returns GDP at current USD exchange rates, gross operating surplus, compensation of employees, and other national accounts aggregates from the OECD National Accounts Main Aggregates database (NAMAIN10). Covers 38 OECD countries from the 1970s to the latest year. Data is sourced from official national statistics offices and harmonised to SNA 2008 standards. Each series includes the exact transaction code (e.g. B1GQ = GDP at market prices), sector, unit of measure (USD millions at exchange rates), and price base. Source: OECD SDMX API, CC BY 4.0, no auth required, unlimited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | ISO 3-letter OECD country code (e.g. USA, GBR, DEU, FRA, JPN, CAN, AUS, KOR, ITA, ESP). See OECD reference area codes for the full list of 38 member countries. | |
| end_period | No | End year for annual GDP data (e.g. "2024"). Defaults to latest available. | |
| max_series | No | Maximum number of time series to return (1–100, default 20). Each series is a unique combination of dimensions such as sector, measure, or adjustment type. | |
| start_period | No | Start year for annual GDP data (e.g. "2018"). Defaults to 5 years prior. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |