Health Data by Metric: Which API for Each
Recently re-verified:Body Temperature API: Core, Skin and Wrist Temperature Data (Oct 18),ECG API: Electrocardiogram and Irregular Rhythm Data (Oct 18),Distance Tracking API: Walking, Running and Activity Distance by Platform (Oct 18)
Want the provider view instead? Compare by category in the fitness API landscape, or read up on the concepts behind the numbers in the explainers. When you know the source, the integration guides take it from there.
Cardio & recovery
The signals from the heart — measured and estimated.
- Heart Rate API: How to Get Heart-Rate Data Into Your AppGet heart-rate data via HealthKit, Health Connect, and wearable cloud APIs. HR is measured and wellness-grade. Compare sources and pick the right one.Verified July 24, 2026
- Resting Heart Rate API: How to Read RHR From HealthKit and Health ConnectRead resting heart rate from HealthKit, Health Connect and wearable APIs. Apple estimates and rewrites it during the day; Android stores what apps write.UpdatedVerified October 4, 2026
- HRV API: How to Get Heart Rate Variability DataGet HRV data from HealthKit, Health Connect, Oura, WHOOP, Garmin and more. Measured, but RMSSD vs SDNN and the timing window matter. Best pick inside.Verified July 24, 2026
- VO2 Max API: How to Get VO2 Max DataGet VO2 max via API: HealthKit, Health Connect, Garmin, Fitbit, Oura. Consumer VO2 max is estimated, not lab-measured. Sources, accuracy, best pick.Verified July 24, 2026
- Blood Oxygen (SpO2) API: How to Get SpO2 DataGet SpO2/blood oxygen data from HealthKit, Health Connect, Fitbit, Garmin, Oura, and WHOOP. Measured but wellness-grade, not a medical diagnostic.Verified July 24, 2026
- Heart Rate Zones API: Zone Thresholds and Time in ZoneHeart rate zones as data: Google Health API daily thresholds, time and calories per zone, Active Zone Minutes, and Bluetooth User Data zone limits.UpdatedVerified October 18, 2026
- ECG API: Electrocardiogram and Irregular Rhythm DataECG recordings and irregular rhythm alerts on each platform: Google Health API waveforms and alert windows, HealthKit's read-only types, and Android's gap.UpdatedVerified October 18, 2026
Activity & movement
What the body does — steps, workouts, routes, energy.
- Step Counting API: How to Get Step DataGet step counts from the phone (HealthKit, CMPedometer, Health Connect) or wearables. Handle phone+watch double-counting and pick the right source.Verified July 24, 2026
- Workout Detection API: Get Recorded Workout SessionsRead workout sessions from HealthKit, Health Connect, Strava and Garmin. Which providers auto-detect vs need a manual start, plus the best pick.Verified July 24, 2026
- GPS Activity API: How to Get Route Data from WorkoutsGet GPS route data from HealthKit, Health Connect, Strava and Garmin. Coordinates are measured but noisy; watch Strava's display terms. Best pick inside.Verified July 24, 2026
- Calorie Tracking API: How to Get Calorie DataGet calorie data from HealthKit, Health Connect and wearables. Burned calories are estimates; consumed needs a nutrition API like Nutritionix.Verified July 24, 2026
- Distance Tracking API: Walking, Running and Activity Distance by PlatformApple splits distance into nine HealthKit types by activity; the Google Health API, Health Connect and Wear OS each use one. Units and limits compared.UpdatedVerified October 18, 2026
- Floors Climbed and Elevation API: Floors, Elevation Gain and AltitudeFloors and elevation on each platform: integer or fractional floors, signed gain or separate gain and loss, and HealthKit's lack of an elevation type.UpdatedVerified October 18, 2026
- Active Minutes API: Activity Intensity, Exercise Time and Sedentary TimeActive minutes on each platform: Google's light, moderate and vigorous minutes, Health Connect intensity records, HealthKit exercise time, sedentary time.UpdatedVerified October 18, 2026
Sleep & body
Overnight staging and body measurements.
- Sleep Tracking API: How to Get Sleep Data Into Your AppGet sleep data via API from Oura, WHOOP, Fitbit, Garmin, HealthKit and Health Connect. Duration is measured, stages are estimated and mapped differently.Verified July 24, 2026
- Body Composition API: Weight, Body Fat, and Lean Mass DataGet body composition via API: weight, body fat %, BMI, lean mass from HealthKit, Health Connect, and Withings scales. Most wearables don't measure it.Verified July 24, 2026
Vitals & reproductive health
The sensitive end of the store — sourced, typed, and privacy-first.
- Blood Pressure API: How to Read BP Data In Your AppHow blood pressure works in HealthKit and Health Connect: systolic and diastolic as a pair, mandatory cuff-site fields, and why no wearable supplies it.Verified August 12, 2026
- Blood Glucose API: How to Get Glucose Data Into Your AppRead glucose via HealthKit bloodGlucose and Health Connect BloodGlucoseRecord. Meter and CGM sourced, mg/dL vs mmol/L traps, and the medical-claim line.Verified August 12, 2026
- Respiratory Rate API: How to Get Breathing-Rate DataRead respiratory rate from HealthKit, Health Connect, and wearable APIs. The schemas hold a number and a timestamp, and never say how it was derived.Verified August 12, 2026
- Body Temperature API: Core, Skin and Wrist Temperature DataBody, basal and skin temperature on each platform: absolute readings, deltas against a baseline, nightly means, and the Celsius flag on Bluetooth.UpdatedVerified October 18, 2026
- Menstrual Cycle API: How to Get Cycle Tracking DataRead cycle data via HealthKit Reproductive Health types and Health Connect Cycle Tracking records. Mostly logged, not measured - and highly sensitive.Verified August 12, 2026
Running, cycling & swimming
Sport-specific types — power, cadence, running form and swim strokes — compared platform by platform.
- Running Metrics API: Speed, Power, Stride Length and Running Form DataRunning speed, power and form in HealthKit, Wear OS, Health Connect and Bluetooth RSC: which platforms have stride, oscillation and ground contact time.UpdatedVerified October 18, 2026
- Cycling Power API: Power, Cadence and Speed Data Across PlatformsCycling power, cadence and speed in HealthKit, Health Connect, Wear OS and Bluetooth: samples or series, counts per minute or RPM, and revolutions.UpdatedVerified October 18, 2026
- Swimming Data API: Strokes, Laps and Swim Distance by PlatformSwim strokes, laps and distance in the Google Health API, HealthKit and Wear OS: per-lap or cumulative counts, stroke types, and Health Connect's gap.UpdatedVerified October 18, 2026
Mental health, medications & medical records
Self-reported moods, screening answers, medication logs and FHIR records, with what each platform documents.
- State of Mind API: How to Read and Write Mood Data in HealthKitHKStateOfMind holds logged moods and emotions: a kind, a valence, labels and associations. What Apple documents, what it leaves blank, and Android's gap.UpdatedVerified October 4, 2026
- Mental Health Assessments API: PHQ-9 and GAD-7 in HealthKitHKPHQ9Assessment and HKGAD7Assessment store questionnaire answers with a score and risk level. Fields Apple documents, gaps, and Health Connect's absence.UpdatedVerified October 4, 2026
- Medications API: Reading Medication and Dose Logs From HealthKitHealthKit's iOS 26 Medications API reads the medications a person tracks in Health and their dose logs. Fields, log statuses, RxNorm codes, Android's gap.UpdatedVerified October 4, 2026
- Clinical Records API: Reading FHIR Health Records in HealthKitRead FHIR health records with HKClinicalRecord: the nine clinical types, DSTU2 and R4, the health-records entitlement, usage key, and SMART Health Cards.UpdatedVerified October 4, 2026
- Health Connect Medical Records API: FHIR Data on AndroidWrite and read FHIR R4 and R4B records in Health Connect: MedicalResource, MedicalDataSource, the 12 medical permissions, and the experimental API status.UpdatedVerified October 4, 2026
Frequently asked questions
- Where does health data actually come from?
- For most metrics you have three routes: the on-device platform stores (Apple HealthKit on iOS, Android Health Connect), a specific wearable's cloud API (Fitbit, Garmin, Oura, WHOOP, Strava), or a health-data aggregator that normalizes many of them behind one integration. Which route is best depends on the metric — some are nearly universal (steps, heart rate), others need specific hardware (body composition needs a smart scale).
- Is the data measured or estimated?
- It varies by metric, and it matters. Heart rate and HRV are measured; steps are counted (algorithmically); calorie burn, VO2 max, and sleep stages are modeled estimates, not clinical measurements. Each page here is explicit about which, because presenting an estimate as a measurement is both misleading and, for health features, a compliance risk. Treat consumer-device data as a wellness signal, not a diagnosis.
- Do I need a wearable for every metric?
- No. Steps, basic activity, and GPS can come from the phone itself. But recovery and physiology metrics (HRV, VO2 max, blood oxygen, sleep stages) generally require a wearable, and body composition needs a smart scale or manual entry. Each page notes what hardware, if any, the user must have.
Independent comparison, last reviewed July 24, 2026. Pricing, rate limits, and feature availability change often — confirm current details in each provider’s official documentation before you commit. Product and company names are trademarks of their respective owners; AIFitnessAPI is not affiliated with, endorsed by, or sponsored by any product listed here.