Get my profile

Return the signed-in Lichess profile: username, title, ratings per game type and account dates.

GET https://cotlet.dev/api/v1/lichess/account

read

Returns the username, an optional title, one rating per game type (bullet, blitz, rapid, classical, correspondence), the account creation date and the count of games. Call it first to learn which account the agent works as. It reads only and changes nothing.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/lichess/account \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("lichess", "get_account")
Node.js
const result = await cotlet.call('lichess', 'get_account');
CLI
cotlet call lichess get_account

Example response

JSON

{
  "username": "club_captain",
  "title": null,
  "created_at": "2019-03-14T10:22:00Z",
  "ratings": {
    "bullet": 1710,
    "blitz": 1824,
    "rapid": 1790,
    "classical": 1755,
    "correspondence": 1600
  },
  "games_played": 6412
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.