The Activity History API provides a means to get the historical statistics for previous Activity runs.
/api/collections/name/activities/id/history: get statistics for the last 50 runs of the given Activity.
|collection||The collection name.|
|id||The activity ID. Use 'all' for all activities.|
|history||JSON map||Contains the following two fields (activity_started and activity_finished) in a JSON map.|
|activity_started||date string||When the activity began.|
|activity_finished||date string||When the activity finished.|
|id||integer||The ID of the activity, if the API call was not for a specific activity.|
Get a history of all activities:
Get the history for activity number 9: