Description:
Welcome to the Chess StockFish 16 - Get Best Chess Moves API! This API is designed to provide you with the best moves for a given chess game based on the Forsyth-Edwards Notation (FEN) as input. FEN is a standard notation used to describe the current state of a chess game. By providing the FEN representation of a particular game position, our API will analyze the position and suggest the best moves to play.
Endpoint:
POST /best-move
Parameters:
fen
(required): The FEN representation of the chess game position.Response:
The API will respond with a JSON object containing the suggested best moves for the given position. The response will include the following fields:
position
: The FEN representation of the current game position.bestmove
: The best move suggested by the API.ponder
: Alternative movedepth
: The actual depth of the engine.Example Request:
POST /best-move
request body(form data)
fen=rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR
Example Response:
{
"position": "rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR",
"bestmove": "e2e4",
"ponder": "g8f6",
"depth": 12
}
Note: