Skip to content
GET /v1/country

One economy's real GDP growth, year-on-year and quarter-on-quarter

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/gdp-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/gdp-api/v1/country" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gdp-api/v1/country", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gdp-api/v1/country");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/gdp-api/v1/country",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "code": "USA",
        "name": "United States",
        "note": "One economy's real GDP growth, year-on-year and quarter-on-quarter (chain-linked volume, seasonally adjusted). A positive year-on-year change means output is above its level a year earlier; two consecutive negative quarter-on-quarter readings is the classic technical-recession marker. Quarterly, cached a few hours.",
        "source": "OECD Quarterly National Accounts (SDMX)",
        "quarter": "2026-Q1",
        "gdp_growth": {
            "qoq": 0.4,
            "yoy": 2.57,
            "reading": "growing"
        },
        "is_aggregate": false
    },
    "meta": {
        "timestamp": "2026-06-12T19:37:25.652Z",
        "request_id": "bbbb2498-d91e-4f3c-9baf-4676e49d5f3e"
    },
    "status": "ok",
    "message": "Country GDP growth retrieved successfully",
    "success": true
}