Ir al contenido
GET /v1/medals

Athletes ranked by medal haul

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/rio2016-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "basis": "Rio 2016 medals (gold, then silver, then bronze)",
        "count": 10,
        "ranking": [
            {
                "id": "491565031",
                "sex": "male",
                "code": "US",
                "gold": 5,
                "name": "Michael Phelps",
                "rank": 1,
                "emoji": "🇺🇸",
                "sport": "aquatics",
                "total": 6,
                "bronze": 0,
                "height": 1.94,
                "silver": 1,
                "weight": 90,
                "country": "United States of America",
                "nationality": "USA",
                "date_of_birth": "1985-06-30"
            },
            {
                "id": "960103057",
                "sex": "female",
                "code": "US",
                "gold": 4,
                "name": "Katie Ledecky",
                "rank": 2,
                "emoji": "🇺🇸",
                "sport": "aquatics",
                "total": 5,
                "bronze": 0,
                "height": 1.83,
                "silver": 1,
                "weight": 72,
                "country": "United States of America",
                "nationality": "USA",
                "date_of_birth": "1997-03-17"
            },
            {
                "id": "770111957",
                "sex": "female",
                "code": "US",
                "gold": 4,
                "name": "Simone Biles",
                "rank": 3,
                "emoji": "🇺🇸",
                "sport": "gymnastics",
                "total": 5,
                "bronze": 1,
                "height": 1.45,
                "silver": 0,
                "weight": 47,
                "country": "United States of America",
                "nationality": "USA",
                "date_of_birth": "1997-03-14"
            },
            {
                "id": "643664378",
                "sex": "female",
                "code": "HU",
                "gold": 3,
                "name": "Katinka Hosszu",
                "rank": 4,
                "emoji": "🇭🇺",
                "sport": "aquatics",
                "total": 4,
                "bronze": 0,
                "height": 1.75,
                "silver": 1,
                "weight": 68,
                "country": "Hungary",
                "nationality": "HUN",
                "date_of_birth": "1989-05-03"
            },
            {
                "id": "237391684",
                "sex": "male",
                "code": "US",
                "gold": 3,
                "name": "Ryan Murphy",
                "rank": 5,
                "emoji": "🇺🇸",
                "sport": "aquatics",
                "total": 3,
                "bronze": 0,
                "height": 1.91,
                "silver": 0,
                "weight": 90,
                "country": "United States of America",
                "nationality": "USA",
                "date_of_birth": "1995-07-02"
            },
        
…