Skip to content
Developer documentation ⌄
DEVELOPER DOCUMENTATION

Sudoku API

Generate Sudoku puzzles for your app or website. Validate grids, analyze difficulty, export worksheets and publish playable links through REST or MCP.

https://sudokumax.com/api/v1JSON · Bearer authentication

Make your first request

  1. Create your free account and API key. Save the key on your server.
  2. Send a request with Authorization: Bearer YOUR_API_KEY.
  3. Use the returned grid in your app. Include the required Sudokumax attribution when publishing it.
Terminal · SUDOKUMAX_API_KEY must be set in your environment
curl https://sudokumax.com/api/v1/generate \
  -H "Authorization: Bearer $SUDOKUMAX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"count": 1, "difficulty": "beginner"}'
POST /api/v1/generate → 200 application/json

Explore input fields, response fields and a live request →

Choose an endpoint

Building a Sudoku app?

The API provides the puzzles

Generate verified grids and solutions, inspect difficulty, create printable content and offer hosted links. Use your own interface and branding while retaining the required Sudokumax credit.

Your app provides the player experience

Build your own grid UI, player accounts, saved progress, timer and scoring. Use the progress validation and singles-hint endpoints for player feedback. Keep solutions and API keys on your server.

Free, with attribution

API calls cost $0. Everything you publish must reference Sudokumax: a visible hyperlink online, and the website address offline. Pricing & attribution details →