/v1/meta
Service metadata
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/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/olympicmedals-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/olympicmedals-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"service": "olympicmedals-api",
"endpoints": {
"GET /v1/list": "List all countries (limit, offset).",
"GET /v1/meta": "This document.",
"GET /v1/rank": "Rank countries by a metric (by=gold|silver|bronze|total|summer_gold|winter_gold|…, order, limit).",
"GET /v1/search": "Search countries by name or NOC (q=).",
"GET /v1/country": "Country by name (name=, e.g. United States) or NOC code (noc=, e.g. USA)."
},
"total_gold": 5767,
"description": "All-time Olympic medal table (Summer + Winter) for every National Olympic Committee: Games attended and gold/silver/bronze/total, split Summer/Winter/Combined. Look up by name or NOC code, rank by any medal metric, or search. Distinct from rio2016-api. No key.",
"total_bronze": 6075,
"total_silver": 5729,
"total_countries": 145,
"rankable_metrics": [
"gold",
"silver",
"bronze",
"total",
"games",
"summer_gold",
"summer_total",
"winter_gold",
"winter_total"
]
},
"meta": {
"timestamp": "2026-06-09T03:03:48.245Z",
"request_id": "807c9997-73c1-4d2e-87bd-76506315494e"
},
"status": "ok",
"message": "Meta",
"success": true
}