Skip to main content

Apple Health

By integrating the ROOK SDK, you can access available Apple Health data to retrieve body, physical, and sleep information from your linked users. Our SDK collects raw data from Apple Health, transforms it into structured data, and delivers it in JSON format through the ROOK SDK.

Apple Health.png

Apple Health Available Data

This is the data available from Apple Health that ROOK extracts:

Body Health

{
"body_summary": [
"saturation_granular_data_array",
"vo2max_mL_per_min_per_kg_int",
"hrv_sdnn_granular_data_array",
"temperature_avg_object",
"blood_glucose_avg_mg_per_dL_int",
"hr_minimum_bpm_int",
"sugar_intake_g_float",
"fiber_intake_g_float",
"calories_intake_kcal_float",
"bmi_float",
"blood_pressure_granular_data_array",
"hrv_avg_sdnn_float",
"hr_maximum_bpm_int",
"sodium_intake_mg_float",
"temperature_minimum_object",
"protein_intake_g_float",
"weight_kg_float",
"saturation_avg_percentage_int",
"hr_granular_data_array",
"carbohydrates_intake_g_float",
"blood_pressure_avg_object",
"cholesterol_intake_mg_float",
"blood_glucose_granular_data_array",
"temperature_granular_data_array",
"height_cm_int",
"fat_intake_g_float",
"hr_avg_bpm_int",
"temperature_maximum_object",
"hr_resting_bpm_int"
],
"body_blood_glucose_event": [
"blood_glucose_granular_data_array",
"blood_glucose_avg_mg_per_dL_int"
],
"body_blood_pressure_event": [
"blood_pressure_granular_data_array",
"blood_pressure_avg_object"
],
"body_metrics_event": [
"bmi_float",
"weight_kg_float",
"waist_circumference_cm_int",
"height_cm_int"
],
"body_heart_rate_event": [
"hrv_sdnn_granular_data_array",
"hr_avg_bpm_int",
"hrv_avg_sdnn_float",
"hr_granular_data_array",
"hr_minimum_bpm_int",
"hr_maximum_bpm_int",
"hr_resting_bpm_int"
],
"body_oxygenation_event": [
"vo2max_mL_per_min_per_kg_int",
"saturation_granular_data_array",
"saturation_avg_percentage_int"
],
"body_temperature_event": [
"temperature_avg_object",
"temperature_maximum_object",
"temperature_granular_data_array",
"temperature_minimum_object"
],

}

Physical Health

{
"physical_activity_event": [
"floors_climbed_granular_data_array",
"saturation_granular_data_array",
"activity_type_name_string",
"vo2max_mL_per_min_per_kg_int",
"steps_granular_data_array",
"swimming_num_strokes_float",
"hr_minimum_bpm_int",
"hrv_avg_sdnn_float",
"swimming_total_distance_meters_float",
"hr_maximum_bpm_int",
"calories_net_active_kcal_float",
"activity_duration_seconds_int",
"swimming_distance_granular_data_array",
"traveled_distance_meters_float",
"walked_distance_meters_float",
"saturation_avg_percentage_int",
"activity_start_datetime_string",
"hr_granular_data_array",
"floors_climbed_float",
"activity_end_datetime_string",
"calories_expenditure_kcal_float",
"traveled_distance_granular_data_array",
"steps_int",
"hr_avg_bpm_int",
"active_seconds_int",
"calories_basal_metabolic_rate_kcal_float",
"hr_resting_bpm_int"
],
"physical_summary": [
"saturation_granular_data_array",
"hrv_sdnn_granular_data_array",
"hr_minimum_bpm_int",
"steps_granular_data_array",
"active_steps_granular_data_array",
"swimming_num_strokes_float",
"hrv_avg_sdnn_float",
"steps_int",
"swimming_total_distance_meters_float",
"hr_maximum_bpm_int",
"calories_net_active_kcal_float",
"swimming_distance_granular_data_array",
"traveled_distance_meters_float",
"walked_distance_meters_float",
"saturation_avg_percentage_int",
"hr_granular_data_array",
"floors_climbed_float",
"traveled_distance_granular_data_array",
"hr_avg_bpm_int",
"active_seconds_int",
"floors_climbed_granular_data_array",
"calories_basal_metabolic_rate_kcal_float",
"hr_resting_bpm_int",
"active_steps_int"
],
"physical_heart_rate_event": [
"hrv_sdnn_granular_data_array",
"hr_avg_bpm_int",
"hrv_avg_sdnn_float",
"hr_granular_data_array",
"hr_minimum_bpm_int",
"hr_maximum_bpm_int",
"hr_resting_bpm_int"
],
"physical_steps_event": [
"accumulated_steps_int"
]
}

Sleep Health

{
"sleep_summary": [
"deep_sleep_duration_seconds_int",
"time_in_bed_seconds_int",
"sleep_date_string",
"rem_sleep_duration_seconds_int",
"saturation_granular_data_array",
"breaths_minimum_per_min_int",
"light_sleep_duration_seconds_int",
"hr_minimum_bpm_int",
"saturation_maximum_percentage_int",
"saturation_minimum_percentage_int",
"sleep_start_datetime_string",
"time_to_fall_asleep_seconds_int",
"breaths_avg_per_min_int",
"hrv_avg_sdnn_float",
"hr_maximum_bpm_int",
"hrv_sdnn_granular_data_array",
"time_awake_during_sleep_seconds_int",
"saturation_avg_percentage_int",
"hr_granular_data_array",
"breaths_minimum_per_min_int",
"breathing_granular_data_array",
"sleep_end_datetime_string",
"hr_avg_bpm_int",
"sleep_duration_seconds_int",
"hr_resting_bpm_int"
]
}
note

The data you receive depends on the permissions granted by the user when linking their data source.

Data Delivery:

Our Apple Health integration delivers notifications within minutes after a user completes an event and syncs their app. ROOK retrieves, processes, and delivers the data through our SDK, providing you with user insights efficiently.

Start Extracting Apple Health Data

To begin extracting health data from Apple Health, follow these steps:

Step 1: Integrate Our SDK

ROOK offers SDK compatible with Apple Health, allowing precise integration into your solution.

NativeFlutterCapacitorReact Native

Step 2: Set Up Your Connections Page

Enable the Apple Health data source on the connections page to allow your users to connect.

Connect Apple Health.png

Step 3: Receive Your Users' Data

Once users connect to the data source, you will start receiving their data. Utilize this data to its full potential.

{
"version":[],
"data_structure": "",
"client_uuid": "",
"user_id": "",
"body_health": {},
"physical_health": {},
"Sleep_health": {},
}