{
"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'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए सुडोकू और भूलभुलैया जनरेटर API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें।
प्रत्येक एंडपॉइंट अनुरोधित पहेली प्रकार के लिए विशिष्ट JSON डेटा लौटाता है उदाहरण के लिए सुदोकू एंडपॉइंट सुरागों और एक अद्वितीय समाधान के साथ एक ग्रिड प्रदान करता है जबकि नॉनोग्राम एंडपॉइंट पंक्ति और स्तंभ के सुरागों के साथ एक हल करने योग्य चित्र लौटाता है
कुंजी क्षेत्र प्रत्येक एंडपॉइंट के अनुसार भिन्न होते हैं लेकिन सामान्यत: "प्रकार", "विशिष्ट समाधान", "संकेत" और पहेली ग्रिड या संकेत शामिल होते हैं उदाहरण के लिए सुदोकु प्रतिक्रिया में "कठिनाई" और "पहेली" शामिल होती है जबकि ककुरो प्रतिक्रिया में "लेआउट" और "संकेत" शामिल होते हैं
पैरामीटर अंत बिंदु के अनुसार भिन्न होते हैं सुदोकू के लिए आप "कठिनाई" (सरल, मध्यम, कठिन) और पुनरुत्पादकता के लिए "बीज" निर्दिष्ट कर सकते हैं नोनोग्राम अंत बिंदु आपको पहेली की जटिलता को प्रभावित करने के लिए "घनत्व" (कम, मध्यम, अधिक) निर्धारित करने की अनुमति देता है
प्रतिक्रिया डेटा एक JSON प्रारूप में संरचित होता है जिसमें नेस्टेड ऑब्जेक्ट्स और एरे होते हैं उदाहरण के लिए सुडोकू प्रतिक्रिया में पहेली ग्रिड के लिए एक एरे और "बीज" और "कठिनाई" जैसे मेटाडाटा के लिए एक ऑब्जेक्ट शामिल है जिससे इसे पार्स करना और उपयोग करना आसान हो जाता है
टिपिकल उपयोग के मामलों में खेलों के लिए पहेलियाँ बनाना शैक्षिक उपकरणों या मनोरंजक गतिविधियों के लिए शामिल हैं डेवलपर्स इंटरएक्टिव पज़ल एप्लिकेशन या वेबसाइट बनाने के लिए एपीआई को एकीकृत कर सकते हैं जो उपयोगकर्ताओं को विभिन्न तर्क पज़ल प्रदान करते हैं
डाटा सटीकता सुनिश्चित की जाती है exhaustive सॉल्विंग एल्गोरिदम के माध्यम से जो अनोखेपन और हल करने की क्षमता की जांच करते हैं इससे पहले कि पहेलियाँ लौटाई जाएँ प्रत्येक एंडपॉइंट निर्मित पहेलियों को मान्यता देता है यह पुष्टि करने के लिए कि वे निर्दिष्ट मानकों को पूरा करते हैं
उपयोगकर्ता लगातार डेटा पैटर्न की अपेक्षा कर सकते हैं जैसे पहेलियों के लिए ग्रिड प्रारूप और नॉनोग्राम और काकुरो के लिए संरचित सुराग प्रत्येक पहेली प्रकार का एक परिभाषित लेआउट होता है जिससे इसे अनुप्रयोगों में लागू करना सीधे सरल होता है
उपयोगकर्ता अपने ऐप्लिकेशन में पहेलियाँ प्रदर्शित करने के लिए JSON प्रतिक्रिया को पार्स करके लौटाए गए डेटा का उपयोग कर सकते हैं उदाहरण के लिए Sudoku ग्रिड को UI में प्रदर्शित किया जा सकता है जबकि Kakuro से संकेत उपयोगकर्ताओं को पहेली को हल करने में मार्गदर्शित कर सकते हैं