Support for the legacy Fitbit Web API ends on September 30, 2026
Important: Support for the legacy Fitbit Web API ends on September 30, 2026. After this date the API will continue to operate, but Google will no longer fix bugs or provide API support. On October 30, 2026, the Fitbit Web API will be turned off and will no longer function or sync data to or from Fitbit users. To continue accessing data for your users after this date, migrate to the Google Health API.
Host API
chevron down
 

Host API

Interface: Host

Host API Information about the environment in which the companion runs

import { me as companion } from "companion"

console.log(`App Name: ${companion.host.app.name}`);
console.log(`App Version: ${companion.host.app.version}`);

console.log(`OS Name: ${companion.host.os.name}`);
console.log(`OS Version: ${companion.host.os.version}`);

Properties

readonly app

{ readonly name: string; readonly version: string; }

readonly os

{ readonly name: "Android" or "iOS" or "Windows"; readonly version: string; }