Explore Plans
Mobile menu Close menu
FitbitFitbit

History of sleep duration below

This query returns a list of when you log sleep below the target hours you specify. Note: this query will only return future events after this Applet is created.

Developer info

API endpoint slug
fitbit.history_of_sleep_duration_below
Runtime method
performQuery("fitbit.history_of_sleep_duration_below")

Query fields

Target hours Text input > Regular expression

Label
Target hours
Helper text
e.g. 7.5
Slug
target_hours
Required
true
Can have default value
true

Ingredients

Total time slept in secondsThe total time you slept in seconds

Slug
TotalTimeSleptInSeconds
Filter code
Fitbit.historyOfSleepDurationBelow.TotalTimeSleptInSeconds
Type
String
Example
28800

Total time sleptThe total time you slept

Slug
TotalTimeSlept
Filter code
Fitbit.historyOfSleepDurationBelow.TotalTimeSlept
Type
String
Example
8h 0m

Date awokenDate when you awoke

Slug
DateAwoken
Filter code
Fitbit.historyOfSleepDurationBelow.DateAwoken
Type
Date (ISO8601)
Example
2020-07-07