About this query
Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.
Developer info
- Description
- API endpoint slug
- WithingsSleep.history_of_my_sleep_data_exports
- Runtime method
- performQuery("WithingsSleep.history_of_my_sleep_data_exports")
Query fields
Device Dropdown list
- Label
- Which sensor do you want to use?
- Helper text
- Slug
- device
- Required
- true
- Can have default value
- false
Ingredients
Sleep duration
- Slug
- sleep_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.SleepDuration
- Type
- String
- Example
- 26500
Device user
- Slug
- device_user
- Filter code
- WithingsSleep.historyOfMySleepDataExports.DeviceUser
- Type
- String
- Example
- Tom
In bed dateand time
- Slug
- bed_in
- Filter code
- WithingsSleep.historyOfMySleepDataExports.InBedDateandTime
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Device mac
- Slug
- device_mac
- Filter code
- WithingsSleep.historyOfMySleepDataExports.DeviceMac
- Type
- String
- Example
- 00:E4:XX:XX:XX:XX
Outof bed dateand time
- Slug
- bed_out
- Filter code
- WithingsSleep.historyOfMySleepDataExports.OutofBedDateandTime
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Light sleep duration
- Slug
- light_sleep_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.LightSleepDuration
- Type
- String
- Example
- 16000
Deep sleep duration
- Slug
- deep_sleep_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.DeepSleepDuration
- Type
- String
- Example
- 5000
Rem sleep duration
- Slug
- rem_sleep_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.RemSleepDuration
- Type
- String
- Example
- 5500
Sleep score
- Slug
- sleep_score
- Filter code
- WithingsSleep.historyOfMySleepDataExports.SleepScore
- Type
- String
- Example
- 100
Snoring duration
- Slug
- snoring_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.SnoringDuration
- Type
- String
- Example
- 1800
Snoring episodes count
- Slug
- snoring_count
- Filter code
- WithingsSleep.historyOfMySleepDataExports.SnoringEpisodesCount
- Type
- String
- Example
- 8
Heart rate average
- Slug
- hr_average
- Filter code
- WithingsSleep.historyOfMySleepDataExports.HeartRateAverage
- Type
- String
- Example
- 54
Awake duration
- Slug
- wakeup_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.AwakeDuration
- Type
- String
- Example
- 1200
Status sleep score
- Slug
- status_sleep_score
- Filter code
- WithingsSleep.historyOfMySleepDataExports.StatusSleepScore
- Type
- String
- Example
- Restful night
Status regularity
- Slug
- status_regularity
- Filter code
- WithingsSleep.historyOfMySleepDataExports.StatusRegularity
- Type
- String
- Example
- Average
Status recovery
- Slug
- status_recovery
- Filter code
- WithingsSleep.historyOfMySleepDataExports.StatusRecovery
- Type
- String
- Example
- Average
Nb interruptions
- Slug
- wakeup_count
- Filter code
- WithingsSleep.historyOfMySleepDataExports.NbInterruptions
- Type
- String
- Example
- 4
Time to sleep
- Slug
- duration_to_sleep
- Filter code
- WithingsSleep.historyOfMySleepDataExports.TimeToSleep
- Type
- String
- Example
- 720
Time to get up
- Slug
- duration_to_wakeup
- Filter code
- WithingsSleep.historyOfMySleepDataExports.TimeToGetUp
- Type
- String
- Example
- 720