Skip to content
GET /v1/puzzle

Single puzzle by id

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/chesspuzzles-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

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