chessdotcom.endpoints.club_matches

List of daily and club matches, grouped by status (registered, in progress, finished).

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

chessdotcom.endpoints.club_matches.get_club_matches(url_id: str, tts=0, **request_options) GetClubMatchesResponse
Parameters:
  • url_id – URL for the club’s web page on www.chess.com.

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

Returns:

GetClubMatchesResponse object containing a list of daily and club matches.

class chessdotcom.endpoints.club_matches.GetClubMatchesResponse(json, text, matches)
Variables:
  • matches – Holds the list of daily and club matches.

  • json – The JSON response from the API.

  • text – The raw text response from the API.

class chessdotcom.endpoints.club_matches.ClubMatches(finished: list, in_progress: list, registered: list)
Variables:
class chessdotcom.endpoints.club_matches.ClubMatch(name: str | None, id: str | None, opponent: str | None, start_time: int | None, time_class: str | None, result: str | None)
Variables:
  • name – Match name.

  • id – The URL of the match’s profile.

  • opponent – The opponent’s name.

  • start_time – The timestamp of when the match started.

  • time_class – The time class of the match.

  • result – The result of the match.

  • start_datetime – The start time as a datetime object.