stravalib.client.Client.get_activity#
- Client.get_activity(activity_id: int, include_all_efforts: bool = False) Activity [source]#
Gets specified activity.
Will be detail-level if owned by authenticated user; otherwise summary-level.
https://developers.strava.com/docs/reference/#api-Activities-getActivityById
- 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:
class – An Activity object containing the requested activity data.
- Return type:
model.Activity