stravalib.client.Client.get_activity

Client.get_activity(activity_id, include_all_efforts=False)[source]

Gets specified activity.

Will be detail-level if owned by authenticated user; otherwise summary-level.

https://developers.strava.com/docs/reference/#api-Clubs-getClubActivitiesById

Parameters
  • activity_id (int) – The ID of activity to fetch.

  • include_all_efforts (bool) – Whether to include segment efforts - only available to the owner of the activty.

Return type

stravalib.model.Activity