{
"type": "sudoku",
"seed": 42,
"difficulty": "hard",
"clues": 28,
"uniqueSolution": true,
"puzzle": [
[
0,
0,
4,
0,
0,
2,
0,
3,
1
],
[
1,
6,
0,
0,
0,
0,
9,
0,
2
],
[
0,
0,
0,
0,
0,
4,
0,
0,
0
],
[
9,
7,
3,
0,
0,
0,
0,
0,
0
],
[
2,
0,
0,
6,
0,
9,
0,
0,
7
],
[
0,
0,
0,
0,
0,
0,
3,
8,
9
],
[
0,
0,
0,
5,
0,
0,
0,
0,
0
],
[
4,
0,
9,
0,
0,
0,
0,
7,
8
],
[
7,
3,
0,
2,
0,
0,
5,
0,
0
]
],
"solution": [
[
5,
8,
4,
9,
6,
2,
7,
3,
1
],
[
1,
6,
7,
8,
5,
3,
9,
4,
2
],
[
3,
9,
2,
1,
7,
4,
8,
6,
5
],
[
9,
7,
3,
4,
8,
5,
1,
2,
6
],
[
2,
1,
8,
6,
3,
9,
4,
5,
7
],
[
6,
4,
5,
7,
2,
1,
3,
8,
9
],
[
8,
2,
1,
5,
4,
7,
6,
9,
3
],
[
4,
5,
9,
3,
1,
6,
2,
7,
8
],
[
7,
3,
6,
2,
9,
8,
5,
1,
4
]
],
"puzzleString": "..4..2.3116....9.2.....4...973......2..6.9..7......389...5.....4.9....7873.2..5..",
"solutionString": "584962731167853942392174865973485126218639457645721389821547693459316278736298514"
}
curl --location --request GET 'https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37394/sudoku+with+exactly+one+solution?difficulty=hard&seed=42&svg=false&format=json&answers=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"type": "sudoku-solve",
"valid": true,
"solvable": true,
"uniqueSolution": true,
"solutionCount": 1,
"clues": 30,
"conflicts": [],
"solution": [
[
5,
3,
4,
6,
7,
8,
9,
1,
2
],
[
6,
7,
2,
1,
9,
5,
3,
4,
8
],
[
1,
9,
8,
3,
4,
2,
5,
6,
7
],
[
8,
5,
9,
7,
6,
1,
4,
2,
3
],
[
4,
2,
6,
8,
5,
3,
7,
9,
1
],
[
7,
1,
3,
9,
2,
4,
8,
5,
6
],
[
9,
6,
1,
5,
3,
7,
2,
8,
4
],
[
2,
8,
7,
4,
1,
9,
6,
3,
5
],
[
3,
4,
5,
2,
8,
6,
1,
7,
9
]
],
"solutionString": "534678912672195348198342567859761423426853791713924856961537284287419635345286179",
"rating": {
"level": "easy",
"techniques": {
"naked_single": 30,
"full_house": 21
},
"solvedByLogic": true
}
}
curl --location --request GET 'https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37395/solve+a+sudoku+and+check+it+has+one+solution?grid=530070000600195000098000060800060003400803001700020006060000280000419005000080079&svg=false&format=json' --header 'Authorization: Bearer YOUR_API_KEY'
{
"type": "sudoku-hint",
"solved": false,
"uniqueSolution": true,
"mistakes": [],
"hint": {
"technique": "hidden_single",
"name": "Hidden single",
"level": "medium",
"placement": {
"row": 0,
"col": 5,
"cell": "R1C6",
"digit": 8
},
"unit": {
"kind": "box",
"index": 1,
"name": "box 2"
},
"explanation": "In box 2, 8 fits only in R1C6."
},
"steps": [
{
"technique": "hidden_single",
"name": "Hidden single",
"level": "medium",
"placement": {
"row": 0,
"col": 5,
"cell": "R1C6",
"digit": 8
},
"unit": {
"kind": "box",
"index": 1,
"name": "box 2"
},
"explanation": "In box 2, 8 fits only in R1C6."
}
],
"stuck": false
}
curl --location --request GET 'https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37396/next+logical+step+named+and+explained?grid=530070000600195000098000060800060003400803001700020006060000280000419005000080079&candidates=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"type": "nonogram",
"seed": 42,
"width": 10,
"height": 8,
"density": "medium",
"uniqueSolution": true,
"lineSolvable": true,
"linePasses": 4,
"rows": [
[
3,
1
],
[
1,
4,
2
],
[
7
],
[
10
],
[
2,
5
],
[
3,
4
],
[
3,
1
],
[
4
]
],
"cols": [
[
1,
5
],
[
5
],
[
1,
3
],
[
3,
1
],
[
4
],
[
5
],
[
6
],
[
4
],
[
5
],
[
7
]
],
"solution": [
[
0,
0,
0,
0,
1,
1,
1,
0,
0,
1
],
[
1,
0,
0,
1,
1,
1,
1,
0,
1,
1
],
[
0,
0,
0,
1,
1,
1,
1,
1,
1,
1
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
[
1,
1,
0,
0,
0,
1,
1,
1,
1,
1
],
[
1,
1,
1,
0,
0,
0,
1,
1,
1,
1
],
[
1,
1,
1,
0,
0,
0,
0,
0,
0,
1
],
[
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
]
],
"solutionStrings": [
"....###..#",
"#..####.##",
"...#######",
"##########",
"##...#####",
"###...####",
"###......#",
"####......"
],
"filled": 50
}
curl --location --request GET 'https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37397/nonogram+picture+logic+with+exactly+one+solution?w=10&h=8&density=medium&seed=42&svg=false&format=json&answers=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"type": "kakuro",
"seed": 42,
"size": "small",
"width": 7,
"height": 7,
"uniqueSolution": true,
"layout": [
"#######",
"###...#",
"##....#",
"#...###",
"#..####",
"#...###",
"##..###"
],
"whiteSquares": 17,
"clues": [
{
"row": 0,
"col": 3,
"across": null,
"down": 6
},
{
"row": 0,
"col": 4,
"across": null,
"down": 4
},
{
"row": 0,
"col": 5,
"across": null,
"down": 5
},
{
"row": 1,
"col": 2,
"across": 8,
"down": 33
},
{
"row": 2,
"col": 1,
"across": 11,
"down": 13
},
{
"row": 3,
"col": 0,
"across": 16,
"down": null
},
{
"row": 4,
"col": 0,
"across": 14,
"down": null
},
{
"row": 4,
"col": 3,
"across": null,
"down": 11
},
{
"row": 5,
"col": 0,
"across": 7,
"down": null
},
{
"row": 6,
"col": 1,
"across": 16,
"down": null
}
],
"runs": [
{
"direction": "across",
"sum": 8,
"length": 3,
"clue": {
"row": 1,
"col": 2
},
"cells": [
[
1,
3
],
[
1,
4
],
[
1,
5
]
]
},
{
"direction": "across",
"sum": 11,
"length": 4,
"clue": {
"row": 2,
"col": 1
},
"cells": [
[
2,
2
],
[
2,
3
],
[
2,
4
],
[
2,
5
]
]
},
{
"direction": "across",
"sum": 16,
"length": 3,
"clue": {
"row": 3,
"col": 0
},
"cells": [
[
3,
1
],
[
3,
2
],
[
3,
3
]
]
},
{
"direction": "across",
"sum": 14,
"length": 2,
"clue": {
"row": 4,
"col": 0
},
"cells": [
[
4,
1
],
[
4,
2
]
]
},
{
"direction": "across",
"sum": 7,
"length": 3,
"clue": {
"row": 5,
"col": 0
},
"cells": [
[
5,
1
],
[
5,
2
],
[
5,
3
]
]
},
{
"direction": "across",
"sum": 16,
"length": 2,
"clue": {
"row": 6,
"col": 1
},
"cells": [
[
6,
2
],
[
6,
3
]
]
},
{
"direction": "down",
"sum": 13,
"length": 3,
"clue": {
"row": 2,
"col": 1
},
"cells": [
[
3,
1
],
[
4,
1
],
[
5,
1
]
]
},
{
"direction": "down",
"sum": 33,
"length": 5,
"clue": {
"row": 1,
"col": 2
},
"cells": [
[
2,
2
],
[
3,
2
],
[
4,
2
],
[
5,
2
],
[
6,
2
]
]
},
{
"direction": "down",
"sum": 6,
"length": 3,
"clue": {
"row": 0,
"col": 3
},
"cells": [
[
1,
3
],
[
2,
3
],
[
3,
3
]
]
},
{
"direction": "down",
"sum": 11,
"length": 2,
"clue": {
"row": 4,
"col": 3
},
"cells": [
[
5,
3
],
[
6,
3
]
]
},
{
"direction": "down",
"sum": 4,
"length": 2,
"clue": {
"row": 0,
"col": 4
},
"cells": [
[
1,
4
],
[
2,
4
]
]
},
{
"direction": "down",
"sum": 5,
"length": 2,
"clue": {
"row": 0,
"col": 5
},
"cells": [
[
1,
5
],
[
2,
5
]
]
}
],
"solution": [
[
0,
0,
0,
0,
0,
0,
0
],
[
0,
0,
0,
3,
1,
4,
0
],
[
0,
0,
5,
2,
3,
1,
0
],
[
0,
7,
8,
1,
0,
0,
0
],
[
0,
5,
9,
0,
0,
0,
0
],
[
0,
1,
4,
2,
0,
0,
0
],
[
0,
0,
7,
9,
0,
0,
0
]
]
}
curl --location --request GET 'https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37398/kakuro+sum+cross+with+exactly+one+solution?size=small&seed=42&svg=false&format=json&answers=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"type": "cages",
"seed": 42,
"size": 4,
"ops": "all",
"uniqueSolution": true,
"givens": 2,
"cages": [
{
"cells": [
[
0,
0
],
[
0,
1
]
],
"operation": "/",
"target": 4,
"label": "4÷"
},
{
"cells": [
[
0,
2
],
[
1,
0
],
[
1,
1
],
[
1,
2
]
],
"operation": "*",
"target": 24,
"label": "24×"
},
{
"cells": [
[
0,
3
],
[
1,
3
]
],
"operation": "+",
"target": 5,
"label": "5+"
},
{
"cells": [
[
2,
0
],
[
2,
1
]
],
"operation": "*",
"target": 12,
"label": "12×"
},
{
"cells": [
[
2,
2
],
[
2,
3
]
],
"operation": "/",
"target": 2,
"label": "2÷"
},
{
"cells": [
[
3,
0
]
],
"operation": "=",
"target": 3,
"label": "3"
},
{
"cells": [
[
3,
1
]
],
"operation": "=",
"target": 2,
"label": "2"
},
{
"cells": [
[
3,
2
],
[
3,
3
]
],
"operation": "-",
"target": 3,
"label": "3−"
}
],
"solution": [
[
1,
4,
3,
2
],
[
2,
1,
4,
3
],
[
4,
3,
2,
1
],
[
3,
2,
1,
4
]
]
}
curl --location --request GET 'https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37399/math+cage+puzzle+latin+square+with+arithmetic+cages?size=4&ops=all&seed=42&svg=false&format=json&answers=false' --header 'Authorization: Bearer YOUR_API_KEY'
{
"type": "maze",
"seed": 42,
"width": 6,
"height": 5,
"entrance": {
"row": 0,
"col": 0,
"side": "top"
},
"exit": {
"row": 4,
"col": 5,
"side": "bottom"
},
"wallBits": {
"top": 1,
"right": 2,
"bottom": 4,
"left": 8
},
"cells": [
[
12,
3,
13,
1,
3,
11
],
[
11,
12,
5,
6,
12,
2
],
[
8,
7,
9,
1,
3,
10
],
[
8,
3,
10,
10,
14,
10
],
[
14,
12,
6,
12,
5,
2
]
],
"solution": [
[
0,
0
],
[
0,
1
],
[
1,
1
],
[
1,
2
],
[
1,
3
],
[
0,
3
],
[
0,
4
],
[
1,
4
],
[
1,
5
],
[
2,
5
],
[
3,
5
],
[
4,
5
]
]
}
curl --location --request GET 'https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37400/perfect+maze+with+one+solution+path?w=6&h=5&seed=42&svg=false&format=json&answers=false&markers=true' --header 'Authorization: Bearer YOUR_API_KEY'
{
"wordsearch": [
{
"id": "in-the-garden",
"name": "In the Garden",
"language": "en",
"words": 18
},
{
"id": "in-the-kitchen",
"name": "In the Kitchen",
"language": "en",
"words": 18
},
{
"id": "baking-day",
"name": "Baking Day",
"language": "en",
"words": 18
},
{
"id": "breakfast-table",
"name": "Breakfast Table",
"language": "en",
"words": 18
},
{
"id": "at-the-beach",
"name": "At the Beach",
"language": "en",
"words": 18
}
],
"crossword": [
{
"id": "in-the-garden",
"name": "In the Garden",
"language": "en",
"entries": 16
},
{
"id": "in-the-kitchen",
"name": "In the Kitchen",
"language": "en",
"entries": 17
},
{
"id": "baking-day",
"name": "Baking Day",
"language": "en",
"entries": 16
},
{
"id": "breakfast-table",
"name": "Breakfast Table",
"language": "en",
"entries": 15
},
{
"id": "at-the-beach",
"name": "At the Beach",
"language": "en",
"entries": 13
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37401/built-in+themes+our+own+word+lists' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Sudoku and Maze Generator API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Generate sudoku puzzles at four difficulty levels and printable mazes as JSON or SVG, seeded and checked solvable, plus ready-made word themes.
Each endpoint returns JSON data specific to the puzzle type requested. For example, the Sudoku endpoint provides a grid with clues and a unique solution, while the Nonogram endpoint returns row and column clues along with a solvable picture.
Key fields vary by endpoint but generally include "type," "uniqueSolution," "clues," and the puzzle grid or clues. For instance, the Sudoku response includes "difficulty" and "puzzle," while the Kakuro response includes "layout" and "clues."
Parameters vary by endpoint. For Sudoku, you can specify "difficulty" (easy, medium, hard) and "seed" for reproducibility. The Nonogram endpoint allows you to set "density" (low, medium, high) to influence puzzle complexity.
Response data is structured in a JSON format with nested objects and arrays. For example, the Sudoku response includes an array for the puzzle grid and an object for metadata like "seed" and "difficulty," making it easy to parse and utilize.
Typical use cases include generating puzzles for games, educational tools, or recreational activities. Developers can integrate the API to create interactive puzzle applications or websites that offer users a variety of logic puzzles.
Data accuracy is ensured through exhaustive solving algorithms that check for uniqueness and solvability before returning puzzles. Each endpoint validates the generated puzzles to confirm they meet the specified criteria.
Users can expect consistent data patterns, such as a grid format for puzzles and structured clues for Nonograms and Kakuro. Each puzzle type has a defined layout, making it straightforward to implement in applications.
Users can utilize the returned data by parsing the JSON response to display puzzles in their applications. For example, the Sudoku grid can be rendered in a UI, while clues from Kakuro can guide users in solving the puzzle.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund