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
- This query returns a list of instances of when your sleep data was exported.
- 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
- If you have more than one sensor linked to your Withings Health Mate account, you can select which one you want to use.
- Slug
- device
- Required
- true
- Can have default value
- false
Ingredients
Sleep durationSleep duration of your latest sleep data (in seconds)
- Slug
- sleep_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.SleepDuration
- Type
- String
- Example
- 26500
Device userUsername associated to the sleep sensor
- Slug
- device_user
- Filter code
- WithingsSleep.historyOfMySleepDataExports.DeviceUser
- Type
- String
- Example
- Tom
In bed dateand timeDate and time when you got in bed
- Slug
- bed_in
- Filter code
- WithingsSleep.historyOfMySleepDataExports.InBedDateandTime
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Device macMAC address of your sleep sensor
- Slug
- device_mac
- Filter code
- WithingsSleep.historyOfMySleepDataExports.DeviceMac
- Type
- String
- Example
- 00:E4:XX:XX:XX:XX
Outof bed dateand timeDate and time when you got out of bed
- Slug
- bed_out
- Filter code
- WithingsSleep.historyOfMySleepDataExports.OutofBedDateandTime
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Light sleep durationTotal light sleep duration of your latest sleep data (in seconds)
- Slug
- light_sleep_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.LightSleepDuration
- Type
- String
- Example
- 16000
Deep sleep durationTotal deep sleep duration of your latest sleep data (in seconds)
- Slug
- deep_sleep_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.DeepSleepDuration
- Type
- String
- Example
- 5000
Rem sleep durationTotal REM sleep duration of your latest sleep data (in seconds)
- Slug
- rem_sleep_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.RemSleepDuration
- Type
- String
- Example
- 5500
Sleep scoreSleep score assigned to your latest sleep data
- Slug
- sleep_score
- Filter code
- WithingsSleep.historyOfMySleepDataExports.SleepScore
- Type
- String
- Example
- 100
Snoring durationTotal snoring duration of your latest sleep data (in seconds)
- Slug
- snoring_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.SnoringDuration
- Type
- String
- Example
- 1800
Snoring episodes countNumber of snoring episodes that occurred during your latest sleep data (in seconds)
- Slug
- snoring_count
- Filter code
- WithingsSleep.historyOfMySleepDataExports.SnoringEpisodesCount
- Type
- String
- Example
- 8
Heart rate averageAverage measured heart rate during your latest sleep data
- Slug
- hr_average
- Filter code
- WithingsSleep.historyOfMySleepDataExports.HeartRateAverage
- Type
- String
- Example
- 54
Awake durationTotal awake duration of your latest sleep data (in seconds)
- Slug
- wakeup_duration
- Filter code
- WithingsSleep.historyOfMySleepDataExports.AwakeDuration
- Type
- String
- Example
- 1200
Status sleep scoreSleep Score status of your latest sleep data
- Slug
- status_sleep_score
- Filter code
- WithingsSleep.historyOfMySleepDataExports.StatusSleepScore
- Type
- String
- Example
- Restful night
Status regularityRegularity status of your latest sleep data
- Slug
- status_regularity
- Filter code
- WithingsSleep.historyOfMySleepDataExports.StatusRegularity
- Type
- String
- Example
- Average
Status recoveryRecovery status of your latest sleep data
- Slug
- status_recovery
- Filter code
- WithingsSleep.historyOfMySleepDataExports.StatusRecovery
- Type
- String
- Example
- Average
Nb interruptionsNumber of interruptions that occured during your latest sleep data
- Slug
- wakeup_count
- Filter code
- WithingsSleep.historyOfMySleepDataExports.NbInterruptions
- Type
- String
- Example
- 4
Time to sleepTime to fall asleep of your latest sleep data
- Slug
- duration_to_sleep
- Filter code
- WithingsSleep.historyOfMySleepDataExports.TimeToSleep
- Type
- String
- Example
- 720
Time to get upTime to get up of your latest sleep data
- Slug
- duration_to_wakeup
- Filter code
- WithingsSleep.historyOfMySleepDataExports.TimeToGetUp
- Type
- String
- Example
- 720