Apple Health API: Data Access, HealthKit and Integration Options

Written by:
Paul Burggraf
Apple Health API integration

Apple Health is one of the most significant health data sources available on mobile. For the roughly one billion active iPhone users globally, it is the central health ecosystem where health and fitness data from every app and connected device on their phone is stored and consolidated. For digital health providers, insurers, and clinical research platforms, it represents access to a longitudinal health record that most users already have without asking them to buy a new device or install a new sensor.

Getting to that data requires understanding something that many teams discover only after they have started building: Apple Health does not work like other wearable APIs. The architecture is different from the ground up, and that difference has significant implications for how you design your integration.

What Apple Health Actually Is

Apple Health is an on-device aggregator. It is not a cloud service, and there is no Apple Health API in the conventional sense, meaning no server endpoint to call, no OAuth token to exchange, no webhook to register. All of the data lives on the user's iPhone, and access to it is provided through HealthKit, Apple's on-device framework for reading and writing health data.

This is a fundamental architectural distinction. When you integrate with WHOOP, Garmin, or Oura, you are calling a cloud API: the user authorizes your server to pull data from the manufacturer's platform. When you integrate with Apple Health, your iOS app asks the user for permission to read data from their device. The data flows from the phone, not from Apple's servers.

Everything that follows from this, such as he permission model, the sync architecture, the platform constraints, the freshness characteristics, flows from that single fact.

What Data Apple Health Aggregates

Apple Health collects more than just Apple Watch data. It is a consolidated ecosystem that accepts data from every app and connected device the user has authorized. A user who wears a Garmin, uses a Withings scale, tracks nutrition in MyFitnessPal, and wears an Apple Watch will have data from all of those sources in a single HealthKit store on their phone.

The data types available through HealthKit span a wide range of health domains:

  • Activity: steps, distance, active energy, basal energy, exercise minutes, stand hours, flights climbed, VO2 max estimate
  • Heart and cardiovascular: heart rate (continuous), resting heart rate, heart rate variability (SDNN), walking heart rate average, cardio fitness
  • Sleep: sleep stages (awake, REM, core, deep) on devices running watchOS 9 and iOS 16 or later, plus sleep duration from third-party apps
  • Body measurements: weight, height, BMI, body fat percentage, waist circumference, lean body mass
  • Respiratory: respiratory rate, oxygen saturation (SpO2), inhaler usage
  • Nutrition: calories, macronutrients, water intake, micronutrients
  • Reproductive health: menstrual cycle data, ovulation test results, pregnancy and lactation records
  • Mindfulness and mental health: mindful minutes, mood and emotion logs (iOS 17 and later)
  • Clinical records: lab results, medications, immunizations, allergies, clinical notes (where connected to a supported health system)
  • ECG: electrocardiogram recordings from Apple Watch Series 4 and later
  • Blood glucose: readings from connected glucometers
  • Blood pressure: readings from connected devices

The practical implication for health platforms is that Apple Health data can represent a much richer longitudinal record than any single wearable device provides on its own.

How HealthKit Access Works

HealthKit uses a per-type, user-granted permission model. There is no blanket access to all health data. Your app requests authorization for each specific data type it needs, and the user approves or denies each type individually. Read and write permissions are separate, requesting permission to read steps does not grant permission to write steps.

Authorization is requested at runtime through a system dialog. Apple does not tell your app whether a user denied a specific permission or simply has no data of that type, both return empty results. This protects user privacy but means your app cannot distinguish between "no permission" and "no data."

A few important constraints of the permission model:

  • Users can revoke permissions at any time through the iOS Health app settings, without notifying your app
  • Permissions granted on one device do not automatically carry over if the user gets a new iPhone, unless health data is migrated
  • Your app cannot request access to a data type that Apple has restricted to specific entitlement categories (such as clinical records), without Apple granting that entitlement separately

The Bottleneck: The On-Device Constraint

The on-device nature of HealthKit is the most consequential architectural fact for integration planning. Because the data lives on the user's device, reading it requires a native iOS app installed on that device. There is no server-side path to Apple Health data.

This means:

  • You need a native iOS app. A web app, a backend service, and an SDK alone cannot read HealthKit data. The read must happen within an iOS application running on the user's device.
  • There is no background pull from your server. You cannot initiate a data sync from your backend. The sync is always device-initiated, from within your app.
  • Data freshness is bounded by when the app runs. If a user has not opened your app in three days, you have three days of data to collect the next time they do, assuming you have set up background delivery correctly.

