HTTP API
Lichess exposes a RESTish HTTP/JSON API that you are welcome to use. Read the HTTP API documentation.
Embed Lichess TV in your site
Add the following HTML to your site:
Parameters:
- theme: blue, blue2, blue3, blue-marble, canvas, wood, wood2, wood3, wood4, maple, maple2, brown, leather, green, marble, green-plastic, grey, metal, olive, newspaper, purple, purple-diag, pink, ic, horsey
- pieceSet: cburnett, merida, alpha, pirouetti, chessnut, chess7, reillycraig, companion, riohacha, kosal, leipzig, fantasy, spatial, celtic, california, caliente, pixel, maestro, fresca, cardinal, gioco, tatiana, staunty, governor, dubrovny, icpieces, mpchess, kiwen-suwi, horsey, anarcandy, shapes, letter, disguised
- bg: light, dark, system
Embed the daily puzzle in your site
Add the following HTML to your site:
Parameters:
- theme: blue, blue2, blue3, blue-marble, canvas, wood, wood2, wood3, wood4, maple, maple2, brown, leather, green, marble, green-plastic, grey, metal, olive, newspaper, purple, purple-diag, pink, ic, horsey
- pieceSet: cburnett, merida, alpha, pirouetti, chessnut, chess7, reillycraig, companion, riohacha, kosal, leipzig, fantasy, spatial, celtic, california, caliente, pixel, maestro, fresca, cardinal, gioco, tatiana, staunty, governor, dubrovny, icpieces, mpchess, kiwen-suwi, horsey, anarcandy, shapes, letter, disguised
- bg: light, dark, system
The text is automatically translated to your visitor's language.
Alternatively, you can post the puzzle in your slack workspace.
Embed a chess analysis in your site
Create a study, then click the share button to get the HTML code for the current chapter.
Parameters:
- theme: blue, blue2, blue3, blue-marble, canvas, wood, wood2, wood3, wood4, maple, maple2, brown, leather, green, marble, green-plastic, grey, metal, olive, newspaper, purple, purple-diag, pink, ic, horsey
- pieceSet: cburnett, merida, alpha, pirouetti, chessnut, chess7, reillycraig, companion, riohacha, kosal, leipzig, fantasy, spatial, celtic, california, caliente, pixel, maestro, fresca, cardinal, gioco, tatiana, staunty, governor, dubrovny, icpieces, mpchess, kiwen-suwi, horsey, anarcandy, shapes, letter, disguised
- bg: light, dark, system
The text is automatically translated to your visitor's language.
Embed a chess game in your site
On a game analysis page, click the "FEN & PGN" tab at the bottom, then "Embed in your website".
Parameters:
- theme: blue, blue2, blue3, blue-marble, canvas, wood, wood2, wood3, wood4, maple, maple2, brown, leather, green, marble, green-plastic, grey, metal, olive, newspaper, purple, purple-diag, pink, ic, horsey
- pieceSet: cburnett, merida, alpha, pirouetti, chessnut, chess7, reillycraig, companion, riohacha, kosal, leipzig, fantasy, spatial, celtic, california, caliente, pixel, maestro, fresca, cardinal, gioco, tatiana, staunty, governor, dubrovny, icpieces, mpchess, kiwen-suwi, horsey, anarcandy, shapes, letter, disguised
- bg: light, dark, system
The text is automatically translated to your visitor's language.