Forum Posts

Auto detect activities

From the "Get All Activity Types" API, I see that there are 500+ activities in the list, such as:(category 4) "Leisure and inactivity" -> (activity 7010) "Lying quietly and watching television"(category 6) "Miscellaneous" --> (activity 9030) "Sitting...

Web API issue importing nutrients

Trying to import nutrients from Fitbit into Cronometer.I am already importing the nutrients that are available in the web dashboard (i.e Calories, Fat, Fiber, Carbs, Sodium, Protein).I am trying to add the additional nutrients mentioned in the API do...

Resolved! First day of historical data

Dear there,How to determine the beginning date when I query history data with "start-date"?I understand that the start date cannot be before 2009. However, not all accounts have data beginning from 2009. To avoid rate limits, I'd like to know the fir...

Accessing Sleep Score and temperature data

Hello, Would it be possible to have access to all the sleep_scores and temperature data relative to the sleep ? E.g.: overall_score,composition_score,revitalization_score,restlessnesstemperature_samples,nightly_temperature,baseline_relative_sample_su...

Resolved! Refresh token invalid

Hello,Sorry, I already posted this but in the wrong section of the forum (Sdk development), so I repost here Context:I have an application that uses OAuth2 to get the number of steps once a day. The problem is:At some point, we get an error while usi...

qlerebours by Recovery Runner
  • 1444 Views
  • 10 replies
  • 2 votes

AZM intraday - internal server error

Hello,I'm working on an app that fetch data on intraday endpoints. All of them works except the active-zone-minutes endpoint.My app is set to personal. Here is the url I use: https://api.fitbit.com/1/user/-/activities/active-zone-minutes/date/mydate/...

Unable to retrieve partial TCX for HIIT activities

Receiving status code 400 with error message: "validation - logId - Could not convert activity log 1.1 to TCX" when trying to get the partial TCX file of a HIIT workout. See example request below:https://web-api.fitbit.com/1.1/user/-/activities/60799...

IrisFb by Jogger
  • 82 Views
  • 1 replies
  • 0 votes

Leap year and 1y period

I've been using the get activity time series by date to pull back a years worth of data using a query like this:"https://api.fitbit.com/1/user/-/activities/distance/date/2023 - 12 - 31/1y.json"(I've had to add spaces to post)which would retrive 365 e...

DeanRS by Jogger
  • 102 Views
  • 1 replies
  • 0 votes

Is there any web api available for EDA and Stress?

Hello Fitbit Community,I am seeking information about the availability of a web API for accessing Electrodermal Activity (EDA) and Stress data from Fitbit devices.If anyone within the community has insights or knowledge regarding any existing or plan...

DocApp_0-1697177483182.png
DocApp by Jogger
  • 367 Views
  • 2 replies
  • 1 votes

Resolved! An empty sleep log is responsed

I am using the following endpoint to obtain sleep logs.https://api.fitbit.com/1.2/user/{user-id}/sleep/date/20231031.json but, a response of this request is empty response.{    "sleep": [],    "summary": {        "totalMinutesAsleep": 0,        "tota...

sleep_log.png

Resolved! FitBit - WebAPI - Integration Models

Hi all,I am looking to build a new software product for the Hotel Industry. (currently in an MVP prerequisites phase) This new solution would use multiple data layers (some of which are optional) in order to build a deeper insight into the guest's ov...

Activity Time Series Steps and Minutes versus Activity

I am having an issue where I download the activity information and the Activity Time Series information and have several records where the Activity information shows steps of over 10k, however the Time Series information shows little to no steps.  I ...

JSaber by Jogger
  • 193 Views
  • 3 replies
  • 1 votes

Resolved! Incomplete Steps data for Intraday API

Hello Fitbit team, We did a request to gain access to the intraday API some days ago and it was granted. The Application ID is 23R9D7 and the client ID: 23R9D7. Have been trying to figure it out what I might be doing wrong when making a CURL request ...

records-image.png
vidriloco by Recovery Runner
  • 262 Views
  • 4 replies
  • 0 votes

400 error when trying to add subscriptions - PHP

I have been trying to create new subscriptions via PHP but it always returns a 400 bad request error. I have tried making the command manually and it works, but my php code doesn't work. $ch = curl_init();curl_setopt($ch, CURLOPT_URL, "https://api.fi...

Not getting Intraday object

Hi Fitbit team, We have already made an intraday request and have been granted access with client ID: 23R8QJ and case ID: 00105038. However, when we call the intraday API, it does not return the intraday data object in the response.@JohnFitbit @Gordo...

DocApp by Jogger
  • 152 Views
  • 1 replies
  • 1 votes

Troubles gathering intraday data

Hello, I have been authorized to gather intraday data, but when I do a petition like:I get this answer:Why I am not getting the intraday part? If you need further information just let me know.Thanks,Francisco

Ganchito_0-1686665698921.png Ganchito_0-1686665664284.png
Ganchito by Recovery Runner
  • 214 Views
  • 2 replies
  • 1 votes

Calories Discrepancy

Hello, while doing the integration with Fitbit we have come across a relatively big difference in amount of calories burned for a workout/activity. We fetch the data using the Get Activity Log list."logId" for the activity is 48228362245. The Calorie...

Zarko2022 by Recovery Runner
  • 345 Views
  • 4 replies
  • 3 votes

Resolved! Unable to revoke token

Good evening devs,In my webapp, I obtain an auth token and refresh token as described in https://dev.fitbit.com/build/reference/web-api/authorization/oauth2-token/, using the Authorization Code Grant Flow with PKCE (App Type: Client). This works perf...

HRV intraday timezone

Hello, I would like to understand the response, this comes from  the fitbit example.     { "hrv": [ { "minutes": [ { "minute": "20xy-10-wzT09:10:00.000", "value": { "rmssd": 26.617, "cov...

nomida by Jogger
  • 150 Views
  • 1 replies
  • 0 votes

active-zone-minutes endpoint throwing error

Hi all, I am making a request to the `active-zone-minutes` endpoint (`https://api.fitbit.com/1/user/-/activities/active-zone-minutes/date/[todaysdate]/1d/1min.json`) and I'm getting the following error: `{"errors":[{"errorType":"system","fieldName":"...

uhhdev by Jogger
  • 177 Views
  • 2 replies
  • 0 votes

invalid_client using web api's oauth2 tutorial

Hi, I used my client_id & generated state fromhttps://dev.fitbit.com/build/reference/web-api/troubleshooting-guide/oauth2-tutorial/to obtain a code successfully. The URL above shows that I can use the following curl snippet to obtain access tokens.cu...

Fitbit Web API Intraday Awaiting Approval

I have requested an intraday API request on 11th August. The case id is 00104721. I have responded to the completion email of the application to inquire about the approval status, and I have also made a duplicate request for confirmation through the ...

hwdm by Jogger
  • 102 Views
  • 1 replies
  • 1 votes

Resolved! Login changes after migration and data concerns

As a part of our research effort, we are trying to collect fitbit data from the participants using a python script. Our accounts use gmail plus addressing, which means that there is a primary account (let's call it main @Gmail.com) and its aliases wi...

Resolved! Fetching Heart Rate from Web API

What is the maximum time of end date that can be defined to fetch from Heart Rate Time Series API? Can we fetch the last 1 second heart rate from our Fitbit device through this Web API? Will Fitbit Web API return it? or it has limitation of maximal E...