Lichess
communityFree, open-source chess server with games, puzzles, tournaments, and analysis tools.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://lichess.org/api/user/{username}Get user profile
Parameters
usernameusername (stringrequiredReturns
id, username, perfs with bullet, blitz, rapid, classical ratings, count.all, count.win, count.loss, playTime.total, onlineGET
https://lichess.org/api/games/user/{username}Get user games
Parameters
maxresults (integeroptionalratedrated only (booleanoptionalperfTypebullet|blitz|rapid|classical (stringoptionalusernameusername (stringrequiredReturns
games[] in PGN or JSON with id, rated, variant, speed, players, winner, moves, clock, openingGET
https://lichess.org/api/puzzle/dailyGet daily puzzle
Returns
game with id, pgn, perf; puzzle with id, rating, solution[], themes[], initialPly