Naar de inhoud
GET /v1/country

One economy's exports and imports growth, year-on-year and quarter-on-quarter

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/trade-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/trade-api/v1/country" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/trade-api/v1/country", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/trade-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/trade-api/v1/country",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "code": "USA",
        "name": "United States",
        "note": "One economy's real exports and imports growth, year-on-year and quarter-on-quarter (chain-linked volume, seasonally adjusted). When exports grow faster than imports, net trade adds to GDP and tends to support the currency; the reverse drags. Quarterly, cached a few hours.",
        "source": "OECD Quarterly National Accounts (SDMX)",
        "exports": {
            "qoq": 3.13,
            "yoy": 4.19
        },
        "imports": {
            "qoq": 4.9,
            "yoy": -5.09
        },
        "quarter": "2026-Q1",
        "net_trade": "net trade improving — exports growing faster than imports (+9.28pp)",
        "is_aggregate": false
    },
    "meta": {
        "timestamp": "2026-06-12T19:37:13.675Z",
        "request_id": "05f8c15d-a1c1-4896-b1ae-87740b957f88"
    },
    "status": "ok",
    "message": "Country trade retrieved successfully",
    "success": true
}