---
title: Data types
framework: healthkit
role: collectionGroup
role_heading: API Collection
path: healthkit/data-types
---

# Data types

Specify the kind of data used in HealthKit.

## Overview

Overview HealthKit uses HKObjectType subclasses to identify the different types of data stored in HealthKit, from inherent data that doesn’t typically change over time to complex data types that combine multiple samples or compute values over sets of samples. To create a type object, call the appropriate HKObjectType class method, and pass in the desired type identifier. let bloodType = HKObjectType.characteristicType(forIdentifier: .bloodType)

let caloriesConsumed = HKObjectType.quantityType(forIdentifier: .dietaryEnergyConsumed)

let sleepAnalysis = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) You can use the resulting object types to request permission to access the data, save new data to the HealthKit store, or read data from the HealthKit store.

## Topics

### Object type subclasses

- [HKCharacteristicType](healthkit/hkcharacteristictype.md)
- [HKQuantityType](healthkit/hkquantitytype.md)
- [HKCategoryType](healthkit/hkcategorytype.md)
- [HKCorrelationType](healthkit/hkcorrelationtype.md)
- [HKActivitySummaryType](healthkit/hkactivitysummarytype.md)
- [HKAudiogramSampleType](healthkit/hkaudiogramsampletype.md)
- [HKElectrocardiogramType](healthkit/hkelectrocardiogramtype.md)
- [HKSeriesType](healthkit/hkseriestype.md)
- [HKClinicalType](healthkit/hkclinicaltype.md)
- [HKWorkoutType](healthkit/hkworkouttype.md)
- [HKObjectType](healthkit/hkobjecttype.md)
- [HKSampleType](healthkit/hksampletype.md)

### Characteristic identifiers

- [activityMoveMode](healthkit/hkcharacteristictypeidentifier/activitymovemode.md)
- [biologicalSex](healthkit/hkcharacteristictypeidentifier/biologicalsex.md)
- [bloodType](healthkit/hkcharacteristictypeidentifier/bloodtype.md)
- [dateOfBirth](healthkit/hkcharacteristictypeidentifier/dateofbirth.md)
- [fitzpatrickSkinType](healthkit/hkcharacteristictypeidentifier/fitzpatrickskintype.md)
- [wheelchairUse](healthkit/hkcharacteristictypeidentifier/wheelchairuse.md)

### Activity

- [stepCount](healthkit/hkquantitytypeidentifier/stepcount.md)
- [distanceWalkingRunning](healthkit/hkquantitytypeidentifier/distancewalkingrunning.md)
- [runningSpeed](healthkit/hkquantitytypeidentifier/runningspeed.md)
- [runningStrideLength](healthkit/hkquantitytypeidentifier/runningstridelength.md)
- [runningPower](healthkit/hkquantitytypeidentifier/runningpower.md)
- [runningGroundContactTime](healthkit/hkquantitytypeidentifier/runninggroundcontacttime.md)
- [runningVerticalOscillation](healthkit/hkquantitytypeidentifier/runningverticaloscillation.md)
- [distanceCycling](healthkit/hkquantitytypeidentifier/distancecycling.md)
- [pushCount](healthkit/hkquantitytypeidentifier/pushcount.md)
- [distanceWheelchair](healthkit/hkquantitytypeidentifier/distancewheelchair.md)
- [swimmingStrokeCount](healthkit/hkquantitytypeidentifier/swimmingstrokecount.md)
- [distanceSwimming](healthkit/hkquantitytypeidentifier/distanceswimming.md)
- [distanceDownhillSnowSports](healthkit/hkquantitytypeidentifier/distancedownhillsnowsports.md)
- [basalEnergyBurned](healthkit/hkquantitytypeidentifier/basalenergyburned.md)
- [activeEnergyBurned](healthkit/hkquantitytypeidentifier/activeenergyburned.md)
- [flightsClimbed](healthkit/hkquantitytypeidentifier/flightsclimbed.md)
- [nikeFuel](healthkit/hkquantitytypeidentifier/nikefuel.md)
- [appleExerciseTime](healthkit/hkquantitytypeidentifier/appleexercisetime.md)
- [appleMoveTime](healthkit/hkquantitytypeidentifier/applemovetime.md)
- [appleStandHour](healthkit/hkcategorytypeidentifier/applestandhour.md)
- [appleStandTime](healthkit/hkquantitytypeidentifier/applestandtime.md)
- [vo2Max](healthkit/hkquantitytypeidentifier/vo2max.md)
- [lowCardioFitnessEvent](healthkit/hkcategorytypeidentifier/lowcardiofitnessevent.md)

### Attachments

- [HKAttachment](healthkit/hkattachment.md)
- [HKAttachmentStore](healthkit/hkattachmentstore.md)
- [HKAttachmentDataReader](healthkit/hkattachmentdatareader.md)

### Body measurements

