Get a list of sleeps the user has
Returns a single sleep
The id of the resource.
[deprecated - use humanId]
Unique user identifier
The day the sleep was recorded
The original start date and time of the sleep segment in UTC time
The original end date and time of the sleep segment in UTC time
The offset from UTC time in +/-hh:mm (e.g. -04:00)
The id of the originating service
A boolean value indicating if this sleep was the main sleep of the day (default true when not specified by source)
The time asleep during the segment (in minutes)
The time awake during the segment (in minutes)
The efficiency score
The number of minutes it took to fall asleep
The number of minutes in bed after waking up
The total number of minutes spent in bed
The number of times the user woke up while in bed
The time the measurement was updated on the Human API server
The time the measurement was created on the Human API server
Time series data for the sleep, such as quality. See below for details
Add time_series=true to get time series data for sleeps. See below for details.
Add time_series=true to get time series data for sleeps. See below for details
The timeSeries object can have multiple embedded objects. In the example below there is one object called “quality”, some services might provide other properties such as “heartRate” or “breathing” etc.
The embedded objects have the following properties:
Type of data, indexed with fixed time interval (See intervalInMillis) or timestamped.
If the type is indexed this indicates the number of milliseconds between each value.
The array of values, single values (indexed) or key-value pairs* (timestamped).
Timestamp represents the number of seconds from startTime.
Some series have standardized values across sources. Standard series are listed below.
0: wide awake, 1: awake, 2: light sleep, 3: regular sleep, 4: deep sleep, 5: REM sleep