Naar de inhoud
GET /v1/identify

Identify the opening from a move sequence

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/chessopenings-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "exact": false,
        "opening": {
            "eco": "B20",
            "pgn": "1. e4 c5",
            "ply": 2,
            "name": "Sicilian Defense",
            "moves": [
                "e4",
                "c5"
            ],
            "family": "Sicilian Defense",
            "volume": "B",
            "variation": null
        },
        "input_ply": 3,
        "matched_ply": 2
    },
    "meta": {
        "timestamp": "2026-05-31T09:34:54.905Z",
        "request_id": "4430efd6-380c-4014-ab15-5c3665121029"
    },
    "status": "ok",
    "message": "Opening identified",
    "success": true
}