For platforms that need continuous, near-real-time health data, this constraint requires a different architecture than the polling or webhook models used for cloud-based wearable APIs.

Background Delivery and Sync

HealthKit provides a mechanism called background delivery, which allows your app to be awakened by iOS when new data of a specified type becomes available, even if the app is not in the foreground. When enabled, iOS notifies your app that new data exists, your app wakes briefly in the background to read and upload it, and then returns to a suspended state.

Background delivery is not instantaneous. iOS batches deliveries based on the data type's update frequency, hourly for most fitness metrics, more frequent for heart rate. For applications that require tight data latency, background delivery reduces the gap but does not eliminate it.

Background delivery also requires the app to remain installed and the user to have granted permission. If the app is deleted, background delivery stops. If the device is restarted, iOS may delay background deliveries until the device has been unlocked at least once.

For health platforms, this means the mobile app is an active part of the data pipeline, and its continued presence on the user's device matters for data completeness.

What Are The Key Integration Challenges

iOS only

HealthKit is an Apple framework. There is no Android equivalent and no cross-platform path to the same data store. Android users will need a different integration path, typically through Google Health Connect or direct device manufacturer APIs.

HRV as SDNN, not RMSSD

Apple Watch measures HRV as SDNN, the standard deviation of all R-R intervals over a measurement window. Most other wearable platforms, like WHOOP, Oura, Garmin, Polar, report RMSSD, the root mean square of successive differences. The two are not interchangeable. Platforms that aggregate HRV from Apple Health alongside other wearables need to resolve this at the normalization layer, not the application layer. Check out our full guide on HRV, SDNN and RMSSD!

Multiple data sources writing to the same type

A user may have both Apple Watch and a third-party heart rate monitor writing heart rate samples to HealthKit. Each record carries a source identifier, but your application needs to handle deduplication, source prioritization, and the fact that the same metric window may contain overlapping records from different devices.

No historical sync limit

HealthKit provides access to all historical data the user has stored, with no enforced lookback window. For a user who has been on iPhone for several years, an initial sync can involve a very large volume of records across many data types. Rate and batch limits need to be planned for during initial sync.

What This Means for Multi-Device Health Platforms

For platforms integrating health data from a mixed-device user base, Apple Health is a high-priority integration because of its reach and data depth. The architectural differences require platform-level solutions:

  • A mobile SDK that handles HealthKit authorization, background delivery, and batched upload on behalf of partner applications
  • Normalization of Apple's SDNN alongside RMSSD from other devices, so downstream models and engagement logic receive comparable data regardless of source device
  • Source deduplication logic that handles the multiple-writer problem in HealthKit without discarding valid data from non-Apple devices written into the store
  • Handling of the permission ambiguity (denied versus no data) in a way that does not misrepresent data completeness to downstream users

How Thryve Handles Apple Health Integration

Thryve's platform includes Apple Health as one of 500+ connected wearable and health data sources. The integration is delivered through Thryve's wearable API, which handles HealthKit authorization, background delivery, and data batching within the user's iOS app. Partner applications do not need to implement the HealthKit layer independently.

Apple Health data, including SDNN HRV from Apple Watch, is normalized alongside data from WHOOP, Oura, Garmin, and other connected devices before it reaches the partner application. The SDNN-to-RMSSD distinction is resolved at the infrastructure layer, so engagement logic, risk models, and AI applications built on top of Thryve data receive consistent, comparable HRV values regardless of which device a given user is wearing.

For platforms that need Apple Health coverage as part of a multi-device integration, without building and maintaining a native HealthKit layer independently, our API is the practical path.

If you are building a digital health product, an insurance analytics application, or a clinical research platform that needs Apple Health as part of a multi-device wearable integration, book a demo with Thryve.

‍

Paul Burggraf

Co-founder and Chief Science Officer at Thryve

Paul Burggraf, co-founder and Chief Science Officer at Thryve, is the brain behind all health analytics at Thryve and drives our research partnerships with the German government and leading healthcare institutions. As an economical engineer turned strategy consultant, prior to Thryve, he built the foundational forecasting models for multi-billion investments of big utilities using complex system dynamics. Besides applying model analytics and analytical research to health sensors, he’s a guest lecturer at the Zurich University of Applied Sciences in the Life Science Master „Modelling of Complex Systems“

About the Author