HealthSave Get on the App Store

Store Apple Health Data in Your Own Database

To keep your Apple Health data in a database you own, HealthSave Pro background-syncs your HealthKit data to a self-hosted server you run. No cloud sits in the middle: the data goes from your iPhone straight to that server, and you can query it or read it from a private API.

Why put Apple Health in your own database?

Apple Health keeps everything on your phone, which is great for privacy but useless if you want to analyze it: there is no query language, no joins, no long-range history, and the official Export All Health Data dumps a single giant export.xml you can't realistically work with. A real database fixes all of that. Once your HealthKit samples are in a database on hardware you control, you can query them, build dashboards, feed other tools, and keep a permanent longitudinal record.

The pipeline

iPhone (Apple Health)
   └─ HealthSave Pro  ──(background sync, ~1–5 min)──▶  your server
                                                          ├─▶ SQL (psql, any client, Grafana)
                                                          └─▶ REST API (Pro)

Step 1, Stand up the Observatory (it brings the database)

HealthSave Observatory is a self-hosted dashboard you run on your own server. The code is on GitHub under the Elastic License 2.0. Run it on a laptop, NUC, Mac mini, Synology, or a Proxmox VM. If you write your own receiver, the request shape is on the API page.

Step 2, Point the app at your server

In HealthSave: Settings → Server Sync, set the Server URL to your server (e.g. http://your-server-ip:8000, iOS won't sync to localhost), optionally add an API key, and enable background sync. Batches start flowing within a few minutes.

Step 3, Your data is now on your server

Each batch lands as a compact, timestamped row per sample, tagged by metric type, source device, and unit. Heart rate, resting HR, HRV, steps, sleep stages, SpO2, weight, workouts, and the rest of what you've synced all live in the database on your server.

Step 4, Query it

You can query the history on your server from a notebook or from Grafana. HealthSave Pro also exposes a REST API over the same data, so apps and agents can pull it without touching the database directly.

What's free vs Pro

CapabilityTier
On-device dashboard, CSV/JSON exportFree
Background sync to your server (your database)Pro
Full multi-year history via backfillPro
Set up Server Sync, test the connection and send the last 7 days to your server by handFree
Send your whole history to your serverPro

Pro is a one-time $24.99 (US price, varies by region), Family Sharing included, no subscription.

Honest limits

Related

FAQ

Where does my history live?

On the server you run. HealthSave Observatory is a self-hosted dashboard that keeps your history there, and you can query what you have synced.

Is the data really mine?

Yes. The database runs on hardware you control. There is no HealthSave cloud in the middle; the iPhone posts directly to the server URL you configure, and the rows sit in your own database.

Can I query it however I want?

Yes. You can query the history on your server, so any SQL client, BI tool, Grafana, or script can read it. HealthSave Pro also exposes a REST API over the same data for app-to-app access.

How much storage does it need?

Years of personal HealthKit data is small for a database, typically well under a few gigabytes even after a full multi-year backfill, because the samples are compact numeric rows.

Is there a hosted version?

No. There is no hosted backend. You run the Observatory and its database yourself, which is the entire point if you want your health data on your own hardware.

HealthSave is not a medical device. It is for informational purposes only and does not diagnose, treat, cure, or prevent any disease or condition. The accuracy of any health data depends on your wearable device and its sensors. Privacy claims of zero data collection apply to the iOS app; self-host sync sends your data to your own server.

Get HealthSave

Download free, try the export, then unlock background sync to your own database with a one-time Pro purchase when you're ready.

Download HealthSave on the App Store


HealthSave: Export Health Data, on iPhoneGet on the App Store