Read Latest Heart Rate via HTTP
Last updated
Last updated
This method allows reading the latest heart rate of the user. Note that most heart rate monitors can measure changes in heart rate once per second, so it is reasonable to query this endpoint once per 500 ms to receive real-time heart rate data.
Request:
name | value |
---|---|
Query Parameters explained:
name | type | possible values | default | description |
---|---|---|---|---|
Headers Parameters explained:
name | value | description |
---|---|---|
Response:
name | type | description |
---|---|---|
Specific Errors:
http status code | reason |
---|---|
cURL Request Example:
Response Example
cURL Request Example with response_mode=text_plain_only_heart_rate
Response Example with response_mode=text_plain_only_heart_rate
includes header content-type: text/plain; charset=UTF-8
url
https://dev.pulsoid.net/api/v1/data/heart_rate/latest
method
GET
scope
data:heart_rate:read
response_mode
string
json
, text_plain_only_heart_rate
json
Allow control format of response
Authorization
Bearer {access token}
How to obtains access token https://docs.pulsoid.net/#how-to-obtain-an-authorization-token
measured_at
number
Unix timestamp in milliseconds
data
object
Holds metrics data
data.heart_rate
number
User's latest received heart rate
412
User doesn't have any heart rate data