Get All Devices — Live Health Data
curl --request GET \
--url https://api.stealthera.in/api/health-data \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/health-data', 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/health-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stealthera.in/api/health-data"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "<string>",
"nickname": "<string>",
"model": "<string>",
"deviceId": "<string>",
"status": "<string>",
"steps": 123,
"heartRate": 123,
"bloodOxygen": 123,
"bodyTemp": 123,
"phone": "<string>",
"updateTime": "<string>"
}
]Health Data
Get All Devices — Live Health Data
Returns a list of all registered devices with their latest health metrics pulled from the latest device snapshot.
Response fields per device:
| Field | Type | Description |
|---|---|---|
id | string | Device ID |
nickname | string | Human-readable label (defaults to device ID) |
model | string | Device model (default: H102CSH) |
deviceId | string | IMEI / device identifier |
status | string | Online / Offline |
steps | number | Current step count |
heartRate | number | Heart rate in BPM |
bloodOxygen | number | SpO2 percentage |
bodyTemp | number | Body temperature in °C |
phone | string | Associated phone number |
updateTime | string | Timestamp of last update (IST) |
GET
/
api
/
health-data
Get All Devices — Live Health Data
curl --request GET \
--url https://api.stealthera.in/api/health-data \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/health-data', 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/health-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stealthera.in/api/health-data"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "<string>",
"nickname": "<string>",
"model": "<string>",
"deviceId": "<string>",
"status": "<string>",
"steps": 123,
"heartRate": 123,
"bloodOxygen": 123,
"bodyTemp": 123,
"phone": "<string>",
"updateTime": "<string>"
}
]