chessdotcom.endpoints.player_team_matches

List of Team matches the player has attended, is partecipating or is currently

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

chessdotcom.endpoints.player_team_matches.get_player_team_matches(username: str, tts=0, **request_options) GetPlayerTeamMatchesResponse
Parameters:
  • username – username of the player.

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

Returns:

GetPlayerTeamMatchesResponse object containing a list of team matches the player has attended, is participating or is currently registered.

class chessdotcom.endpoints.player_team_matches.GetPlayerTeamMatchesResponse(json, text, matches)
Variables:
  • json – The JSON response from the API.

  • text – The raw text response from the API.

  • matches – List of TeamMatch objects.

class chessdotcom.endpoints.player_team_matches.TeamMatches(finished: List[FinishedMatches], in_progress: List[InProgressMatches], registered: List[RegisteredMatches])
Variables:
class chessdotcom.endpoints.player_team_matches.FinishedMatches(name: str | None, url: str | None, id: int | None, club: str | None, results: Results | None, board: str | None)
Variables:
  • name – The name of the match.

  • url – URL for the match.

  • id – The unique identifier of the match.

  • club – The club of the match.

  • results – The results of the match.

  • board – The board of the match.

class chessdotcom.endpoints.player_team_matches.InProgressMatches(name: str | None, url: str | None, id: int | None, club: str | None, board: str | None)
Variables:
  • name – The name of the match.

  • url – URL for the match.

  • id – The unique identifier of the match.

  • club – The club of the match.

  • board – The board of the match.

class chessdotcom.endpoints.player_team_matches.RegisteredMatches(name: str | None, url: str | None, id: int | None, club: str | None)
Variables:
  • name – The name of the match.

  • url – URL for the match.

  • id – The unique identifier of the match.

  • club – The club of the match.

class chessdotcom.endpoints.player_team_matches.Results(played_as_white: str | None, played_as_black: str | None)
Variables:
  • played_as_white – The result of the player when played as white.

  • played_as_black – The result of the player when played as black.