chessdotcom.endpoints.player_clubs

List of clubs the player is a member of, with joined date and last activity date.

API doc: https://www.chess.com/news/view/published-data-api#pubapi-endpoint-player-clubs

chessdotcom.endpoints.player_clubs.get_player_clubs(username: str, tts=0, **request_options) GetPlayerClubsResponse
Parameters:
  • username – username of the player.

  • tts – the time the client will wait before making the first request.

Returns:

GetPlayerClubsResponse object containing a list of clubs the player is a member of.

class chessdotcom.endpoints.player_clubs.GetPlayerClubsResponse(json, text, clubs)
Variables:
  • clubs – Holds an array of Club objects.

  • json – The JSON response from the API.

  • text – The raw text response from the API.

class chessdotcom.endpoints.player_clubs.Club(id: str | None, name: str | None, last_activity: int | None, icon: str | None, url: str | None, joined: int | None)
Variables:
  • id – The unique identifier of the club.

  • name – The name of the club.

  • last_activity – The timestamp of the last activity in the club.

  • icon – The URL of the club’s icon.

  • url – The URL of the club’s page.

  • joined – The timestamp when the user joined the club.

  • last_activity_datetime – The last activity as a datetime object.

  • joined_datetime – The joined timestamp as a datetime object.