Zum Inhalt springen
GET /v1/solve

Solve a maze

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/maze-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "path": [
            [
                0,
                0
            ],
            [
                0,
                1
            ],
            [
                1,
                1
            ],
            [
                1,
                2
            ],
            [
                0,
                2
            ],
            [
                0,
                3
            ],
            [
                0,
                4
            ],
            [
                1,
                4
            ],
            [
                2,
                4
            ],
            [
                2,
                5
            ],
            [
                2,
                6
            ],
            [
                3,
                6
            ],
            [
                3,
                7
            ],
            [
                2,
                7
            ],
            [
                2,
                8
            ],
            [
                3,
                8
            ],
            [
                3,
                9
            ],
            [
                4,
                9
            ],
            [
                5,
                9
            ],
            [
                5,
                8
            ],
            [
                5,
                7
            ],
            [
                4,
                7
            ],
            [
                4,
                6
            ],
            [
                5,
                6
            ],
            [
                5,
                5
            ],
            [
                6,
                5
            ],
            [
                6,
                4
            ],
            [
                6,
                3
            ],
            [
                7,
                3
            ],
            [
                8,
                3
            ],
            [
                8,
                2
            ],
            [
                9,
                2
            ],
            [
                9,
                3
            ],
            [
                9,
                4
            ],
            [
                8,
                4
            ],
            [
                8,
                5
            ],
            [
                8,
                6
            ],
            [
                8,
                7
            ],
            [
                8,
                8
            ],
            [
                9,
                8
            ],
            [
                9,
                9
            ]
        ],
        "seed": 42,
        "ascii": "+---+---+---+---+---+---+---+---+---+---+\n| S |                   |               |\n+   +---+   +---+---+   +   +---+---+   +\n| *   * |       |       |           |   |\n+---+   +   +   +---+---+---+   +---+   
…