For example if a user does 3 activities on 5th Jan. I want to be able to query the 5th of Jan alone and get all the activities (with decent data) for that day.
---------------------------------------------------------------------------------------------------------------------------------------
What I've tried so far:
This endpoint:
Get Daily Activity Summary
GET https://api.fitbit.com/1/user/[user-id]/activities/date/[date].json
would allow me to get that data but it only includes activities manually logged.
I tried this endpoint:
Activity Time Series
GET /1/user/[user-id]/[resource-path]/date/[date]/[period].json
GET /1/user/[user-id]/[resource-path]/date/[base-date]/[end-date].json
But the data returned is not what I need, it comes back with one single granular value.
The closest I have got, is this endpoint:
Get Activity Logs List
GET https://api.fitbit.com/1/user/-/activities/list.js
This allows me to get a collection of activities but it only allows me do this from a certain date or before a certain date. This date range is too vast. At scale it will return far too much data to process.
--------------------------------------------------------------------------------------------------------------------------------
Possible solutions:
Get Daily Activity Summary
This endpoint should also return activities which are not manually logged (could take in a `boolean` parameter to achieve this).
Activity Time Series
This endpoint supports a date range but the resource path options return very specific data:
activities/calories
activities/caloriesBMR
activities/steps
activities/distance
activities/floors
activities/elevation
activities/minutesSedentary
activities/minutesLightlyActive
activities/minutesFairlyActive
activities/minutesVeryActive
activities/activityCalories
add a new resource path `activities/activitySummary` which returns more data relating to the activity.
Get Activity Logs List
allow this endpoint to support a date range.
Maybe one of these could be implemented quite easily.
Thanks,
Sami
Join us on the Community Forums!
Community Guidelines
Learn the Basics
Join the Community!
Not finding your answer on the Community Forums?
Go to the Help Site
Contact Support