Forum Posts

Webhooks randomly missing

Hi! We have an app that integrates with the Fitbit api, and we rely on webhooks for data updates.We noted that we are missing sleep data for a certain user for several (!) days over the past two weeks (dates with disruptions were December 15, 19, 26,...

martaen by Recovery Runner
  • 99 Views
  • 1 replies
  • 1 votes

Resolved! 400 error logging foods (RPC "_food_id is already set")

The API for logging foods seems to have broken today. (Also seems to be broken in the mobile apps){ "error": { "code": 400, "message": "Invalid value (oneof), oneof field '_food_id' is already set. Cannot set 'food_id'", "status": "INVA...

jl__ by Base Runner
  • 225 Views
  • 1 replies
  • 1 votes

Important updates to the Fitbit Web API

Dear Fitbit Developer Community, We’re making some important upgrades to the Fitbit APIs so that they remain stable and scalable for everyone.  These updates include the log ids, stricter syntax enforcement and deprecating the Sleep v1 endpoints.  To...

Can't get spo2 but can get intraday heart rate

Hi All - I'm trying and failing to get oxygen saturation data through the web API.I have authorized the oxygen_saturation scope (see screenshot below).The app is designated as "Personal".A request for heart rate data works fine. The URL looks like......

permissions.PNG
mmcc73 by Recovery Runner
  • 1767 Views
  • 15 replies
  • 1 votes

Get Activity Tcx not working

I can successfully register people and add them to a subscription. I receive data when they sync and I am able to call for the activity data and record that. However, there is data that seems to only be present in tcx files and so I wanted to downloa...

Resolved! Error 403 on pulling VO2 Max (cardio fitness)

Hi there.  I am trying to pull data at https://api.fitbit.com/1/user/-/cardioscore/date/YYY-MM-DD.json and getting a 403 (PERMISSION_DENIED) error.  I have scopes "activity profile sleep heartrate weight" granted in the authentication of the app and ...

Rate Limiter seems to be Double Counting

I have implemented strict logging, call counts, and ensured no redirect calls are being made. I have been retroactively pulling data from authorized users of my application; going back to their enrollment in a research study, 100 days at a time, for ...

jputney by Recovery Runner
  • 735 Views
  • 12 replies
  • 3 votes

Intraday denied access

Hello everyone!I am Alex, and currently at my last year of university, as my final year project I was studying wearable technologies and how it could help elders and people with special needs. Throughout my dissertation I have managed to connect the ...

Search Food API sometimes returning empty results

Currently, the Search Food API seems to be randomly returning empty results for searches.To reproduce: use the Web API explorer and set the query to something like "cheez" or "honey".https://api.fitbit.com/1/foods/search.json?query=cheezTry it a few ...

jl__ by Base Runner
  • 716 Views
  • 12 replies
  • 0 votes

401-Unauthorized for OPTIONS request for sleep data

I've been working with the web api for the last couple of days. Sending requests using an http client (like insomnia) was fine, but from within a web based application, the request fails with a CORS error.Taking a look into the devtools showed an err...

L4zz3r by Jogger
  • 134 Views
  • 2 replies
  • 0 votes

adding meditation activity

I've been able to add user activities of type 7075 - Meditating to my user account, but I can't get them to show up in the Mindfulness area of the phone app. Does anyone know of a way to add a meditation session into the mindfulness area of the phone...

jordan-w by Recovery Runner
  • 219 Views
  • 2 replies
  • 1 votes

Undocumented endpoint in foods API

I've been looking through the documentation for the Food and Water API at https://dev.fitbit.com/build/reference/web-api/food-logging and https://dev.fitbit.com/build/reference/web-api/explore/#/ and was searching for a way to get a list of the curre...

jbell1329 by Recovery Runner
  • 1011 Views
  • 2 replies
  • 1 votes

Resolved! cors on activities/list.json

Hello,I'm having a problem when I try fetching <https://api.fitbit.com/1/user/-/activities/list.json> gets "... has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."I can make the same call wi...

jordan-w by Recovery Runner
  • 150 Views
  • 1 replies
  • 0 votes

syncing multiple devices

A potential client would like to use multiple FitBits (or potentially another device if one would be more appropriate) for a research project. The project would be to have multiple fitbits (say, 10), and a group of people to wear them during a shared...

deletion of water records 502 error

Deleting a water record now fails with a 502 error, but the record is deleted. We do the request as follows (tested it with Postman, user id of an existing user and the logID exists also):https://api.fitbit.com/1/user/<userid>/foods/log/water/1080101...

Hielko by Runner
  • 387 Views
  • 1 replies
  • 1 votes

Resolved! Sleep List Endpoint Returns Empty JSON

We are now seeing the same issue with Sleep requests that we did with Water requests. Using the https://api.fitbit.com/1.2/user/-/sleep/list.json endpoint it returns an empty JSON response.I cannot reproduce the issue with my accounts, but there are ...

bickster by Base Runner
  • 209 Views
  • 1 replies
  • 0 votes

Resolved! Water log: always empty response

With the water log request: /foods/log/water/date/......jsonthe response is always empty, while there is water data logged in the Fitbit app for the dates requested:{    "summary": {        "water": 0.0    },    "water": []}We see this on our test de...

Hielko by Runner
  • 1199 Views
  • 21 replies
  • 4 votes

Clarification on SpO2 Data for Non-Main Sleep Sessions

According to the SpO2 API documentation, SpO2 data is specifically associated with a user's main sleep. However, we’ve observed that intraday SpO2 data is also being returned for sleep sessions where mainSleep=false.Could you please clarify this beha...

diptopol by Base Runner
  • 412 Views
  • 1 replies
  • 0 votes

endpoint to retrieve swim_lengths data

When exporting data from my fitbit using google-takeout I find a file recording my swim length data, namelyPhysical Activity_GoogleData/swim_lengths_data_yyyy-mm-dd.csvNow, I'd like to obtain the same data by using the WebAPI, but I can't seem to fin...

Still missing access control headers in API responses

Dear Fitbit developers,I’ve noticed that I’m still encountering many preflight (CORS policy) errors because not all endpoints return the required access control headers in their responses. Some endpoints do this correctly and don't cause any issues.I...

RobertDev by Recovery Runner
  • 280 Views
  • 3 replies
  • 3 votes

timezone=UTC parameter not working as expected

Hello,I'm having an issue with the timezone parameter when requesting intraday data.Here is the API request I'm making:/1/user/${userId}/activities/calories/date/YYYY-MM-DD/1d/1min.json?timezone=UTCEven though I've specified timezone=UTC, the API sti...

How to report a breaking issue?

Dear Fitbit developers,I’m experiencing an issue for which I need your assistance. However, over the past few days, I’ve made several attempts to get in touch—without success.I’ve updated existing topics with questions about the status → No response....

RobertDev by Recovery Runner
  • 166 Views
  • 1 replies
  • 0 votes

Data Collection Suddenly Stop

Hi, Last night, I was collecting data using hundreds of tokens. However, the process unexpectedly stopped during the use of one token, even though it hadn’t reached the API limit and no error messages were recorded in the logs.Has anyone else encount...

yuhang by Recovery Runner
  • 222 Views
  • 1 replies
  • 0 votes

Moving of Fitbit Account to google account

I have a fitbit account created with my work email. I use this account for development purpose and use it to create and manage fitbit apps, request intraday data. As fitbit accounts are moving to google accounts, I tried to move this account to googl...

diptopol by Base Runner
  • 390 Views
  • 3 replies
  • 0 votes