/v1/generate
Generate a maze
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/maze-api/v1/generate" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/maze-api/v1/generate", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/maze-api/v1/generate");
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/generate",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"end": [
9,
9
],
"grid": [
[
11,
13,
1,
5,
5,
3,
9,
5,
5,
3
],
[
12,
3,
8,
3,
13,
6,
12,
1,
7,
10
],
[
9,
6,
10,
12,
5,
5,
5,
6,
9,
2
],
[
10,
13,
4,
3,
9,
3,
9,
5,
6,
10
],
[
12,
5,
3,
10,
10,
14,
10,
11,
9,
6
],
[
13,
3,
10,
12,
6,
9,
6,
10,
10,
11
],
[
9,
6,
12,
3,
9,
6,
9,
2,
10,
10
],
[
8,
3,
9,
6,
8,
3,
14,
10,
10,
10
],
[
10,
10,
12,
3,
14,
10,
9,
6,
12,
2
],
[
14,
12,
5,
4,
5,
6,
12,
5,
5,
6
]
],
"seed": 42,
"ascii": "+---+---+---+---+---+---+---+---+---+---+\n| S | | |\n+ +---+ +---+---+ + +---+---+ +\n| | | | | |\n+---+ + + +---+---+---+ +---+ +\n| | | | |\n+ +---+ +---+---+---+---+---+ + +\n| | | | | |\n+ +---+---+ + + + +---+---+ +\n| | | | | | | |\n+---+---+ + + +---+ + + +---+\n| | | | | | | |\n+---+ + +---+---+ +---+ + + +\n| | | | | | |\n+ +---+---+ + +---+ + + +
…