Lichess player ratings API, free to test
Test it now, no key
Type a Lichess username to see its ratings across the time controls the site tracks, with game totals and playing time, as one record.
The official free source: the Lichess API
Lichess runs an open, free API from a non-profit chess server. We quote nothing from its documentation here; its terms and etiquette are on that page. Open the official source (linked 26 November 2026).
When the official source is the better choice
Lichess's own API is free and goes much further: games in standard notation, studies, tournaments, puzzles and live streams. Anyone doing analysis of play should work with it directly and follow the project's rules.
When this call is useful
This lookup is for the small case of needing a ratings summary from the same place you already look up other things, with the same key and error handling.
What comes back, and what to check
In the saved answer each of ultra bullet, bullet, blitz, rapid, classical and correspondence has a rating, a games count, a progress figure and a provisional flag, followed by totals for games, rated games, wins, losses and draws, play time in hours, and account dates. Read the games count before the rating. In the sample, rapid and classical show a rating of 2500 with zero games, and correspondence shows 1500 with zero games: those are starting values marked provisional, not measured strength. Any rating with the provisional flag set deserves the same caution. puzzle and completion_rate were empty in this answer.
What people do with Lichess players
- Hide ratings with no games before showing a player card, so nobody mistakes a default for skill.
- Check that two entrants to a rated event have enough games for their rating to mean something.
- Track a member's blitz figure and games played month by month.
Questions
Why does a mode with no games show a rating?
It is a placeholder. Use the games count and the provisional flag to leave it out.
Can I compare these with Chess.com ratings?
Not directly. The two sites use their own rating systems and player pools.
Is the data about a real, verified person?
It describes an account. A username does not prove who plays on it.
What “free” means here
- Without a key: 5 test runs in 24 hours, counted across the whole site, from the box on this page. A run whose call fails is not counted.
- With a free account: 10,000 welcome credits once you confirm your email. No card. They expire 90 days after they are added.
- This lookup uses 5 credits per call, so the welcome credits cover about 2,000 calls.
- After that it is paid. It is not an unlimited free API.
A real saved answer
Taken 22 November 2026 with long text and long lists shortened, and people lists and abstracts left out.
Show the answer
{
"platform": "lichess",
"username": "DrNykterstein",
"title": "GM",
"patron": true,
"online": false,
"ultra_bullet": {
"rating": 2406,
"games": 92,
"progress": -7,
"provisional": true
},
"bullet": {
"rating": 3263,
"games": 9585,
"progress": 23,
"provisional": false
},
"blitz": {
"rating": 3194,
"games": 609,
"progress": 70,
"provisional": true
},
"rapid": {
"rating": 2500,
"games": 0,
"progress": 0,
"provisional": true
},
"classical": {
"rating": 2500,
"games": 0,
"progress": 0,
"provisional": true
},
"correspondence": {
"rating": 1500,
"games": 0,
"progress": 0,
"provisional": true
},
"puzzle": null,
"total_games": 10455,
"total_rated": 10440,
"total_wins": 7212,
"total_losses": 2409,
"total_draws": 834,
"completion_rate": null,
"play_time_hours": 325.1,
"created_date": "2018-12-06",
"last_seen_date": "2026-11-15",
"country": null
}Code
curl
curl -X POST https://api.foxapis.com/v1/gaming/lichess/player \
-H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
-d '{"username":"DrNykterstein"}'
JavaScript
const res = await fetch("https://api.foxapis.com/v1/gaming/lichess/player", {
method: "POST",
headers: { Authorization: "Bearer YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({"username":"DrNykterstein"}),
});
console.log(await res.json());
Python
import requests
res = requests.post(
"https://api.foxapis.com/v1/gaming/lichess/player",
headers={"Authorization": "Bearer YOUR_KEY"},
json={"username":"DrNykterstein"},
timeout=60,
)
print(res.json())
More free API pages
Mastodon post data API, free to test · Free nonprofit check API (IRS data) · Pinterest pin data API, free to test · Free PubMed search API · Free Reg CF crowdfunding API · All of them
Other names belong to their owners. FoxAPIs is not affiliated with or endorsed by them.