chessdotcom.endpoints.tournament_round

Get details about a tournament’s round.

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

chessdotcom.endpoints.tournament_round.get_tournament_round(url_id: str, round_num: int, tts=0, **request_options) ChessDotComResponse
Parameters:
  • url_id – URL for the club’s web page on www.chess.com.

  • round_num – the round of the tournament.

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

Returns:

GetTournamentRoundResponse object containing details about a tournament’s round.

class chessdotcom.endpoints.tournament_round.GetTournamentRoundResponse(tournament_round, json, text)
Variables:
  • tournament_round – Holds the TournamentRound object.

  • json – The JSON response from the API.

  • text – The raw response from the API.

class chessdotcom.endpoints.tournament_round.TournamentRound(groups: List[str], players: List[TournamentPlayer])
Variables:
  • players – list of players in the round. Holds TournamentPlayer objects.

  • groups – list of groups in the round.

class chessdotcom.endpoints.tournament_round.TournamentPlayer(username: str | None, is_advancing: bool | None)
Variables:
  • username – username of the player.

  • is_advancing – whether the player is advancing to the next round.