Vekta API
Activities

Get an activity's best efforts

The activity's best efforts: best average power and heart rate for each duration, and fastest time for each distance.

For cycling, power efforts also come after different amounts of work, to show power when tired. This endpoint only counts toward the per API key rate limit.

Responds with:

  • 404 not_found: the activity doesn't exist, or isn't yours or one of your athletes'.
  • 403 subscription_required: the activity's owner doesn't have an active Vekta subscription.
  • 400 bad_request: invalid parameters or payload.
GET
/activities/{activityId}/best-efforts

Authorization

AuthorizationBearer <token>

Your Vekta API key, sent as Authorization: Bearer vk_..., or an OAuth access token of an app you connected, sent as Authorization: Bearer <access token>.

In: header

Path Parameters

activityId*string

Id of an activity, from GET /users/{userId}/activities

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/activities/act_01JK4W2N9XQ3F5H7B8C6D2E9GT/best-efforts"
{  "power": [    {      "duration": 300,      "maxAveragePower": 342,      "afterWorkPerKg": 0,      "startedAtIndex": 1520,      "endedAtIndex": 1820    }  ],  "heartRate": [    {      "duration": 300,      "maxAverageHeartRate": 178,      "startedAtIndex": 1520,      "endedAtIndex": 1820    }  ],  "pace": [    {      "distance": 5000,      "minDuration": 1245,      "startedAtIndex": 1520,      "endedAtIndex": 1820    }  ]}