Zum Inhalt springen
GET /v1/country

Country medal totals

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "country": {
            "noc": "USA",
            "total": {
                "gold": 1072,
                "games": 48,
                "total": 2681,
                "bronze": 750,
                "silver": 859
            },
            "summer": {
                "gold": 976,
                "games": 26,
                "total": 2399,
                "bronze": 666,
                "silver": 757
            },
            "winter": {
                "gold": 96,
                "games": 22,
                "total": 282,
                "bronze": 84,
                "silver": 102
            },
            "country": "United States"
        }
    },
    "meta": {
        "timestamp": "2026-06-09T03:03:47.898Z",
        "request_id": "320db0ba-72c7-42e0-9420-656cbec50e8c"
    },
    "status": "ok",
    "message": "Country retrieved successfully",
    "success": true
}