/v1/contests
Upcoming and past contests
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/codeforces-api/v1/contests" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/codeforces-api/v1/contests", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/codeforces-api/v1/contests");
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/codeforces-api/v1/contests",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"count": 2,
"phase": "BEFORE",
"total": 2,
"contests": [
{
"id": 2233,
"url": "https://codeforces.com/contest/2233",
"name": "Educational Codeforces Round 191 (Rated for Div. 2)",
"type": "ICPC",
"phase": "BEFORE",
"starts": "2026-06-09T14:35:00.000Z",
"duration_minutes": 120
},
{
"id": 2234,
"url": "https://codeforces.com/contest/2234",
"name": "Codeforces Round (Div. 2)",
"type": "CF",
"phase": "BEFORE",
"starts": "2026-06-07T14:35:00.000Z",
"duration_minutes": 135
}
]
},
"meta": {
"timestamp": "2026-06-01T16:23:51.873Z",
"request_id": "ee315534-f794-4948-ab93-85b1e2eed4a2"
},
"status": "ok",
"message": "Contests retrieved",
"success": true
}