Zum Inhalt springen
GET /v1/country

One economy's GDP growth by sector with leading/lagging sector

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/gdpsector-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}