Health
Get health data
Returns health measurements and stats. Behavior depends on parameters:
ProductionStagingUAT
GEThttps://ankiren.com/api/me/health
Parameters
Query Parameters
- type"height" | "weight"query
Filter by measurement type
- period"D" | "W" | "M" | …query
Time period for filtering (default M)
- limitintegerquery
Maximum measurements to return (default 50)
- offsetintegerquery
Pagination offset (default 0)
Responses
200 · Health data
application/json
{ "weight": { "latest": 70.5, "change": -0.5, "min": 69, "max": 72, "avg": 70.2, "count": 10 }, "height": { "latest": 175, "change": null, "min": 175, "max": 175, "avg": 175, "count": 1 } }
Sample Code
Đổi ngôn ngữ ở ô Language trên thanh Documentation.
cURL
curl -X GET 'https://ankiren.com/api/me/health' \ -H 'Authorization: Bearer <token>' \ -H 'Accept: application/json'