About the API:
Futoshiki is a logic puzzle game that originated in Japan and is similar to Sudoku in that it is played on a grid of squares, with the objective being to fill in the squares with a set of given numbers such that no number is repeated within a row or column. However, unlike Sudoku, Futoshiki also includes inequality constraints between pairs of squares, which must be satisfied in order for the puzzle to be considered solved.
What this API receives and what your API provides (input/output)?
It will receive a parameter and provide you with a JSON.
Educational games: The Futoshiki generator API can be used to create educational games that teach logic, problem-solving, and deduction skills. These games can be used in a classroom setting or as part of an online learning platform.
Besides API call limitations per month, there are no other limitations.
{"futoshikiSolved":[[6,2,9,7,8,4,1,3,5],[1,8,2,9,7,3,5,4,6],[4,7,5,2,6,9,3,1,8],[9,3,8,4,1,6,2,5,7],[5,9,6,3,4,8,7,2,1],[2,1,4,8,3,5,6,7,9],[8,4,1,5,2,7,9,6,3],[7,6,3,1,5,2,8,9,4],[3,5,7,6,9,1,4,8,2]],"futoshikiEasy":[[6,0,9,7,0,0,0,3,5],[1,0,0,0,0,3,5,4,0],[0,0,5,0,0,0,3,0,8],[9,3,0,0,0,0,2,0,7],[0,0,0,3,4,8,0,0,1],[2,1,0,0,3,0,0,7,0],[8,4,0,0,2,7,0,6,0],[0,6,0,0,5,0,8,9,0],[0,0,0,0,9,0,4,0,2]],"futoshikiTricky":[[6,0,9,0,0,0,0,3,0],[0,0,2,0,0,0,0,0,6],[0,7,5,0,0,9,0,1,8],[0,0,0,4,0,6,0,5,7],[0,0,6,0,0,0,0,0,1],[0,0,0,0,0,5,6,0,0],[8,0,1,5,0,0,0,0,0],[0,0,0,0,0,0,8,0,4],[0,0,0,0,0,0,0,0,0]],"futoshikiExtreme":[[0,0,0,0,0,0,0,3,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,1,0,0,0,0],[0,9,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9],[8,0,0,5,2,0,0,0,0],[7,6,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]],"comparisonRelations":["42>52","22>12","18>17","22>23","54>64","17>07","75>85","14>15","70>71","65>55","66>76","60>61","25>15","00>01","13>14","08>07","82>72","00>10","56>55","11>01","05>06"]}
curl --location --request GET 'https://zylalabs.com/api/897/futoshiki+puzzle+api/701/futoshiki+ninexnine' --header 'Authorization: Bearer YOUR_API_KEY'
{"futoshikiSolved":[[2,3,4,1,8,5,7,6],[3,4,6,2,5,1,8,7],[4,2,1,7,6,8,3,5],[1,7,5,3,4,2,6,8],[7,8,3,6,2,4,5,1],[8,1,7,5,3,6,4,2],[6,5,2,8,7,3,1,4],[5,6,8,4,1,7,2,3]],"futoshikiEasy":[[0,0,0,0,0,0,0,0],[0,4,6,2,0,0,8,0],[0,0,1,0,0,0,0,0],[0,7,0,3,0,2,0,8],[7,0,0,0,0,4,5,1],[8,1,7,5,0,0,0,2],[6,0,2,0,0,0,1,4],[0,0,0,4,0,7,2,3]],"futoshikiTricky":[[0,0,4,0,8,0,0,0],[0,0,0,0,0,0,8,0],[0,0,0,0,0,0,0,5],[0,7,0,0,0,0,0,0],[0,8,0,0,0,4,5,0],[0,1,0,5,0,0,4,2],[6,5,0,0,0,0,0,4],[0,0,0,4,0,0,0,0]],"futoshikiExtreme":[[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,6,8],[0,0,0,6,0,0,0,0],[0,0,0,0,0,6,0,0],[6,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]],"comparisonRelations":["37>47","02>01","71>61","75>65","73>74","55>45","40>30","61>51","77>76","37>36","13>03","53>54","63>62","72>62","02>03","65>66","31>30","11>01","04>14"]}
curl --location --request GET 'https://zylalabs.com/api/897/futoshiki+puzzle+api/702/futoshiki+eightxeight' --header 'Authorization: Bearer YOUR_API_KEY'
{"futoshikiSolved":[[5,2,7,4,6,3,1],[1,5,3,7,4,2,6],[2,3,4,5,1,6,7],[4,1,6,2,3,7,5],[7,4,5,6,2,1,3],[6,7,1,3,5,4,2],[3,6,2,1,7,5,4]],"futoshikiEasy":[[5,0,0,0,6,0,1],[1,5,3,0,0,2,6],[0,0,4,0,1,6,0],[0,1,0,0,0,0,5],[0,0,0,0,0,1,0],[0,7,0,0,0,0,2],[0,0,0,0,0,0,0]],"futoshikiTricky":[[0,0,0,0,0,0,0],[0,0,3,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,7,5],[0,0,0,0,0,0,0],[6,0,0,3,0,0,0],[3,0,0,0,0,0,0]],"futoshikiExtreme":[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,6,2,0,0,0],[0,0,0,0,0,0,0],[0,7,1,0,0,0,0],[0,0,0,0,0,0,0]],"comparisonRelations":["25>24","51>61","14>24","11>12","42>41","26>36","64>65","40>50","04>03"]}
curl --location --request GET 'https://zylalabs.com/api/897/futoshiki+puzzle+api/703/futoshiki+sevenxseven' --header 'Authorization: Bearer YOUR_API_KEY'
{"futoshikiSolved":[[4,3,5,1,6,2],[2,6,4,3,5,1],[1,2,6,5,3,4],[3,4,2,6,1,5],[5,1,3,4,2,6],[6,5,1,2,4,3]],"futoshikiEasy":[[4,3,0,1,0,0],[0,0,0,3,5,0],[0,2,6,0,3,0],[0,4,2,0,0,0],[0,1,3,4,0,0],[0,0,1,0,4,0]],"futoshikiTricky":[[0,3,0,0,6,0],[0,0,4,0,5,0],[0,0,0,0,0,0],[0,4,0,6,0,0],[0,0,0,0,0,0],[6,0,0,0,0,3]],"futoshikiExtreme":[[0,0,5,0,6,0],[0,0,0,0,0,0],[0,0,0,0,0,4],[0,4,2,0,0,5],[0,0,0,0,0,0],[0,0,0,2,4,0]],"comparisonRelations":["45>55","50>40","23>24","42>32","21>20","44>34"]}
curl --location --request GET 'https://zylalabs.com/api/897/futoshiki+puzzle+api/704/futoshiki+six+x+six' --header 'Authorization: Bearer YOUR_API_KEY'
| 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. Free Trial includes up to 50 requests.
Each endpoint returns a JSON object containing a Futoshiki puzzle of varying sizes (5x5 to 9x9) and difficulty levels. The response includes solved puzzles, puzzles with clues, and inequality relations between cells.
Key fields in the response include "futoshikiSolved" (the completed puzzle), "futoshikiEasy," "futoshikiTricky," and "futoshikiExtreme" (puzzles with varying difficulty), along with "comparisonRelations" that show the inequality constraints.
The response data is organized as a JSON object with arrays for each puzzle type. Each puzzle is represented as a 2D array of integers, where 0 indicates an empty cell, and the comparison relations are listed as strings.
The endpoints do not require any parameters; they are designed to return puzzles of fixed sizes (5x5, 6x6, etc.) and predefined difficulty levels. Users simply call the endpoint to receive a puzzle.
Users can extract the puzzle arrays for display in applications or games. The "comparisonRelations" can be used to enforce the inequality rules during gameplay, enhancing the logic challenge.
Typical use cases include integrating the API into educational platforms for teaching logic skills, creating mobile apps for puzzle enthusiasts, and providing fresh content for websites focused on brain teasers.
The API generates puzzles algorithmically, ensuring that each puzzle adheres to Futoshiki rules. The generation process includes checks to confirm that puzzles are solvable and meet the specified difficulty levels.
Users can expect puzzles with varying levels of filled cells, from fully solved grids to those with minimal clues. The comparison relations will always reflect valid inequalities based on the puzzle's layout.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used 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.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
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, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
737ms
Service Level:
100%
Response Time:
632ms
Service Level:
100%
Response Time:
165ms
Service Level:
100%
Response Time:
429ms
Service Level:
100%
Response Time:
5,233ms
Service Level:
100%
Response Time:
2,380ms
Service Level:
100%
Response Time:
1,441ms
Service Level:
100%
Response Time:
329ms
Service Level:
100%
Response Time:
1,123ms
Service Level:
100%
Response Time:
1,188ms
Service Level:
100%
Response Time:
1,368ms
Service Level:
100%
Response Time:
405ms
Service Level:
100%
Response Time:
1,275ms
Service Level:
100%
Response Time:
1,675ms
Service Level:
100%
Response Time:
1,296ms
Service Level:
100%
Response Time:
1,368ms
Service Level:
100%
Response Time:
1,368ms
Service Level:
100%
Response Time:
4,636ms
Service Level:
100%
Response Time:
6,455ms
Service Level:
100%
Response Time:
1,162ms