Vai al contenuto
GET /v1/athlete

Athlete by name or id

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/rio2016-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "athlete": {
            "id": "579416064",
            "sex": "male",
            "code": "JM",
            "gold": 3,
            "name": "Usain Bolt",
            "emoji": "🇯🇲",
            "sport": "athletics",
            "total": 3,
            "bronze": 0,
            "height": 1.96,
            "silver": 0,
            "weight": 95,
            "country": "Jamaica",
            "nationality": "JAM",
            "date_of_birth": "1986-08-21"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:04.074Z",
        "request_id": "771ac803-7a05-4f95-8829-313e141d1047"
    },
    "status": "ok",
    "message": "Athlete retrieved successfully",
    "success": true
}