Read Latest Heart Rate via HTTP
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:
url
https://dev.pulsoid.net/api/v1/data/heart_rate/latest
method
GET
scope
data:heart_rate:read
Query Parameters explained:
response_mode
string
json
, text_plain_only_heart_rate
json
Allow control format of response
Headers Parameters explained:
Authorization
Bearer {access token}
Response:
measured_at
number
Unix timestamp in milliseconds
data
object
Holds metrics data
data.heart_rate
number
User's latest received heart rate
Specific Errors:
412
User doesn't have any heart rate data
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
Last updated