/v1/country
One economy's GDP growth by sector with leading/lagging sector
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/gdpsector-api/v1/country" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gdpsector-api/v1/country", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gdpsector-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/gdpsector-api/v1/country",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"code": "DEU",
"name": "Germany",
"note": "One economy's real gross-value-added growth by sector (services, industry excluding construction, construction, agriculture), year-on-year and quarter-on-quarter, chain-linked volume, seasonally adjusted. leading_sector and lagging_sector flag which part of the economy is driving and dragging growth. Quarterly, cached a few hours.",
"source": "OECD Quarterly National Accounts (SDMX), gross value added by activity",
"quarter": "2026-Q1",
"sectors": {
"industry": {
"qoq": 0.7,
"yoy": 0.34
},
"services": {
"qoq": 0.04,
"yoy": 0.71
},
"agriculture": {
"qoq": -1.02,
"yoy": 0.37
},
"construction": {
"qoq": -0.6,
"yoy": -4.07
}
},
"is_aggregate": false,
"lagging_sector": {
"yoy": -4.07,
"sector": "Construction"
},
"leading_sector": {
"yoy": 0.71,
"sector": "Services"
}
},
"meta": {
"timestamp": "2026-06-16T07:43:01.069Z",
"request_id": "16885d75-2306-4c57-85ef-183e2859b7d8"
},
"status": "ok",
"message": "Country GDP by sector retrieved successfully",
"success": true
}