06-11-2017 19:48
06-11-2017 19:48
I wanted to show 7day steps count in total. Then, I want to show the steps counts by hour (similar to Fitbit iOS App) in a given date. How do I do that?
I tried the end point below
Answered! Go to the Best Answer.
Best Answer09-28-2023 11:33
09-28-2023 11:33
Hi, where is the documentation for the steps API please? I cant seem to locate it.
06-12-2017 17:48
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
06-12-2017 17:48
@RajaTamil Here's examples of what you're looking for (taken from Fitbit Explorer😞
Last 7 days:
https://api.fitbit.com/1/user/-/activities/tracker/steps/date/2017-06-06/today.json
{
"activities-tracker-steps": [
{
"dateTime": "2017-06-06",
"value": "11911"
},
{
"dateTime": "2017-06-07",
"value": "9146"
},
{
"dateTime": "2017-06-08",
"value": "10026"
},
{
"dateTime": "2017-06-09",
"value": "14233"
},
{
"dateTime": "2017-06-10",
"value": "2804"
},
{
"dateTime": "2017-06-11",
"value": "1759"
},
{
"dateTime": "2017-06-12",
"value": "971"
}
]
}
Step count for a single day in 15 min intervals:
https://api.fitbit.com/1/user/-/activities/steps/date/today/1d/15min.json
{
"activities-steps": [
{
"dateTime": "2017-06-12",
"value": "7731"
}
],
"activities-steps-intraday": {
"dataset": [
{
"time": "00:00:00",
"value": 0
},
{
"time": "00:15:00",
"value": 0
},
{
"time": "00:30:00",
"value": 0
},
{
"time": "00:45:00",
"value": 0
},
{
"time": "01:00:00",
"value": 0
},
{. . .},
{
"time": "17:15:00",
"value": 0
},
{
"time": "17:30:00",
"value": 0
}
],
"datasetInterval": 15,
"datasetType": "minute"
}
}
Best Answer06-12-2017 19:47
06-12-2017 19:47
https://api.fitbit.com/1/user/-/activities/steps/date/today/1d/15min.json
The above endpoint does not return all the data like you mentioned. "activities-steps-intraday" missing :(.
This is what I got back from that endpoint.
{ "activities-steps": [ { "dateTime": "2017-06-12", "value": "7731" } ] }
Thanks in advance.
Best Answer06-20-2017 08:06
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
06-20-2017 08:06
@RajaTamil Your app needs to have access to Intraday Time Series data, which can be achieved from using a "personal" app type, or by submitting a request for access.
Best Answer01-06-2020 04:20
01-06-2020 04:20
Hi bro I'm need help from you to setup web Apis. I'm trying since last month to setup web api wiht php but still have not make a single request successfully . I'm search a lot to resolve it but have not find any solution?
Please i need your help
contact me sadbox50@gmail.com if possible
Best Answer01-06-2020 04:22
01-06-2020 04:22
hi bro I'm need your help to setup web Apis
Best Answer01-06-2020 17:21
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-06-2020 17:21
Hi @DDNPLO ,
I recommend checking out our Community Resources for using PHP as your client library.
If you need additional assistance regarding the Web API, let me know and I'll be happy to help.
Best Answer09-28-2023 11:33
09-28-2023 11:33
Hi, where is the documentation for the steps API please? I cant seem to locate it.