Aller au contenu
GET /v1/submissions

A user's recent submissions (problem, verdict, language)

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/codeforces-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "count": 20,
        "handle": "tourist",
        "source": "Codeforces API (user.status)",
        "submissions": [
            {
                "id": 375842134,
                "when": "2026-05-23T17:04:27.000Z",
                "problem": {
                    "name": "Wowee Binary String",
                    "tags": [
                        "combinatorics",
                        "dp",
                        "strings"
                    ],
                    "index": "H",
                    "rating": 3200,
                    "contest_id": 2229
                },
                "time_ms": 218,
                "verdict": "OK",
                "language": "C++23 (GCC 14-64, msys2)",
                "memory_bytes": 35942400,
                "passed_tests": 22
            },
            {
                "id": 375841254,
                "when": "2026-05-23T17:00:24.000Z",
                "problem": {
                    "name": "Wowee Binary String",
                    "tags": [
                        "combinatorics",
                        "dp",
                        "strings"
                    ],
                    "index": "H",
                    "rating": 3200,
                    "contest_id": 2229
                },
                "time_ms": 46,
                "verdict": "WRONG_ANSWER",
                "language": "C++23 (GCC 14-64, msys2)",
                "memory_bytes": 0,
                "passed_tests": 4
            },
            {
                "id": 375839776,
                "when": "2026-05-23T16:53:24.000Z",
                "problem": {
                    "name": "Wowee Binary String",
                    "tags": [
                        "combinatorics",
                        "dp",
                        "strings"
                    ],
                    "index": "H",
                    "rating": 3200,
                    "contest_id": 2229
                },
                "time_ms": 46,
                "verdict": "WRONG_ANSWER",
                "language": "C++23 (GCC 14-64, msys2)",
                "memory_bytes": 0,
                "passed_tests": 2
            },
            {
                "id": 375814943,
                "when": "2026-05-23T15:30:11.000Z",
                "problem": {
                    "name": "Load Unbalancing",
                    "tags": [
                        "binary search",
                        "bitmasks",
                        "dp",
                        "greedy"
                    ],
                    "index": "F",
                    "rating": 2400,
                    "contest_id": 2229
                },
                "time_ms": 968,
                "verdict": "OK",
                "language": "C++23 (GCC 14-64, msys2)",
                "memory_bytes": 22220800,
                "passed_tests": 27
            },
            {
                "id": 375801087,
                "when": "2026-05-23T15:05:16.000Z",
              
…