Skip to content
GET /v1/solve

Solve a maze

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/maze-api

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

Get an API key

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

Example response

A real response from this endpoint, captured by the latest 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+---+   +   +   +---+---+---+   +---+   
…