/v1/country
One economy's real GDP growth, year-on-year and quarter-on-quarter
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}