API Documentation

Endpoints

GET /puzzles

Retrieve a list of puzzles with optional filters and pagination.

Query Parameters:

Example Request:

https://chess-puzzles-api.vercel.app/puzzles?start=0&limit=10&min_rating=1000&max_rating=2000&themes=middlegame,endgame
Copied to clipboard!

GET /puzzle

Retrieve a puzzle by its ID.

Query Parameters:

Example Request:

https://chess-puzzles-api.vercel.app/puzzle?puzzle_id=12345
Copied to clipboard!

Available Themes

Example Request:

https://chess-puzzles-api.vercel.app/puzzles?themes=middlegame,endgame,mate,fork
Copied to clipboard!