数独和迷宫生成器 API

API ID 14591

生成四个难度级别的数独谜题和可打印的迷宫作为JSON或SVG,已预设并检查可解,以及现成的单词主题

API 文档

端点

请求
简单的谜题只需裸单数解(36-40 提示)中等需要隐藏单数解(29-33)困难需要铅笔记号逻辑如指向对和裸对但绝不猜测(23-28)唯一性通过穷举求解器检查后再返回谜题 网格使用0表示空方格; puzzleString使用“.”
Endpoint ID: 37394
GET https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37394/sudoku+with+exactly+one+solution
输入参数

数独只有一个解 — 端点功能

对象 描述
difficulty 可选 difficulty
seed 可选 Whole number 0–4294967295. The same seed and options always give the same puzzle; leave it out for a random one (the response tells you the seed it used).
svg 可选 Include SVG images of the puzzle and its solution in the JSON (default true).
format 可选 "json" (default) or "svg" to get the puzzle image itself (image/svg+xml).
answers 可选 With format=svg: draw the solution (default false).

剩余免费测试请求:3 / 3。


输入参数

difficulty
seed
svg
format
answers
API 示例响应
JSON
{
    "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' 


    
请求
发送任何81个字符的网格(逐行;1-9表示数字,0或.表示空格)。您将获得解决方案,无论它是否是唯一的(solutionCount在2时停止,第二个解决方案将显示),每行、每列或每个盒子中重复的数字,以及一个评分:一个人需要的最困难的技巧(简单:单数;中等:隐藏单数;困难:指向、声称、成对;专家:三重、X-Wing;超越:没有这些足够)以及每种技巧的使用频率。
Endpoint ID: 37395
GET https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37395/solve+a+sudoku+and+check+it+has+one+solution
输入参数

解决数独并检查它是否只有一个解 — 端点功能

对象 描述
grid 必需 The puzzle: 81 characters, 1-9 or 0/. for empty.
svg 可选 Include SVG images of the puzzle and its solution (default false).
format 可选 "json" (default) or "svg" to get the puzzle image itself (image/svg+xml).

剩余免费测试请求:3 / 3。


输入参数

grid
svg
format
API 示例响应
JSON
{
    "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' 


    
请求
从这个网格开始的最简单技巧:满屋、隐藏单元、裸单元、指向、声明、裸对/隐藏对、裸三/隐藏三、X-Wing。“提示”是可以填充的下一个方格;“步骤”是通向它的消去步骤(每一步都去掉了方格和数字),最终以该填充结束。每一步都是合理的推理。发送“原始”(开始拼图)以将错误条目列为第一。 当这些技术都不适用时,“揭示”将给出候选数最少的方格及其数字。candidates=true 在步骤后添加铅笔标记
Endpoint ID: 37396
GET https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37396/next+logical+step+named+and+explained
输入参数

下一个逻辑步骤命名并解释 — 端点功能

对象 描述
grid 必需 The grid as the player has it now: 81 characters, 1-9 or 0/. for empty.
original 可选 The starting puzzle (81 characters). With it, entries that differ from the solution are returned as mistakes.
candidates 可选 Include the pencil marks (default false).

剩余免费测试请求:3 / 3。


输入参数

grid
original
candidates
API 示例响应
JSON
{
    "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' 


    
请求
随机图片的行和列线索 5 x 5 到 25 x 25 每个谜题仅通过逐行逻辑解决(一次一行或一列)然后返回,这证明图片是唯一的解决方案并且可以不靠猜测解决 密度:低(更多白色通常更难) 中 等 高 linePasses是一个粗略难度(所需的行逻辑轮次) 空行具有线索[](打印为0)
Endpoint ID: 37397
GET https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37397/nonogram+picture+logic+with+exactly+one+solution
输入参数

单一解的非ogram图形逻辑 — 端点功能

对象 描述
w 可选 Width in squares, 5-25 (default 10).
h 可选 Height in squares, 5-25 (default: the width).
density 可选 How much of the picture is filled.
seed 可选 Whole number 0–4294967295. The same seed and options always give the same puzzle; leave it out for a random one (the response tells you the seed it used).
svg 可选 Include SVG images of the puzzle and its solution in the JSON (default true).
format 可选 "json" (default) or "svg" to get the puzzle image itself (image/svg+xml).
answers 可选 With format=svg: draw the solution (default false).

剩余免费测试请求:3 / 3。


输入参数

w
h
density
seed
svg
format
answers
API 示例响应
JSON
{
    "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
}
单一解的非ogram图形逻辑 — 代码片段

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' 


    
请求
在每个白色方块中填入1-9,使得每行和每列的数字之和等于提示,且每行中不重复数字。大小(包括整个网格、提示行和列):小型7 x 7,中型8 x 8,大型10 x 10。一个穷举解算器证明在返回谜题之前,解是唯一的。布局行使用“#”表示黑色方块,“.”表示白色方块;提示位于黑色方块中(横向 = 右侧的序列,纵向 = 下方的序列)。
Endpoint ID: 37398
GET https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37398/kakuro+sum+cross+with+exactly+one+solution
输入参数

仅有一个解的 Kakuro 和交叉 — 端点功能

对象 描述
size 可选 size (size parameter)
seed 可选 Whole number 0–4294967295. The same seed and options always give the same puzzle; leave it out for a random one (the response tells you the seed it used).
svg 可选 Include SVG images of the puzzle and its solution in the JSON (default true).
format 可选 "json" (default) or "svg" to get the puzzle image itself (image/svg+xml).
answers 可选 With format=svg: draw the solution (default false).

剩余免费测试请求:3 / 3。


输入参数

size
seed
svg
format
answers
API 示例响应
JSON
{
    "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
        ]
    ]
}
仅有一个解的 Kakuro 和交叉 — 代码片段

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' 


    
请求
填充一个 n x n 的网格(4-9),使每一行和每一列都包含 1 到 n 各一次,并且每个区域内的数字通过其运算符 (+, -, x, /;对于 - 和 /,较大的数字排在前面,网格中的顺序可以随意)。一个单格区域是一个给定的数字。一个全面的求解器证明在返回谜题之前恰好有一个解决方案 运算符:全部(默认),加减(仅 + 和 -)或仅加(仅 +)适用于年轻玩家
Endpoint ID: 37399
GET https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37399/math+cage+puzzle+latin+square+with+arithmetic+cages
输入参数

数学笼谜拉丁方格和算术笼 — 端点功能

对象 描述
size 可选 Grid size, 4-9 (default 6).
ops 可选 Operations to use.
seed 可选 Whole number 0–4294967295. The same seed and options always give the same puzzle; leave it out for a random one (the response tells you the seed it used).
svg 可选 Include SVG images of the puzzle and its solution in the JSON (default true).
format 可选 "json" (default) or "svg" to get the puzzle image itself (image/svg+xml).
answers 可选 With format=svg: draw the solution (default false).

剩余免费测试请求:3 / 3。


输入参数

size
ops
seed
svg
format
answers
API 示例响应
JSON
{
    "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' 


    
请求
每个方块都是可到达的,从入口(左上方块的顶部)到出口(右下方块的底部)恰好有一条路径。每个单元格是一个墙比特掩码:1 = 上,2 = 右,4 = 下,8 = 左
Endpoint ID: 37400
GET https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37400/perfect+maze+with+one+solution+path
输入参数

完美迷宫只有一条解决路径 — 端点功能

对象 描述
w 可选 Width in squares, 2–60 (default 15).
h 可选 Height in squares, 2–60 (default: the width).
seed 可选 Whole number 0–4294967295. The same seed and options always give the same puzzle; leave it out for a random one (the response tells you the seed it used).
svg 可选 Include SVG images of the puzzle and its solution in the JSON (default true).
format 可选 "json" (default) or "svg" to get the puzzle image itself (image/svg+xml).
answers 可选 With format=svg: draw the solution (default false).
markers 可选 Draw START and FINISH labels in the SVG (default true).

剩余免费测试请求:3 / 3。


输入参数

w
h
seed
svg
format
answers
markers
API 示例响应
JSON
{
    "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' 


    
请求
“主题”选项的主题id:英语和西班牙语的单词搜索主题,以及带有我们自定义线索的填字游戏主题
Endpoint ID: 37401
GET https://zylalabs.com/api/14591/sudoku+and+maze+generator+api/37401/built-in+themes+our+own+word+lists
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
JSON
{
    "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 端点。要使用 数独和迷宫生成器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

生成四个难度级别的数独谜题和可打印的迷宫,作为JSON或SVG格式,带种子并检查可解,以及现成的单词主题

数独和迷宫生成器 API FAQs

每个端点返回与请求的谜题类型相关的JSON数据。例如,数独端点提供带有线索和唯一解的网格,而非ogram端点返回行和列线索以及可解决的图像

关键字段因端点而异,但通常包括“类型”、“唯一解”、“线索”和谜题网格或线索。例如,数独响应包括“难度”和“谜题”,而跨字谜响应包括“布局”和“线索”

参数因终端而异 对于数独,您可以指定“难度”(简单、中等、困难)和“种子”以实现可重复性 非ogram 端点允许您设置“密度”(低、中、高)以影响谜题的复杂性

响应数据以 JSON 格式结构化,包含嵌套对象和数组。例如,数独响应包括一个用于谜题网格的数组和一个用于元数据的对象,如“seed”和“difficulty”,使其易于解析和利用

典型的用例包括为游戏、教育工具或娱乐活动生成谜题 开发人员可以集成API来创建互动谜题应用程序或网站,为用户提供各种逻辑谜题

数据的准确性是通过耗时的求解算法来确保的,这些算法在返回难题之前会检查唯一性和可解性 每个端点会验证生成的难题以确认它们符合指定的标准

用户可以期待一致的数据模式,例如拼图的网格格式和非ogram及卡库罗的结构化线索。每种拼图类型都有明确的布局,使其在应用程序中实现变得简单

用户可以通过解析 JSON 响应来利用返回的数据,在他们的应用程序中显示谜题。例如,数独网格可以在用户界面中呈现,同时来自卡库罗的线索可以指导用户解决谜题

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API