Zum Inhalt springen
GET /v1/contests

Upcoming and past contests

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/codeforces-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "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
}