/v1/list
List all countries
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/olympicmedals-api/v1/list" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/olympicmedals-api/v1/list", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/olympicmedals-api/v1/list");
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/list",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"count": 50,
"total": 145,
"countries": [
{
"noc": "AFG",
"total": {
"gold": 0,
"games": 13,
"total": 2,
"bronze": 2,
"silver": 0
},
"summer": {
"gold": 0,
"games": 13,
"total": 2,
"bronze": 2,
"silver": 0
},
"winter": {
"gold": 0,
"games": 0,
"total": 0,
"bronze": 0,
"silver": 0
},
"country": "Afghanistan"
},
{
"noc": "ALG",
"total": {
"gold": 5,
"games": 15,
"total": 15,
"bronze": 8,
"silver": 2
},
"summer": {
"gold": 5,
"games": 12,
"total": 15,
"bronze": 8,
"silver": 2
},
"winter": {
"gold": 0,
"games": 3,
"total": 0,
"bronze": 0,
"silver": 0
},
"country": "Algeria"
},
{
"noc": "ARG",
"total": {
"gold": 18,
"games": 41,
"total": 70,
"bronze": 28,
"silver": 24
},
"summer": {
"gold": 18,
"games": 23,
"total": 70,
"bronze": 28,
"silver": 24
},
"winter": {
"gold": 0,
"games": 18,
"total": 0,
"bronze": 0,
"silver": 0
},
"country": "Argentina"
},
{
"noc": "ARM",
"total": {
"gold": 1,
"games": 11,
"total": 12,
"bronze": 9,
"silver": 2
},
"summer": {
"gold": 1,
"games": 5,
"total": 12,
"bronze": 9,
"silver": 2
},
"winter": {
"gold": 0,
"games": 6,
"total": 0,
"bronze": 0,
"silver": 0
},
"country": "Armenia"
},
{
…