{"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'
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 Futoshiki Puzzle 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. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
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.
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, 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