Skip to content

Multiple Heartrate Documents

GET
/v2/usercollection/heartrate
# The '+' symbol in the timezone must be escaped to `%2B` if included.
curl --location --request GET 'https://api.ouraring.com/v2/usercollection/heartrate?start_datetime=2021-11-01T00:00:00-08:00&end_datetime=2021-12-01T00:00:00-08:00&fields=timestamp,bpm' \
--header 'Authorization: Bearer <token>'
start_datetime
Any of:
string format: date-time
end_datetime
Any of:
string format: date-time
next_token
Any of:
string
latest
Any of:
boolean

If True, returns most recent sample.

fields
Any of:
string

Comma-separated list of fields to include in the response, in addition to the always returned fields. Defaults to all fields if not provided.

Successful Response

Media typeapplication/json
Any of:
TimeSeriesResponse[PublicHeartRateRow]
object
data
required
Data
Array<object>
PublicHeartRateRow

Heart rate sample

object
timestamp
required

Timestamp of the discrete sample.

string
timestamp_unix
required

Timestamp of the discrete sample as unix time in milliseconds.

integer
bpm
required

Heart rate as beats per minute.

integer
source
required

Source of the sample.

string
Allowed values: awake workout rest sleep live session
next_token
Any of:
string
Example
{
"data": [
{
"source": "awake"
}
]
}

Client Exception

Unauthorized access exception. Usually means the access token is expired, malformed or revoked.

Access forbidden. Usually means the user’s subscription to Oura has expired and their data is not available via the API.

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}

Request Rate Limit Exceeded.