This query returns a list of when your Fitbit logs new sleep.
Developer info
- API endpoint slug
- fitbit.history_of_sleep_logged
- Runtime method
- performQuery("fitbit.history_of_sleep_logged")
Query fields
No fields for this query
Ingredients
Restless countNumber of moments you were restless while sleeping
- Slug
- RestlessCount
- Filter code
- Fitbit.historyOfSleepLogged.RestlessCount
- Type
- String
- Example
- 4
Time awakeThe time spent awake
- Slug
- TimeAwake
- Filter code
- Fitbit.historyOfSleepLogged.TimeAwake
- Type
- String
- Example
- 30m
Total time slept in secondsThe total time you slept, in seconds
- Slug
- TotalTimeSleptInSeconds
- Filter code
- Fitbit.historyOfSleepLogged.TotalTimeSleptInSeconds
- Type
- String
- Example
- 28800
Awake countNumber of moments you were awake while trying to sleep
- Slug
- AwakeCount
- Filter code
- Fitbit.historyOfSleepLogged.AwakeCount
- Type
- String
- Example
- 2
Time to fall asleepNumber of minutes before falling asleep
- Slug
- TimeToFallAsleep
- Filter code
- Fitbit.historyOfSleepLogged.TimeToFallAsleep
- Type
- String
- Example
- 7m
Fell asleep atThe date and time you fell asleep, localized to your Fitbit timezone setting
- Slug
- FellAsleepAt
- Filter code
- Fitbit.historyOfSleepLogged.FellAsleepAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Time to leave bedThe time spent in bed after awaking
- Slug
- TimeToLeaveBed
- Filter code
- Fitbit.historyOfSleepLogged.TimeToLeaveBed
- Type
- String
- Example
- 10m
Total time sleptThe total time you slept
- Slug
- TotalTimeSlept
- Filter code
- Fitbit.historyOfSleepLogged.TotalTimeSlept
- Type
- String
- Example
- 8h 0m
Time awake secondsThe time spent awake, in seconds
- Slug
- TimeAwakeSeconds
- Filter code
- Fitbit.historyOfSleepLogged.TimeAwakeSeconds
- Type
- String
- Example
- 1800
Time to leave bed secondsThe time spent in bed after awaking, in seconds
- Slug
- TimeToLeaveBedSeconds
- Filter code
- Fitbit.historyOfSleepLogged.TimeToLeaveBedSeconds
- Type
- String
- Example
- 600
Time to fall asleep secondsNumber of seconds before falling asleep
- Slug
- TimeToFallAsleepSeconds
- Filter code
- Fitbit.historyOfSleepLogged.TimeToFallAsleepSeconds
- Type
- String
- Example
- 420
Awoke atThe date and time you woke up, localized to your Fitbit timezone setting
- Slug
- AwokeAt
- Filter code
- Fitbit.historyOfSleepLogged.AwokeAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00