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:
name | value |
---|---|
url |
|
method |
|
scope |
|
Query Parameters explained:
name | type | possible values | default | description |
---|---|---|---|---|
response_mode | string |
|
| Allow control format of response |
Headers Parameters explained:
name | value | description |
---|---|---|
Authorization | Bearer {access token} | How to obtains access token https://docs.pulsoid.net/#how-to-obtain-an-authorization-token |
Response:
name | type | description |
---|---|---|
measured_at | number | Unix timestamp in milliseconds |
data | object | Holds metrics data |
data.heart_rate | number | User's latest received heart rate |
Specific Errors:
http status code | reason |
---|---|
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