<!--
{
  "documentType" : "article",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/workout-metadata-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Workout Metadata Keys"
}
-->

# Workout Metadata Keys

Constants that can be used to add metadata to workouts.

## Topics

### Workout Type

[`let HKMetadataKeyActivityType: String`](/documentation/HealthKit/HKMetadataKeyActivityType)

[`let HKMetadataKeyAppleFitnessPlusSession: String`](/documentation/HealthKit/HKMetadataKeyAppleFitnessPlusSession)

[`let HKMetadataKeyCoachedWorkout: String`](/documentation/HealthKit/HKMetadataKeyCoachedWorkout)

A key that indicates whether the workout was performed with a coach or personal trainer.

[`let HKMetadataKeyGroupFitness: String`](/documentation/HealthKit/HKMetadataKeyGroupFitness)

A key that indicates whether the workout was performed as part of a group fitness class.

[`let HKMetadataKeyIndoorWorkout: String`](/documentation/HealthKit/HKMetadataKeyIndoorWorkout)

A key that indicates whether the workout was performed indoors.

[`let HKMetadataKeyWorkoutBrandName: String`](/documentation/HealthKit/HKMetadataKeyWorkoutBrandName)

The brand name of a particular workout.

### Cycling

[`let HKMetadataKeyCyclingFunctionalThresholdPowerTestType: String`](/documentation/HealthKit/HKMetadataKeyCyclingFunctionalThresholdPowerTestType)

### GymKit Fitness Equipment

[`let HKMetadataKeyFitnessMachineDuration: String`](/documentation/HealthKit/HKMetadataKeyFitnessMachineDuration)

The workout duration displayed by a connected GymKit fitness machine.

[`let HKMetadataKeyCrossTrainerDistance: String`](/documentation/HealthKit/HKMetadataKeyCrossTrainerDistance)

The workout distance displayed by a connected GymKit cross-trainer machine.

[`let HKMetadataKeyIndoorBikeDistance: String`](/documentation/HealthKit/HKMetadataKeyIndoorBikeDistance)

The workout distance displayed by a connected GymKit exercise bike.

### Intensity

[`let HKMetadataKeyAverageMETs: String`](/documentation/HealthKit/HKMetadataKeyAverageMETs)

A key that indicates the average Metabolic Equivalent of Task (METs) during a workout.

[`let HKMetadataKeyPhysicalEffortEstimationType: String`](/documentation/HealthKit/HKMetadataKeyPhysicalEffortEstimationType)

### Skiing and Snowboarding

[`let HKMetadataKeyAlpineSlopeGrade: String`](/documentation/HealthKit/HKMetadataKeyAlpineSlopeGrade)

A key that indicates the percent slope of a ski run.

[`let HKMetadataKeyElevationAscended: String`](/documentation/HealthKit/HKMetadataKeyElevationAscended)

A key that indicates the cumulative elevation ascended during a workout.

[`let HKMetadataKeyElevationDescended: String`](/documentation/HealthKit/HKMetadataKeyElevationDescended)

A key that indicates the cumulative elevation descended during a workout.

### Speed

[`let HKMetadataKeyAverageSpeed: String`](/documentation/HealthKit/HKMetadataKeyAverageSpeed)

A key that indicates the average speed during a workout.

[`let HKMetadataKeyMaximumSpeed: String`](/documentation/HealthKit/HKMetadataKeyMaximumSpeed)

A key that indicates the maximum speed during a workout.

### Swimming

[`let HKMetadataKeySwimmingLocationType: String`](/documentation/HealthKit/HKMetadataKeySwimmingLocationType)

A key that indicates the location for a swimming workout.

[`let HKMetadataKeySwimmingStrokeStyle: String`](/documentation/HealthKit/HKMetadataKeySwimmingStrokeStyle)

A key that indicates the predominant stroke style for a lap of swimming.

[`let HKMetadataKeyLapLength: String`](/documentation/HealthKit/HKMetadataKeyLapLength)

A key that indicates the length of a lap during a workout.

[`let HKMetadataKeySWOLFScore: String`](/documentation/HealthKit/HKMetadataKeySWOLFScore)

[`let HKMetadataKeyWaterSalinity: String`](/documentation/HealthKit/HKMetadataKeyWaterSalinity)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)