stravalib.client.Client.get_activity#
- Client.get_activity(activity_id: int, include_all_efforts: bool = False) DetailedActivity[source]#
Gets specified activity.
Will be detail-level activity return if owned by authenticated user; otherwise it will be summary-level.
- Parameters:
activity_id (int) – The ID of activity to fetch.
include_all_efforts (bool, default=False) – Whether to include segment efforts - only available to the owner of the activity.
- Returns:
A DetailedActivity object containing the requested activity data.
- Return type:
model.DetailedActivity
Notes
https://developers.strava.com/docs/reference/#api-Activities-getActivityById