/v1/generate
Generate a puzzle
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/sudoku-api/v1/generate" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sudoku-api/v1/generate", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sudoku-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/sudoku-api/v1/generate",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"clues": 34,
"puzzle": "007000500000700800652800039069050200320070400400069305190000600073040000046080057",
"solution": "837692514914735862652814739769453281325178496481269375198527643573946128246381957",
"difficulty": "medium",
"puzzle_grid": [
[
0,
0,
7,
0,
0,
0,
5,
0,
0
],
[
0,
0,
0,
7,
0,
0,
8,
0,
0
],
[
6,
5,
2,
8,
0,
0,
0,
3,
9
],
[
0,
6,
9,
0,
5,
0,
2,
0,
0
],
[
3,
2,
0,
0,
7,
0,
4,
0,
0
],
[
4,
0,
0,
0,
6,
9,
3,
0,
5
],
[
1,
9,
0,
0,
0,
0,
6,
0,
0
],
[
0,
7,
3,
0,
4,
0,
0,
0,
0
],
[
0,
4,
6,
0,
8,
0,
0,
5,
7
]
],
"solution_grid": [
[
8,
3,
7,
6,
9,
2,
5,
1,
4
],
[
9,
1,
4,
7,
3,
5,
8,
6,
2
],
[
6,
5,
2,
8,
1,
4,
7,
3,
9
],
[
7,
6,
9,
4,
5,
3,
2,
8,
1
],
[
3,
2,
5,
…