How to ask an AI assistant about your Apple Health data
Export the data your question is about as a JSON file, or from version 1.8.0 as Markdown, with Health Exporter & Shortcuts, a paid iPhone app (US$2.99 once on the App Store). Then give that file to the assistant you already use, such as ChatGPT, Claude or Gemini, with a short description of the format and your question: attach it to the conversation, or paste its text if the assistant does not take files. Health Exporter only produces the file. It does not connect to any AI service and is not affiliated with one, so what happens to the file, and how well it is read, is up to the assistant you give it to.
1. Export only what the question needs #
A question about your sleep needs sleep, and perhaps steps or resting heart rate, over a few weeks. It does not need every data type the app can export. A smaller file leaves the assistant less to wade through, and is easier for you to check against the Health app.
- Daily metrics: in the Health Data tab, pick the period and tick only the types that matter, then tap Export JSON. The JSON guide walks through it and lists every type.
- Training: in the Workouts tab, pick the activity types and tap Export JSON. Each workout comes with its duration, its statistics (such as energy, distance and heart rate) and its pauses, laps and segments. Leave Include GPS Route off unless the question is about where you went: a route adds a point every few seconds, and it shows where you have been.
- Medications: from version 1.8.0, on iOS 26 and later, in the Medications tab, pick the period and tap Export JSON. You get one entry per dose you logged, for the medications you chose to share with the app, in JSON only: this tab has no File Format. What you take says a lot about your health, so think about who you give that file to.
For a period longer than 30 days, tap the date range under Range and set your own From and To.
From version 1.8.0, File Format, just above the export button on the Health Data and Workouts tabs, offers Markdown as well as JSON, and the button changes to Export Markdown. A Markdown file holds the same figures as the JSON, rounded to at most two decimal places, or three below 1, laid out as a short header followed by one table per data type, or one section per workout, with each unit stated once, at the top of its column or beside its statistic, rather than beside every value. So it is shorter than the JSON of the same export, and reads as plain text when you paste it. It never carries GPS routes: on the Workouts tab the route options go away while Markdown is chosen. The Markdown format reference shows a complete file of each kind.
2. Tell the assistant how to read the file #
Describing the file up front costs one paragraph and leaves the assistant less to guess.
A Markdown export already opens with that description: the range, the time zone, the data types, what each day’s value is (a total, an average or the latest reading) with its unit, and how sleep is counted. One line above your question is enough to say where it comes from, such as “The attached file is an Apple Health export from the iPhone app Health Exporter & Shortcuts.”
For a JSON export, paste this above your question, keeping the parts that match what you exported:
The attached file is an Apple Health export from the iPhone app Health Exporter & Shortcuts.
exportInfo describes the export. Every other key is a data type holding one entry per day,
oldest first, each with a date (YYYY-MM-DD, local time), a value and a unit. A day with no
data has no entry.
Steps, walking distance, calories, exercise minutes, flights climbed and nutrition are daily
totals. Resting and walking heart rate, heart rate variability, oxygen saturation, respiratory
rate and wrist temperature are daily averages. Weight, BMI, body fat, lean body mass and VO2
max are the last reading of the day.
sleepTime is in minutes and filed under the day I woke up. Its value is core + deep + REM
sleep; stages breaks it down, and the awake and unspecified minutes in stages are not
counted in value.
For a workout export: workouts is a list of workouts, oldest first. startDate and endDate are
UTC timestamps. duration is active time in seconds, without pauses. statistics is keyed by
HealthKit identifiers such as HKQuantityTypeIdentifierHeartRate, each with a unit and a sum
or an average, min and max. events lists pauses, resumes, laps, segments and markers; on a
run recorded by Apple Watch, the segments are automatic splits per kilometre and per mile,
mixed in one list. activities, present only when HealthKit recorded a workout as more than
one activity (the legs of a triathlon, for example), lists those activities in order, each
with its own activityType, dates, duration and statistics. effortScore is the effort I rated
for the workout and estimatedEffortScore is Apple's estimate of it, when Health holds one,
both from 1 to 10; either is missing when there is none.
Every statement in it matches what the app writes. The format reference has the full detail, if you or the assistant need more.
3. Ask a specific question #
A question that names the data and the comparison is easier to answer, and to check, than “what do you think of my health”. For example:
- “Compare my average sleep on days after I walked more than 10,000 steps with the other days.”
- “How did my resting heart rate change over these 30 days? Give me the weekly averages.”
- “List my runs with date, distance, duration and average heart rate, then tell me how my pace changed.”
Ask for the numbers behind any conclusion, and check a few of them against the Health app. An assistant can misread a file or get arithmetic wrong, and it is not a doctor: treat what it says about your health as a starting point for a conversation with one, not as advice.
4. Mind where the file goes #
Health Exporter sends no health data anywhere: the file is created on your iPhone and goes only where you send it. The app does send anonymous usage statistics and error reports, which never contain health data, as the privacy policy describes.
Attaching the file to an assistant sends it to the company that runs that assistant, under that company’s terms and privacy policy. Read those before you share health data, and leave GPS routes out unless you need them, since a route shows where you have been, often including where you live.
Doing it every week #
If you ask the same question regularly, a shortcut can produce the file for you. The Shortcuts guide builds one that saves a fresh export to a folder in Files, ready to attach. A shortcut always exports JSON: Markdown is a choice in the app only.