Apple’s Worldwide Developers Conference to kick off June 10 at 10 a.m. PDT with Keynote address

The Keynote will be available to stream on apple.com, the Apple Developer app, the Apple TV app, and the Apple YouTube channel. On-demand playback will be available after the conclusion of the stream.

Developer Forums relocated!

Need help with Apple Developer tools and technologies? Want to share information with other developers and Apple engineers? Visit Developer Forums at Apple.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Exporting Health App data

How to export and analyze health app data

iPhone 14 Pro, iOS 17

Posted on Feb 18, 2024 11:36 PM

Reply
1 reply

Feb 19, 2024 6:50 AM in response to WasAYooper

WasAYooper wrote:

How to export and analyze health app data


Export in XML: Share your data in Health on iPhone - Apple Support


In short, open the Health app, tap on your user icon in the upper right, and scroll down and select Export All Health Data.


You’ll get an XML file or two, zipped together IIRC. One with data, one with the related data structure definitions.


There are apps to convert XML format data to other data formats, and there are apps in the app store that can export Health data in other formats, if the XML export doesn’t meet your particular needs.


To print this, you’ll need to load into an app that can process XML. Or print the XML itself. The printed XML format won’t be great, because it’s not intended for printing; it’s a database dump. An available app (I haven’t checked) might get you a prettier printed data dump.


There are also numerous generic discussions of formatting or accessing or converting XML files and contents around the ‘net, and available tools for same. XML is very commonly used for exporting and importing data. Here’s an example of using Python to process Health data.

Exporting Health App data

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.