- [height](healthkit/hkquantitytypeidentifier/height.md)
- [bodyMass](healthkit/hkquantitytypeidentifier/bodymass.md)
- [bodyMassIndex](healthkit/hkquantitytypeidentifier/bodymassindex.md)
- [leanBodyMass](healthkit/hkquantitytypeidentifier/leanbodymass.md)
- [bodyFatPercentage](healthkit/hkquantitytypeidentifier/bodyfatpercentage.md)
- [waistCircumference](healthkit/hkquantitytypeidentifier/waistcircumference.md)

### Reproductive health

- [menstrualFlow](healthkit/hkcategorytypeidentifier/menstrualflow.md)
- [intermenstrualBleeding](healthkit/hkcategorytypeidentifier/intermenstrualbleeding.md)
- [infrequentMenstrualCycles](healthkit/hkcategorytypeidentifier/infrequentmenstrualcycles.md)
- [irregularMenstrualCycles](healthkit/hkcategorytypeidentifier/irregularmenstrualcycles.md)
- [persistentIntermenstrualBleeding](healthkit/hkcategorytypeidentifier/persistentintermenstrualbleeding.md)
- [prolongedMenstrualPeriods](healthkit/hkcategorytypeidentifier/prolongedmenstrualperiods.md)
- [basalBodyTemperature](healthkit/hkquantitytypeidentifier/basalbodytemperature.md)
- [cervicalMucusQuality](healthkit/hkcategorytypeidentifier/cervicalmucusquality.md)
- [ovulationTestResult](healthkit/hkcategorytypeidentifier/ovulationtestresult.md)
- [progesteroneTestResult](healthkit/hkcategorytypeidentifier/progesteronetestresult.md)
- [sexualActivity](healthkit/hkcategorytypeidentifier/sexualactivity.md)
- [contraceptive](healthkit/hkcategorytypeidentifier/contraceptive.md)
- [pregnancy](healthkit/hkcategorytypeidentifier/pregnancy.md)
- [pregnancyTestResult](healthkit/hkcategorytypeidentifier/pregnancytestresult.md)
- [lactation](healthkit/hkcategorytypeidentifier/lactation.md)
- [HKCategoryValueVaginalBleeding](healthkit/hkcategoryvaluevaginalbleeding.md)

### Menopause

- [Recording and querying menopausal state](healthkit/recording-and-querying-menopausal-state.md)
- [menopausalState](healthkit/hkcategorytypeidentifier/menopausalstate.md)
- [bleedingAfterMenopause](healthkit/hkcategorytypeidentifier/bleedingaftermenopause.md)
- [HKCategoryValueMenopausalState](healthkit/hkcategoryvaluemenopausalstate.md)

### Hearing

- [environmentalAudioExposure](healthkit/hkquantitytypeidentifier/environmentalaudioexposure.md)
- [headphoneAudioExposure](healthkit/hkquantitytypeidentifier/headphoneaudioexposure.md)
- [environmentalAudioExposureEvent](healthkit/hkcategorytypeidentifier/environmentalaudioexposureevent.md)
- [headphoneAudioExposureEvent](healthkit/hkcategorytypeidentifier/headphoneaudioexposureevent.md)
- [audioExposureEvent](healthkit/hkcategorytypeidentifier/audioexposureevent.md)

### Vital signs

- [heartRate](healthkit/hkquantitytypeidentifier/heartrate.md)
- [lowHeartRateEvent](healthkit/hkcategorytypeidentifier/lowheartrateevent.md)
- [highHeartRateEvent](healthkit/hkcategorytypeidentifier/highheartrateevent.md)
- [irregularHeartRhythmEvent](healthkit/hkcategorytypeidentifier/irregularheartrhythmevent.md)
- [restingHeartRate](healthkit/hkquantitytypeidentifier/restingheartrate.md)
- [heartRateVariabilitySDNN](healthkit/hkquantitytypeidentifier/heartratevariabilitysdnn.md)
- [heartRateRecoveryOneMinute](healthkit/hkquantitytypeidentifier/heartraterecoveryoneminute.md)
- [atrialFibrillationBurden](healthkit/hkquantitytypeidentifier/atrialfibrillationburden.md)
- [walkingHeartRateAverage](healthkit/hkquantitytypeidentifier/walkingheartrateaverage.md)
- [HKDataTypeIdentifierHeartbeatSeries](healthkit/hkdatatypeidentifierheartbeatseries.md)
- [HKElectrocardiogramType](healthkit/hkelectrocardiogramtype.md)
- [oxygenSaturation](healthkit/hkquantitytypeidentifier/oxygensaturation.md)
- [bodyTemperature](healthkit/hkquantitytypeidentifier/bodytemperature.md)
- [bloodPressure](healthkit/hkcorrelationtypeidentifier/bloodpressure.md)
- [bloodPressureSystolic](healthkit/hkquantitytypeidentifier/bloodpressuresystolic.md)
- [bloodPressureDiastolic](healthkit/hkquantitytypeidentifier/bloodpressurediastolic.md)
- [respiratoryRate](healthkit/hkquantitytypeidentifier/respiratoryrate.md)

