Blood Ketone
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/bloodketone \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/bloodketone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/bloodketone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stealthera.in/api/device/{deviceId}/bloodketone"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"date": "<string>",
"series": [
{}
],
"average": 123,
"max": 123,
"min": 123
}{
"error": "<string>"
}More Metrics
Blood Ketone
Returns blood ketone time-series data for a device. Triggers one history read.
Response fields:
| Field | Type | Description |
|---|---|---|
deviceId | string | Device IMEI |
date | string | Date (YYYY-MM-DD) |
series | array | [{ time: string, value: number }] — readings in mmol/L |
average | number | Average ketone level |
max | number | Maximum reading |
min | number | Minimum reading |
GET
/
api
/
device
/
{deviceId}
/
bloodketone
Blood Ketone
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/bloodketone \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/bloodketone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/bloodketone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stealthera.in/api/device/{deviceId}/bloodketone"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"date": "<string>",
"series": [
{}
],
"average": 123,
"max": 123,
"min": 123
}{
"error": "<string>"
}