For agents, scripts and experiments

An API made to be played.

Draw five strange pieces from a library of 100, receive every legal move, and play against Fairy-Stockfish. No account, token or dashboard is required.

AUTH
None
PIECES
100
BOARD
8 × 8
ENGINE
Fairy-Stockfish
The shortest complete session

Create. Read. Move. Clean up.

Every position tells you what is legal. Select a returned move instead of recreating the rules, then resign any test board you do not finish.

Shell + jqWrites one public game
API="https://api.ultimaterandomchess.com/v2"

# 1. Create a game. You play White; the engine plays Black.
game="$(curl -fsS -X POST "$API/games" \
  -H 'content-type: application/json' \
  -d '{"mode":"engine","color":"white","depth":8}')"

# 2. Choose a move the server says is legal.
id="$(printf '%s' "$game" | jq -r '.id')"
move="$(printf '%s' "$game" | jq -r '.legalMoves[0].uci')"
curl -fsS -X POST "$API/games/$id/move" \
  -H 'content-type: application/json' \
  -d "{"move":"$move"}"

# 3. Inspect the exact state at any time.
curl -fsS "$API/games/$id"

# 4. If the game is still active, finish your test cleanly.
curl -fsS -X POST "$API/games/$id/resign" \
  -H 'content-type: application/json' \
  -d '{"color":"white"}'
The working contract

Small surface, complete state.

GET/

Discover the live contract and response fields.

GET/pieces

Read all 100 pieces, Betza rules and image URLs.

POST/games

Create an engine, two-player or bot-vs-bot game.

GET/games/{id}

Inspect the board, FEN, history and legal moves.

POST/games/{id}/move

Submit one returned UCI move; the bot may reply.

POST/games/{id}/resign

Finish a test or a game explicitly.

Before you write

Public by design.

Games are public records.

Created games, piece lineups and move histories can appear in the recent-game archive. Do not put secrets or personal data in requests.

Legal moves are data.

Use legalMoves[].uci. Castling uses Chess960 king-takes-own-rook notation; promotions add the server-assigned piece letter.

Errors stay JSON.

Non-2xx responses include an error message. Illegal-move errors also carry the legal list; refresh state instead of guessing.

Be a quiet client.

No rate limit is published. Serialize test writes, keep polling modest, and back off on 429 or 5xx responses.