Forum Posts

"Prepare for verification" complains about scopes?

Started migrating my app from the Fitbit API to the new Google Health API, but got stuck at the "Prepare for verification" step. Specifically, I see this message:> The following scopes are not available for external usage, please remove them from you...

Introducing the next phase of the Fitbit Web API

Hi Everyone, Today marks the start of a new chapter! We are officially opening availability for the next generation of our platform: The Google Health API. This update is a total modernization of our foundation, rebuilt from the ground up on Google’s...

Using with Google Health API

Hi, noob here, we started dev using the charge 6 with the google heath api using python based on examples on:this:https://developers.google.com/health/libraries#pythonas well as endpoints listed here:https://developers.google.com/health/reference/res...

octega by Jogger
  • 90 Views
  • 0 replies
  • 0 votes

Public Preview food logging breaks food log endpoint

If you switch to the Public Preview in the Android app and then log a food from the app, /1/user/-/foods/log/date/<DATE>.json endpoint returns an internal error when trying to access it:{"error": {"code": 500,"message": "Internal error encountered.",...

jl__ by Base Runner
  • 95 Views
  • 2 replies
  • 1 votes

Data tracking across device types

Hello, I am a researcher currently in the development stage of a project using fitbit data. Currently we are IRB approved to use our own devices and personal accounts for data tracking and have only used the personal application interface. We've only...

Why can't we log water for dates in the future?

The API allows us to log food for dates in the future, however, if you try to log water for a date in the future you get a 400 response.Please make it consistent and allow us to log water for future dates. It is particularly hard to manage this restr...

Getting error while fetching AZM intraday data

Hello everyone,I am trying to fetch AMZ (Active Zone Minutes) data for getting 2x vigorous and peak data via fitbit API with valid accessToken but I am getting permission denied error.Application Type : ServerScopes for getting accessToken: temperatu...

jczero2 by Jogger
  • 190 Views
  • 3 replies
  • 0 votes

Resolved! Temporary disabling subscription endpoint

we're looking to deploy a code change that will require some minor downtime and was wondering if we disabled the subscription endpoint, will fitbit just toss that data away or will they hold onto it and push it once it's enabled again?we're trying to...

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
  • 267 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
  • 385 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
  • 2486 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
  • 1367 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
  • 1034 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
  • 272 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
  • 345 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
  • 5069 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
  • 276 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
  • 460 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
  • 330 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
  • 1740 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
  • 579 Views
  • 1 replies
  • 0 votes