---
title: HKPredicateKeyPathAverageHeartRate
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkpredicatekeypathaverageheartrate
---

# HKPredicateKeyPathAverageHeartRate

The key path for the sample’s average heart rate.

## Declaration

```swift
let HKPredicateKeyPathAverageHeartRate: String
```

## Discussion

Discussion Use this constant whenever you want to include the ECG’s average heart rate in a predicate format string. Add a %K placeholder to the format string, and then pass this constant as an argument.

## See Also

### Specifying Predicate Key Paths

- [HKPredicateKeyPathECGClassification](healthkit/hkpredicatekeypathecgclassification.md)
- [HKPredicateKeyPathECGSymptomsStatus](healthkit/hkpredicatekeypathecgsymptomsstatus.md)
