Skip to end of metadata
Go to start of metadata


Get a list of a user's frequent activities in the format requested using units in the unit system which corresponds to the Accept-Language header provided. A frequent activity record contains the distance and duration values recorded the last time the activity was logged. The record retrieved can therefore be used to log the activity via the Log Activity with the same or adjusted values for distance and duration.

Access Type: Read

Rate Limited: Yes

Resource URL

GET /<api-version>/user/-/activities/frequent.<response-format>

api-version

The API version. Currently 1.

response-format

The response format. Currently supported response formats are json and xml for responses in JSON and XML, respectively.

Examples

Authentication

Via token credentials. All authentication header parameters are required.

Request Headers

Accept-LocaleoptionalThe locale to use for response values.

Accept-Language

optional

The measurement unit system to use for response values.

Response

API Response in format requested: JSON or XML.

Response body format

Note: Text within <> is a descriptive place holder for a value or repeated elements.

JSON Response

 

Note: Text within [] is a descriptive place holder for a value or repeated elements.

XML Response

activityId

The activity id

calories

Calories expended during the activity the last time it was logged

description

Activity level description for an activity with level; empty for an activity with no level.

distance

Distance in units specified via the unit system

duration

Duration in milliseconds

name

Name of activity

Examples

JSON Response
XML Response
  • No labels