Aller au contenu
GET /v1/user

Player profile

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/lichess-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/lichess-api/v1/user" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lichess-api/v1/user", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lichess-api/v1/user");
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/lichess-api/v1/user",
    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": {
        "user": {
            "id": "drnykterstein",
            "url": "https://lichess.org/@/DrNykterstein",
            "perfs": {
                "blitz": {
                    "rd": 158,
                    "games": 606,
                    "rating": 3153,
                    "progress": 37,
                    "provisional": true
                },
                "rapid": {
                    "rd": 150,
                    "games": 0,
                    "rating": 2500,
                    "progress": 0,
                    "provisional": true
                },
                "atomic": {
                    "rd": 258,
                    "games": 25,
                    "rating": 2160,
                    "progress": 85,
                    "provisional": true
                },
                "bullet": {
                    "rd": 75,
                    "games": 9583,
                    "rating": 3243,
                    "progress": -14,
                    "provisional": false
                },
                "chess960": {
                    "rd": 187,
                    "games": 129,
                    "rating": 2541,
                    "progress": -26,
                    "provisional": true
                },
                "classical": {
                    "rd": 150,
                    "games": 0,
                    "rating": 2500,
                    "progress": 0,
                    "provisional": true
                },
                "ultraBullet": {
                    "rd": 231,
                    "games": 92,
                    "rating": 2406,
                    "progress": -7,
                    "provisional": true
                },
                "correspondence": {
                    "rd": 500,
                    "games": 0,
                    "rating": 1500,
                    "progress": 0,
                    "provisional": true
                }
            },
            "title": "GM",
            "counts": {
                "all": 10450,
                "win": 7207,
                "draw": 834,
                "loss": 2409,
                "rated": 10435
            },
            "online": false,
            "patron": true,
            "seen_at": 1777141390010,
            "username": "DrNykterstein",
            "streaming": false,
            "created_at": 1544100290814,
            "play_time_seconds": 1169601
        }
    },
    "meta": {
        "timestamp": "2026-06-07T16:46:57.446Z",
        "request_id": "391e3129-3f4d-41b4-b869-76e608dd3fc8"
    },
    "status": "ok",
    "message": "User retrieved successfully",
    "success": true
}