stravalib.client.Client.get_activity_photos#

Client.get_activity_photos(activity_id: int, size: int | None = None, only_instagram: bool = False) BatchedResultsIterator[ActivityPhoto][source]#

Gets the photos from an activity.

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

Parameters:
  • activity_id (int) – The activity for which to fetch photos.

  • size (int, default=None) – the requested size of the activity’s photos. URLs for the photos will be returned that best match the requested size. If not included, the smallest size is returned

  • only_instagram (bool, default=False) – Parameter to preserve legacy behavior of only returning Instagram photos.

Returns:

class – An iterator of stravalib.model.ActivityPhoto objects.

Return type:

BatchedResultsIterator