/v1/country
Athletes of a country
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/rio2016-api/v1/country" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rio2016-api/v1/country", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rio2016-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/rio2016-api/v1/country",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"count": 50,
"total": 567,
"country": "USA",
"athletes": [
{
"id": "2538424",
"sex": "male",
"code": "US",
"gold": 0,
"name": "Andrew Evans",
"emoji": "🇺🇸",
"sport": "athletics",
"total": 0,
"bronze": 0,
"height": 1.99,
"silver": 0,
"weight": 113,
"country": "United States of America",
"nationality": "USA",
"date_of_birth": "1991-01-25"
},
{
"id": "2710032",
"sex": "female",
"code": "US",
"gold": 0,
"name": "Mikaela Joslin Mayer",
"emoji": "🇺🇸",
"sport": "boxing",
"total": 0,
"bronze": 0,
"height": 1.76,
"silver": 0,
"weight": null,
"country": "United States of America",
"nationality": "USA",
"date_of_birth": "1990-07-04"
},
{
"id": "8906492",
"sex": "male",
"code": "US",
"gold": 0,
"name": "Ben Kanute",
"emoji": "🇺🇸",
"sport": "triathlon",
"total": 0,
"bronze": 0,
"height": 1.83,
"silver": 0,
"weight": 70,
"country": "United States of America",
"nationality": "USA",
"date_of_birth": "1992-12-14"
},
{
"id": "9514544",
"sex": "female",
"code": "US",
"gold": 0,
"name": "April Ross",
"emoji": "🇺🇸",
"sport": "volleyball",
"total": 1,
"bronze": 1,
"height": 1.86,
"silver": 0,
"weight": 74,
"country": "United States of America",
"nationality": "USA",
"date_of_birth": "1982-06-20"
},
{
"id": "11238404",
"sex": "male",
"code": "US",
"gold": 1,
"name": "Carmelo Anthony",
"emoji": "🇺🇸",
"sport": "basketball",
"total": 1,
"bronze": 0,
"height": 2.03,
"silver": 0,
"weight": 109,
"country": "United States of America",
"nationality": "USA",
"date_of_birth": "1984-05-29"
},
{
"id": "13474372",
"sex": "male",
"code": "US",
"gold": 0,
…