stravalib.client.Client.get_athlete_stats#
- Client.get_athlete_stats(athlete_id: int | None = None) AthleteStats [source]#
Returns Statistics for the athlete. athlete_id must be the id of the authenticated athlete or left blank. If it is left blank two requests will be made - first to get the authenticated athlete’s id and second to get the Stats.
https://developers.strava.com/docs/reference/#api-Athletes-getStats
Note that this will return the stats for _public_ activities only, regardless of the scopes of the current access token.
- Parameters:
athlete_id (int, default=None) – Strava ID value for the athlete.
- Returns:
A model containing the Stats
- Return type: