Get real-time user data
This endpoint reads public data of a user. If the request is authenticated with OAuth2, the user’s private data (like email) is also returned.If the user is not online, the response may be cached for up to 1 minute.
Endpoint
Path Parameters
The username of the user to fetch
Query Parameters
Include user trophies in the response
Include the user’s profile information (like bio, country, links)
Include the user’s rating rank in each performance type
Include information about whether the user can be challenged (requires OAuth)
Include the user’s FIDE ID if available
Example Request
Response
The user’s ID (lowercase username)
The user’s display name
Performance statistics for each game variant/time control
Account creation timestamp in milliseconds
Whether the account is disabled (only present if true)
Whether the user violated the Terms of Service (only present if true)
User profile information (if
profile=true and user has filled it)Last seen timestamp in milliseconds
Time spent playing
Chess title (GM, IM, FM, WGM, WIM, etc.)
Whether the user is a Lichess Patron
Whether the user is verified (official accounts)
Full URL to the user’s profile
URL to the game currently being played (if any)
Game statistics
Whether the user is currently streaming
Whether the user can be followed by the requester (requires OAuth)
Whether the requester follows the user (requires OAuth)
Whether the requester blocks the user (requires OAuth)
Example Response
Rate Limiting
This endpoint is rate-limited based on:- Whether the user is online (offline users have cached responses)
- Whether the request is authenticated
- The user’s verification status

