Get Workout Data

GET https://api.runningahead.com/rest/logs/me/workouts/{id}/{type}

Get the workout data for workout identified by id.

Request

Parameter Type Description
access_token string (required) OAuth 2.0 token for the current user.

File Types

The API currently supports the following file types. To specify the file type, replace {type} place holder with one of these types:

Type Description
gpx The GPX file format. The GPX will be version 1.1.

Response

This command deviates from the standard API command format. Instead of returning a JSON object, the response will consist entirely of the requested data file.

Example

Request

The following request will produce a GPX data file of the workout.

https://api.runningahead.com/rest/logs/me/workouts/44e87875cc644d77a8ba6790b890990a/gpx?
access_token=VjU5s4dyhAPO2XiUzaNVeE

Response

<?xml version="1.0" encoding="utf-16"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        version="1.1"
        creator="RunningAHEAD.com"
        xmlns="http://www.topografix.com/GPX/1/1">
  <metadata>
    <name>Boston Marathon</name>
  </metadata>
  <trk>
    <trkseg>
      ...
    </trkseg>
  </trk>
</gpx>