Overview
Lichess is a free, open-source chess platform, and its API lets you access games, puzzles, player stats, and real-time tournament data. Many endpoints are public and require no authentication, while actions like creating challenges need OAuth. It is a great API for chess enthusiasts who want to build tools or analyze games.
Beginner Tip
Start with a public endpoint like fetching a user profile (no API key needed) — try /api/user/{username} with a known Lichess username to see game counts and ratings. For write operations like creating challenges, you will need to set up OAuth.
Available Data
Example Response
{
"id": 1,
"name": "Lichess",
"data": "Access to all data of users, games, puzzles and etc on Lichess",
"source": "Lichess"
} Field Reference
id Lowercase username used as the unique identifier on Lichess username Display username with original casing perfs Performance ratings keyed by game variant (e.g. blitz, rapid, classical), each containing rating and games count createdAt Unix timestamp (milliseconds) when the account was created playTime Total and TV play time in seconds count Game count breakdown: all, rated, win, loss, draw, etc. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://lichess.org/api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Battle.net
The Battle.net API provides official game data for Blizzard titles including World of Warcraft, Diablo III, Hearthstone, and StarCraft II.
Eve Online
The Eve Online ESI (EVE Swagger Interface) API provides access to game data for the space MMO EVE Online, including market data, character info, corporation details, and universe data.
Mario Kart Tour
Mario Kart Tour provides programmatic access to api for drivers, karts, gliders and courses via REST API.
Path of Exile
The Path of Exile API gives you access to game data for the popular action RPG, including character builds, items, and league standings.
SpaceTradersAPI
SpaceTraders is a programmable MMORPG where you control a fleet of spaceships through a REST API, trading goods and exploring the galaxy.