Lichess API
Returns Lichess player ratings, top players, tournaments, daily and specific puzzles and live streamers.
View as Markdown| GET | /lichess/user | A Lichess player: title, games played and the rating in each speed and variant. |
| GET | /lichess/topPlayers | The highest rated players of one speed or variant. |
| GET | /lichess/tournaments | Current Lichess tournaments: created, started and recently finished. |
| GET | /lichess/puzzleDaily | The puzzle of the day: its position, solution moves, themes and the game it comes from. |
| GET | /lichess/puzzle | One Lichess puzzle by its five-character id: its position, solution moves and themes. |
| GET | /lichess/liveStreamers | Lichess streamers who are live now, with the service they stream on and the stream language. |
| GET | /lichess/ratingHistory | A player's rating history in every speed and variant, one point per day the rating changed. |
| GET | /lichess/activity | A player's recent activity, interval by interval: follows gained and given. |
| GET | /lichess/usersStatus | Up to 50 Lichess users by username in one call: title, patron status and online state. |
| GET | /lichess/team | A Lichess team by its id: its name, description, member count and leader. |
| GET | /lichess/crosstable | The head-to-head score of two Lichess players and the number of games they played. |
| GET | /lichess/userGames | The most recent games of a Lichess player, newest first: players, ratings, result, opening and time control. |
| GET | /lichess/cloudEval | Stockfish evaluation of a chess position from the Lichess cache: the best lines with their score and depth. Only positions someone already analysed are cached. |
| GET | /lichess/broadcasts | Chess broadcasts being played on Lichess now: the tournament, the round in progress and its link. |
user
/v1/lichess/userA Lichess player: title, games played and the rating in each speed and variant.
Parameters
usernamestring required | Lichess username. e.g. DrNykterstein |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
createdAt | string |
games | integer (int64) |
id | string |
perfs | map |
seenAt | string |
title | string |
url | string |
username | string |
curl "https://api.hoshime.com/v1/lichess/user?username=DrNykterstein" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/user?username=DrNykterstein", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/user?username=DrNykterstein", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "createdAt": "2018-12-06T12:44:50Z", "games": 10455, "id": "drnykterstein", "perfs": { "atomic": { "games": 25, "progress": 85, "rating": 2160 }, "blitz": { "games": 609, "progress": 70, "rating": 3194 }, "bullet": { "games": 9585, "progress": 23, "rating": 3263 }, "chess960": { "games": 129, "progress": -26, "rating": 2541 }, "classical": { "games": 0, "progress": 0, "rating": 2500 }, "correspondence": { "games": 0, "progress": 0, "rating": 1500 }, "rapid": { "games": 0, "progress": 0, "rating": 2500 }, "ultraBullet": { "games": 92, "progress": -7, "rating": 2406 } }, "seenAt": "2026-11-01T17:29:22Z", "title": "GM", "url": "https://lichess.org/@/DrNykterstein", "username": "DrNykterstein" }, "meta": { "cached": false, "endpoint": "user", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
topPlayers
/v1/lichess/topPlayersThe highest rated players of one speed or variant.
Parameters
perfstring | Speed or variant. Defaults to blitz.bulletblitzrapidclassicalultraBulletchess960kingOfTheHillthreeCheckantichessatomichorderacingKingscrazyhousedefault blitze.g. blitz |
limitinteger | Items per page, 1 to 200. default 10e.g. 3 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
id | string |
name | string |
postCount | integer (int64) |
progress | integer (int64) |
rating | integer (int64) |
title | string |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/lichess/topPlayers?perf=blitz&limit=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/topPlayers?perf=blitz&limit=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/topPlayers?perf=blitz&limit=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "avatarUrl": "", "bio": "", "createdAt": "", "followerCount": 0, "followingCount": 0, "id": "cutemouse83", "name": "", "postCount": 0, "progress": -15, "rating": 2983, "title": "GM", "url": "https://lichess.org/@/cutemouse83", "username": "cutemouse83", "verified": false }, { "avatarUrl": "", "bio": "", "createdAt": "", "followerCount": 0, "followingCount": 0, "id": "tarzansmurf", "name": "", "postCount": 0, "progress": 22, "rating": 2961, "title": "", "url": "https://lichess.org/@/tarzansmurf", "username": "tarzansmurf", "verified": false } ], "meta": { "cached": false, "endpoint": "topPlayers", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
tournaments
/v1/lichess/tournamentsCurrent Lichess tournaments: created, started and recently finished.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
finishesAt | string |
id | string |
minutes | integer (int64) |
name | string |
perf | string |
players | integer (int64) |
rated | boolean |
startsAt | string |
status | string |
variant | string |
curl "https://api.hoshime.com/v1/lichess/tournaments" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/tournaments", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/tournaments", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "finishesAt": "2026-11-06T18:57:00Z", "id": "gTfQB6qY", "minutes": 27, "name": "≤1700 Bullet Arena", "perf": "bullet", "players": 1, "rated": true, "startsAt": "2026-11-06T18:30:00Z", "status": "created", "variant": "standard" }, { "finishesAt": "2026-11-06T18:57:10Z", "id": "FTGAdFVL", "minutes": 27, "name": "Hourly Antichess Arena", "perf": "antichess", "players": 1, "rated": true, "startsAt": "2026-11-06T18:30:10Z", "status": "created", "variant": "antichess" } ], "meta": { "cached": false, "endpoint": "tournaments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
puzzleDaily
/v1/lichess/puzzleDailyThe puzzle of the day: its position, solution moves, themes and the game it comes from.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
fen | string |
id | string |
initialPly | integer (int64) |
pgn | string |
plays | integer (int64) |
rating | integer (int64) |
solution | string[] |
themes | string[] |
curl "https://api.hoshime.com/v1/lichess/puzzleDaily" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/puzzleDaily", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/puzzleDaily", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "fen": "r2q1rk1/pp3pp1/7B/3pbP2/6Q1/2N5/PP4PP/n4R1K w - - 0 1", "id": "u52YY", "initialPly": 33, "pgn": "e4 c5 Nf3 e6 c3 d5 exd5 exd5 d4 Nf6 Be2 Bd6 O-O O-O Ne5 Nc6 f4 Bf5 Kh1 h6 Bg4 Bxg4 Nxg4 Nxg4 Qxg4 cxd4 cxd4 Nxd4 f5 Nc2 Bxh6 Be5 Nc3 Nxa1", "plays": 107087, "rating": 1936, "solution": [ "h6g7", "e5g7" ], "themes": [ "middlegame", "advantage" ] }, "meta": { "cached": false, "endpoint": "puzzleDaily", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
puzzle
/v1/lichess/puzzleOne Lichess puzzle by its five-character id: its position, solution moves and themes.
Parameters
idstring required | Lichess puzzle id, such as u52YY. e.g. u52YY |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
fen | string |
id | string |
initialPly | integer (int64) |
pgn | string |
plays | integer (int64) |
rating | integer (int64) |
solution | string[] |
themes | string[] |
curl "https://api.hoshime.com/v1/lichess/puzzle?id=u52YY" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/puzzle?id=u52YY", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/puzzle?id=u52YY", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "fen": "r2q1rk1/pp3pp1/7B/3pbP2/6Q1/2N5/PP4PP/n4R1K w - - 0 1", "id": "u52YY", "initialPly": 33, "pgn": "e4 c5 Nf3 e6 c3 d5 exd5 exd5 d4 Nf6 Be2 Bd6 O-O O-O Ne5 Nc6 f4 Bf5 Kh1 h6 Bg4 Bxg4 Nxg4 Nxg4 Qxg4 cxd4 cxd4 Nxd4 f5 Nc2 Bxh6 Be5 Nc3 Nxa1", "plays": 107144, "rating": 1907, "solution": [ "h6g7", "e5g7" ], "themes": [ "middlegame", "advantage" ] }, "meta": { "cached": false, "endpoint": "puzzle", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
liveStreamers
/v1/lichess/liveStreamersLichess streamers who are live now, with the service they stream on and the stream language.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
headline | string |
language | string |
name | string |
service | string |
status | string |
title | string |
curl "https://api.hoshime.com/v1/lichess/liveStreamers" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/liveStreamers", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/liveStreamers", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "headline": "Playing Blitz, Puzzle Storm, Tactics, Blindfold and more!", "language": "en", "name": "GatoEnZugzwang", "service": "twitch", "status": "Game Review and some nice tactics - analysis on lichess.org", "title": "NM" }, { "headline": "Rapid & puzzle", "language": "ru", "name": "alex_chasov", "service": "twitch", "status": "lichess.org ШАХМАТЫ #chess", "title": "" } ], "meta": { "cached": false, "endpoint": "liveStreamers", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
ratingHistory
/v1/lichess/ratingHistoryA player's rating history in every speed and variant, one point per day the rating changed.
Parameters
usernamestring required | Lichess username. e.g. DrNykterstein |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
perf | string |
points | RatingPoint[] |
date | string |
rating | integer (int64) |
curl "https://api.hoshime.com/v1/lichess/ratingHistory?username=DrNykterstein" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/ratingHistory?username=DrNykterstein", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/ratingHistory?username=DrNykterstein", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "perf": "ultraBullet", "points": [ { "date": "2019-07-13", "rating": 2519 }, { "date": "2020-03-23", "rating": 2413 } ] }, { "perf": "bullet", "points": [ { "date": "2018-12-15", "rating": 2864 }, { "date": "2019-01-04", "rating": 2970 } ] } ], "meta": { "cached": false, "endpoint": "ratingHistory", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
activity
/v1/lichess/activityA player's recent activity, interval by interval: follows gained and given.
Parameters
usernamestring required | Lichess username. e.g. DrNykterstein |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
end | string |
followedBy | integer (int64) |
following | integer (int64) |
start | string |
curl "https://api.hoshime.com/v1/lichess/activity?username=DrNykterstein" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/activity?username=DrNykterstein", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/activity?username=DrNykterstein", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "end": "2026-11-07T00:00:00Z", "followedBy": 13, "following": 0, "start": "2026-11-06T00:00:00Z" }, { "end": "2026-11-06T00:00:00Z", "followedBy": 10, "following": 0, "start": "2026-11-05T00:00:00Z" } ], "meta": { "cached": false, "endpoint": "activity", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
usersStatus
/v1/lichess/usersStatusUp to 50 Lichess users by username in one call: title, patron status and online state.
Parameters
idsstring required | Comma-separated Lichess usernames, 50 at most. e.g. DrNykterstein,nihalsarin2004 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
id | string |
name | string |
patron | boolean |
title | string |
curl "https://api.hoshime.com/v1/lichess/usersStatus?ids=DrNykterstein%2Cnihalsarin2004" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/usersStatus?ids=DrNykterstein%2Cnihalsarin2004", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/usersStatus?ids=DrNykterstein%2Cnihalsarin2004", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "drnykterstein", "name": "DrNykterstein", "patron": true, "title": "GM" }, { "id": "nihalsarin2004", "name": "nihalsarin2004", "patron": true, "title": "GM" } ], "meta": { "cached": false, "endpoint": "usersStatus", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
team
/v1/lichess/teamA Lichess team by its id: its name, description, member count and leader.
Parameters
idstring required | Lichess team id, such as lichess-swiss. e.g. lichess-swiss |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
description | string |
id | string |
leader | string |
members | integer (int64) |
name | string |
curl "https://api.hoshime.com/v1/lichess/team?id=lichess-swiss" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/team?id=lichess-swiss", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/team?id=lichess-swiss", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "The official Lichess Swiss team. We organize regular swiss tournaments for all to join.", "id": "lichess-swiss", "leader": "{\"name\":\"Lichess\",\"flair\":\"activity.lichess\",\"patron\":true,\"patronColor\":10,\"id\":\"lichess\"}", "members": 748780, "name": "Lichess Swiss" }, "meta": { "cached": false, "endpoint": "team", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
crosstable
/v1/lichess/crosstableThe head-to-head score of two Lichess players and the number of games they played.
Parameters
user1string required | First Lichess username. e.g. DrNykterstein |
user2string required | Second Lichess username. e.g. nihalsarin2004 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
gamesCount | integer (int64) |
score1 | number (double) |
score2 | number (double) |
user1 | string |
user2 | string |
curl "https://api.hoshime.com/v1/lichess/crosstable?user1=DrNykterstein&user2=nihalsarin2004" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/crosstable?user1=DrNykterstein&user2=nihalsarin2004", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/crosstable?user1=DrNykterstein&user2=nihalsarin2004", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "gamesCount": 341, "score1": 223.5, "score2": 117.5, "user1": "DrNykterstein", "user2": "nihalsarin2004" }, "meta": { "cached": false, "endpoint": "crosstable", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
userGames
/v1/lichess/userGamesThe most recent games of a Lichess player, newest first: players, ratings, result, opening and time control.
Parameters
usernamestring required | Lichess username. e.g. DrNykterstein |
limitinteger | Items per page, 1 to 100. default 10e.g. 3 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
20 fields
black | GamePlayer |
name | string |
rating | integer (int64) |
ratingDiff | integer (int64) |
createdAt | string |
eco | string |
id | string |
incrementSeconds | integer (int64) |
initialSeconds | integer (int64) |
opening | string |
rated | boolean |
speed | string |
status | string |
url | string |
variant | string |
white | GamePlayer |
name | string |
rating | integer (int64) |
ratingDiff | integer (int64) |
winner | string |
curl "https://api.hoshime.com/v1/lichess/userGames?username=DrNykterstein&limit=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/userGames?username=DrNykterstein&limit=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/userGames?username=DrNykterstein&limit=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "black": { "name": "…", "rating": 0, "ratingDiff": 0 }, "createdAt": "2026-11-06T09:41:00Z", "eco": "…", "id": "abc123", "incrementSeconds": 0, "initialSeconds": 0, "opening": "…", "rated": false, "speed": "…", "status": "…", "url": "https://…", "variant": "…", "white": { "name": "…", "rating": 0, "ratingDiff": 0 }, "winner": "…" } ], "meta": { "cached": false, "endpoint": "userGames", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
cloudEval
/v1/lichess/cloudEvalStockfish evaluation of a chess position from the Lichess cache: the best lines with their score and depth. Only positions someone already analysed are cached.
Parameters
fenstring required | Chess position in FEN, such as rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1. e.g. rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1 |
multiPvinteger | Number of lines, from 1 to 5. default 1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
depth | integer (int64) |
fen | string |
knodes | integer (int64) |
lines | EvalLine[] |
centipawns | integer (int64) |
mate | integer (int64) |
moves | string |
curl "https://api.hoshime.com/v1/lichess/cloudEval?fen=rnbqkbnr%2Fpppppppp%2F8%2F8%2F4P3%2F8%2FPPPP1PPP%2FRNBQKBNR+b+KQkq+e3+0+1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/cloudEval?fen=rnbqkbnr%2Fpppppppp%2F8%2F8%2F4P3%2F8%2FPPPP1PPP%2FRNBQKBNR+b+KQkq+e3+0+1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/cloudEval?fen=rnbqkbnr%2Fpppppppp%2F8%2F8%2F4P3%2F8%2FPPPP1PPP%2FRNBQKBNR+b+KQkq+e3+0+1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "depth": 0, "fen": "…", "knodes": 0, "lines": [ { "centipawns": 0, "mate": 0, "moves": "…" } ] }, "meta": { "cached": false, "endpoint": "cloudEval", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }
broadcasts
/v1/lichess/broadcastsChess broadcasts being played on Lichess now: the tournament, the round in progress and its link.
Parameters
limitinteger | Items per page, 1 to 50. default 10e.g. 3 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
id | string |
round | string |
startsAt | string |
tournament | string |
tournamentId | string |
url | string |
curl "https://api.hoshime.com/v1/lichess/broadcasts?limit=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/lichess/broadcasts?limit=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/lichess/broadcasts?limit=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "abc123", "round": "…", "startsAt": "2026-11-06T09:41:00Z", "tournament": "…", "tournamentId": "abc123", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "broadcasts", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "lichess", "requestId": "req_2Xb9kQ…", "units": 1 } }