#puzzle
5 APIs with this tag
Maze API
Generate and solve mazes — entirely locally and reproducibly. The generate endpoint builds a perfect maze (exactly one path between any two cells, no loops) of the width and height you choose, using either a recursive-backtracker algorithm (long, winding corridors) or Prim's algorithm (more branching, shorter dead-ends), and returns it as ready-to-print ASCII art plus a compact per-cell wall-bitmask grid, with the start marked top-left and the exit bottom-right. Every maze is fully reproducible: pass a seed and you always get exactly the same maze on any machine, and the seed is returned when you omit it so you can recreate it later. The solve endpoint re-creates the maze from the same seed, width, height and algorithm and returns the shortest path from start to finish, both as an ordered list of cells and drawn onto the maze. Everything is computed locally and deterministically, so it is instant and private. Ideal for games and puzzles, procedural level generation, teaching algorithms and graph search, printable activity sheets, and creative coding. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints.
api.oanor.com/maze-api
Anagram API
Work with anagrams. The check endpoint tells you whether two strings are anagrams of each other — by default ignoring case, spaces and punctuation, so "Dormitory" and "Dirty Room" match. The signature endpoint returns the canonical sorted-letter key for a string; two strings are anagrams exactly when their signatures are equal, which makes the signature ideal for indexing and bucketing. The group endpoint takes a list of words and groups them into their anagram sets. Perfect for word games and puzzles, dictionaries and search, and de-duplicating reordered strings. No word list needed — it is pure letter analysis. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. Distinct from spelling, similarity and dictionary APIs.
api.oanor.com/anagram-api
Scrabble API
Score words by their letter tiles for Scrabble and Words With Friends. The score endpoint adds up the face value of each tile in a word — with the per-letter breakdown — and the values endpoint returns the point value of every letter for the chosen ruleset. Blank tiles (? _ *) count as zero. Both the standard English Scrabble distribution and the Words With Friends distribution are built in. Perfect for word-game apps and bots, puzzle and quiz tools, teaching and leaderboards. Note: this is the raw tile value — double/triple letter and word squares and the 50-point bingo bonus are not applied. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. Distinct from dictionary, spelling and text-statistics APIs.
api.oanor.com/scrabble-api
Wordle API
A complete toolkit for Wordle-style word games: score a guess against a hidden answer and get the exact green/yellow/grey feedback pattern (with correct duplicate-letter handling), validate any word against the official dictionary, solve a puzzle from the clues collected so far (returns the remaining consistent answers and a suggested next guess that best narrows them down), pull a random answer word, and fetch the deterministic daily word for any date with its puzzle number. Built on the official answer list (2,315 words) and the full set of ~13,000 accepted guesses. Every endpoint accepts input via the query string or the request body and returns lean JSON. Pure server-side compute (no third-party upstream), so responses are instant and always available. Ideal for word-game backends, solvers and assistants, bots and educational apps.
api.oanor.com/wordle-api
Sudoku API
Generate, solve and validate Sudoku puzzles through a fast, fully-local API. Create fresh puzzles at four difficulty levels (easy, medium, hard, expert), each guaranteed to have exactly one solution, returned as both an 81-character string and a 9x9 grid alongside the full solution. Solve any valid puzzle with a backtracking engine that also reports whether the solution is unique, and validate a grid to detect rule conflicts and completeness. Inputs accept an 81-character string (0 or . for blanks) or a 9x9 array, by GET or JSON POST. Pure server-side compute with no third-party upstream, so responses are instant and the service is always available. Ideal for puzzle apps and games, newspapers and printables, tutors and training-data generation.
api.oanor.com/sudoku-api