### Nutrition

- [Nutrition Type Identifiers](healthkit/nutrition-type-identifiers.md)

### Alcohol consumption

- [bloodAlcoholContent](healthkit/hkquantitytypeidentifier/bloodalcoholcontent.md)
- [numberOfAlcoholicBeverages](healthkit/hkquantitytypeidentifier/numberofalcoholicbeverages.md)

### Mobility

- [appleWalkingSteadiness](healthkit/hkquantitytypeidentifier/applewalkingsteadiness.md)
- [appleWalkingSteadinessEvent](healthkit/hkcategorytypeidentifier/applewalkingsteadinessevent.md)
- [sixMinuteWalkTestDistance](healthkit/hkquantitytypeidentifier/sixminutewalktestdistance.md)
- [walkingSpeed](healthkit/hkquantitytypeidentifier/walkingspeed.md)
- [walkingStepLength](healthkit/hkquantitytypeidentifier/walkingsteplength.md)
- [walkingAsymmetryPercentage](healthkit/hkquantitytypeidentifier/walkingasymmetrypercentage.md)
- [walkingDoubleSupportPercentage](healthkit/hkquantitytypeidentifier/walkingdoublesupportpercentage.md)
- [stairAscentSpeed](healthkit/hkquantitytypeidentifier/stairascentspeed.md)
- [stairDescentSpeed](healthkit/hkquantitytypeidentifier/stairdescentspeed.md)

### Symptoms

- [Symptom Type Identifiers](healthkit/symptom-type-identifiers.md)

### Lab and test results

- [bloodAlcoholContent](healthkit/hkquantitytypeidentifier/bloodalcoholcontent.md)
- [bloodGlucose](healthkit/hkquantitytypeidentifier/bloodglucose.md)
- [electrodermalActivity](healthkit/hkquantitytypeidentifier/electrodermalactivity.md)
- [forcedExpiratoryVolume1](healthkit/hkquantitytypeidentifier/forcedexpiratoryvolume1.md)
- [forcedVitalCapacity](healthkit/hkquantitytypeidentifier/forcedvitalcapacity.md)
- [inhalerUsage](healthkit/hkquantitytypeidentifier/inhalerusage.md)
- [insulinDelivery](healthkit/hkquantitytypeidentifier/insulindelivery.md)
- [numberOfTimesFallen](healthkit/hkquantitytypeidentifier/numberoftimesfallen.md)
- [peakExpiratoryFlowRate](healthkit/hkquantitytypeidentifier/peakexpiratoryflowrate.md)
- [peripheralPerfusionIndex](healthkit/hkquantitytypeidentifier/peripheralperfusionindex.md)

### Mindfulness and sleep

- [mindfulSession](healthkit/hkcategorytypeidentifier/mindfulsession.md)
- [sleepAnalysis](healthkit/hkcategorytypeidentifier/sleepanalysis.md)
- [appleSleepingWristTemperature](healthkit/hkquantitytypeidentifier/applesleepingwristtemperature.md)
- [HKAppleSleepingBreathingDisturbancesClassification](healthkit/hkapplesleepingbreathingdisturbancesclassification.md)

### Self care

- [toothbrushingEvent](healthkit/hkcategorytypeidentifier/toothbrushingevent.md)
- [handwashingEvent](healthkit/hkcategorytypeidentifier/handwashingevent.md)

### Workouts

- [HKWorkoutTypeIdentifier](healthkit/hkworkouttypeidentifier.md)
- [HKWorkoutRouteTypeIdentifier](healthkit/hkworkoutroutetypeidentifier.md)

### Clinical records

- [HKClinicalTypeIdentifier](healthkit/hkclinicaltypeidentifier.md)

### UV exposure

- [uvExposure](healthkit/hkquantitytypeidentifier/uvexposure.md)

### Vision

- [HKVisionPrescriptionTypeIdentifier](healthkit/hkvisionprescriptiontypeidentifier.md)

### Diving

- [underwaterDepth](healthkit/hkquantitytypeidentifier/underwaterdepth.md)
- [waterTemperature](healthkit/hkquantitytypeidentifier/watertemperature.md)

### Utilities

- [BufferedAsyncByteIterator](healthkit/bufferedasyncbyteiterator.md)

## See Also

### Health data

- [Saving data to HealthKit](healthkit/saving-data-to-healthkit.md)
- [Reading data from HealthKit](healthkit/reading-data-from-healthkit.md)
- [HKHealthStore](healthkit/hkhealthstore.md)
- [Creating a Mobility Health App](healthkit/creating-a-mobility-health-app.md)
- [Samples](healthkit/samples.md)
- [Queries](healthkit/queries.md)
- [Visualizing HealthKit State of Mind in visionOS](healthkit/visualizing-healthkit-state-of-mind-in-visionos.md)
- [Logging symptoms associated with a medication](healthkit/logging-symptoms-associated-with-a-medication.md)
