Skip to end of metadata
Go to start of metadata


Get user's activity statistics in the format requested using units in the unit system which corresponds to the Accept-Language header provided. Activity statistics includes Lifetime and Best achievement values from the My Achievements tile on the website dashboard. Response contains both statistics from the tracker device and total numbers including tracker data and manual activity log entries as seen on the Fitbit website dashboard.

Access Type: Read

Rate Limited: Yes

OAuth: oauth_token is optional, if omitted you should explicitly specify <user-id>.

Privacy: My Achievements (Friends or Anyone) privacy permission grants access to other user's resource.

Resource URL

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

api-version

The API version. Currently 1.

user-id

User's encoded id or "-" (dash) to indicate user currently authenticated via the token credentials provided.

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. oauth_token authentication header parameter is optional.

Request Headers

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.

JSON Response

 

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

XML Response

Note that lifetime summary and best achievement data for the floors (<floors>) currently included only for the users with the Fitbit One or Ultra trackers paired to account (or paired to the account in the past). 

 

Examples

JSON Response
XML Response
  • No labels