An iOS app that reads daily steps, flights climbed, active and resting energy, and weight from Apple Health and exports them to an HTTP endpoint or local JSON files.
- Exports daily step count, flights climbed, active and resting energy (kcal), and the most recent weigh-in (kg) per day
- Two export modes: HTTP POST or local JSON files (one file per year, e.g.
2026.json) - Preset lookback periods: 1 Day, 7 Days, 1 Month, 1 Year, All Time
- Test export with mock data to verify your configuration
- Files accessible via Files app on iPhone
- iOS 18.0+
- iPhone with Health app
brew install xcodegengit clone [email protected]:bensquire/FitnessExporter.git
cd FitnessExporter
xcodegen generate
open FitnessExporter.xcodeprojmake build # build (unsigned, for local testing)
make test # run unit tests
make lint # swift format lint --strict, as CI and the pre-commit hook run it
make format # swift format in place
make clean # clean build artefactsEach year's data is written to <year>.json:
{
"year" : 2026,
"exportedAt" : "2026-03-03T12:00:00Z",
"data" : [
{
"caloriesActive" : 512,
"caloriesResting" : 1650,
"caloriesTotal" : 2162,
"date" : "2026-01-01",
"flightsClimbed" : 4,
"stepCount" : 8542,
"weightKg" : 78.4
}
]
}weightKg is omitted on days with no weigh-in. caloriesTotal is caloriesActive + caloriesResting. HTTP mode posts the bare data array.
MIT