# Lichess API (slim)

> The Lichess API is the free REST and streaming API of lichess.org, a non-profit chess server. It reads and exports games, users, puzzles, studies and broadcasts, and lets an authorised account play through the Board and Bot APIs.

- Full: https://www.anchorterminal.com/tools/lichess-api.md (~6,450 tokens) · this version ~1,580 tokens · JSON https://www.anchorterminal.com/tools/lichess-api.json · canonical https://www.anchorterminal.com/tools/lichess-api
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-11-24 · pricing https://www.anchorterminal.com/tools/lichess-api#pricing · reviews https://www.anchorterminal.com/tools/lichess-api#reviews
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

**B · 63.7/100 · rank #673 of 1668 · #1 in Hobbies, sport & recreation · not agent-ready · confidence medium**


Assessment: A free API that reads and streams games, users, puzzles and broadcasts and lets an authorised account play, with a complete OpenAPI 3.1 specification and OAuth 2.0 with PKCE and 24 scopes. There is no status page or SLA, rate limits are mostly a one-request-at-a-time rule, and engine or outside help is banned in Board API games.

## Facts

- Kind: HTTP API · vendor: Lichess · category: Hobbies, sport & recreation · legal entity: Lichess.org (association under the French law of 1 July 1901) · provenance 70/100
- Local only (HTTP): npm `@lichess-org/types`
- Auth: OAuth or key · pricing: Free · x402: no · licence: AGPL-3.0-or-later (the lila server and the API specification). The Lichess Terms of Service allow personal and commercial use of the API
- Benchmark probes: not run yet, so Performance is pending
- Surface listed: The hosted API at https://lichess.org/api/..., read from the API reference, the OpenAPI specification in the lichess-org/api repository (cloned), the about page, terms, privacy policy, changelog, security.txt and robots.txt on 23 November 2026. lichess.org/robots.txt disallows `/api/`, so no endpoint was called
- Endpoint families: Account, users, relations, games and exports, TV, puzzles, studies, broadcasts, arena and Swiss tournaments, teams, challenges, bulk pairings, messaging, Board, Bot, cloud analysis, external engines, FIDE players, opening explorer and tablebase
- Other hosts: The opening explorer at explorer.lichess.org, the tablebase at tablebase.lichess.org and external engine analysis at engine.lichess.ovh
- Board and Bot APIs: Board API works with normal accounts for rapid, classical and correspondence games and forbids engine help. Bot API needs an account upgraded to a bot, allows engines, and plays only challenge games, not pools or tournaments
- Rate limits: One request at a time. A 429 means wait about a minute. Game exports 20 games a second anonymous, 30 with OAuth, 60 for one's own games. Unauthenticated broadcast endpoints are heavily rate limited
- Clients: The Python client berserk, under the lichess-org organisation, and the npm package `@lichess-org/types`. Community clients in Java, JavaScript, Rust, C# and .NET are linked from the reference
- MCP: Third-party servers only, such as dev.cotlet/lichess and io.github.pipeworx-io/lichess in the official MCP registry
- Bulk data: Monthly dumps of rated games, puzzles and evaluated positions at database.lichess.org, linked from the reference

- Scores: Reliability 32, Performance not tested, Schema & documentation 78, Agent ergonomics 67, Security & auth 57, Payments & pricing 85, Task success not tested, Maintenance & community 82, Transparency & trust 68
- Why: Reliability, Read with the hosted lines. · Schema & documentation, A public OpenAPI 3.1 specification, version 2.0.180, with 176 paths and 189 operations and typed schemas, published from the lichess-org/api… · Agent ergonomics, Game exports take flags to include or drop moves, clocks, evaluations, accuracy, openings and tags, and `max` caps the count. · Security & auth, OAuth 2.0 with PKCE (S256 only) and 24 scopes, scoped personal tokens, and revocation through DELETE `/api/token` or the account page. · Payments & pricing, Read with the hosted rubric. · Maintenance & community, Specification v2.0.180 released on 16 November 2026, with lila commits the day of the check (30). · Transparency & trust, The lila server and the API specification are AGPL-3.0-or-later, and the terms set out licences per service and allow commercial use of the…
- Sources: 12, open questions: 5, both in the full twin
- Capabilities: hobbies.games
- JSON: https://www.anchorterminal.com/api/v1/tools/lichess-api.json · card, about 200 tokens, for choosing between listings: https://www.anchorterminal.com/tools/lichess-api.card.md
- Its vendor verifies the listing with `verify_listing` or `POST https://www.anchorterminal.com/api/v1/verify` (the full twin says how); no effect on the grade.
- Support: Discord https://discord.gg/lichess; https://lichess.org/contact; https://lichess.org/api; more in the full twin

## Before you call it

1. Send a `User-Agent` naming the app or a contact address, because requests without one may be rejected or rate limited
2. Make one request at a time. After a 429, wait at least a minute and reduce the request rate
3. Read streamed endpoints line by line as newline-delimited JSON instead of waiting for the response to end
4. Never suggest moves in a person's ongoing Board API game. Outside help is cheating under the fair play rules. Use a Bot account to play
5. Request only the scopes the task needs, and revoke the token with DELETE `/api/token` when done

## Connect

```bash
curl -H "User-Agent: my-agent (contact@example.com)" https://lichess.org/api/user/thibault
```
Full config and headless snippets are in the full page. Through letme (picks today, calling later): https://letme.dev/lichess-api

## Similar tools

| Tool | Grade | Score | Shared capabilities | Slim |
| --- | --- | --- | --- | --- |
| Chess.com Published-Data API | E | 43.9 | hobbies.games | https://www.anchorterminal.com/tools/chess-com.min.md |
| Ride with GPS API | D | 47.1 | same category | https://www.anchorterminal.com/tools/ride-with-gps.min.md |
| Strava MCP Connector + API | E | 45.8 | same category | https://www.anchorterminal.com/tools/strava.min.md |
| Ticketmaster Discovery API | E | 44.7 | same category | https://www.anchorterminal.com/tools/ticketmaster.min.md |
| Rebrickable | F | 36.6 | same category | https://www.anchorterminal.com/tools/rebrickable.min.md |


## Panel reviews (0, desk reviews from public material, no calls made)

