Ir al contenido
GET /v1/puzzle

Single puzzle by id

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/chesspuzzles-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "id": "00008",
        "fen": "r6k/pp2r2p/4Rp1Q/3p4/8/1N1P2R1/PqP2bPP/7K b - - 0 24",
        "url": "https://lichess.org/training/00008",
        "moves": [
            "f2g3",
            "e6e7",
            "b2b1",
            "b3c1",
            "b1c1",
            "h6c1"
        ],
        "rating": 1810,
        "themes": [
            "crushing",
            "hangingPiece",
            "long",
            "middlegame"
        ],
        "game_url": "https://lichess.org/787zsVup/black#48",
        "nb_plays": 9527,
        "popularity": 95,
        "opening_tags": [],
        "solver_color": "white"
    },
    "meta": {
        "timestamp": "2026-05-30T22:48:32.996Z",
        "request_id": "27969b81-abde-4da7-8d5a-44444478596a"
    },
    "status": "ok",
    "message": "Puzzle retrieved",
    "success": true
}