Saltar al contingut principal

Amazfit / Zepp Integration

Reverse-engineered API

Huami (the manufacturer of Amazfit and Zepp-branded smartwatches) does not publish a developer API. The vitalera integration targets the same Huami backend that the Zepp app talks to. Endpoints may change without notice.

Amazfit GTR, GTS, T-Rex, and Zepp-branded watches are some of the lowest-cost full-featured smartwatches on the market — widely used in emerging markets and for employee wellness pilots.


Data types

MeasurementEncodingLOINC
Heart rateBase64-packed minute arrays8867-4
StepsDaily + minute-level55423-8
SleepStages + duration93832-4
SpO2Spot readings + sleep min59408-5
StressHuami proprietary scorecustom
ActivityWorkouts + active minutes
CaloriesTotal + active
DistanceMeters

vitalera unpacks the base64-encoded minute arrays and exposes per-minute time series as regular FHIR Observations.


Regional hosts

Huami has separate API hosts by region:

RegionHost
Globalapi-mifit.huami.com
Chinaapi-mifit-cn.huami.com
Europeapi-mifit-de.huami.com

The region is detected during login.


Connection

curl -X POST https://api.vitalera.io/api/connected-accounts/amazfit/oauth/initiate/ \
-H "Authorization: Bearer <user_token>" \
-d '{"email": "user@example.com", "password": "••••••"}'

Credentials are exchanged for a Huami apptoken; the original password is not stored.


Next steps