← Back to home

Apple Health → Nextcloud / WebDAV

Sync Apple Health Data to Nextcloud or WebDAV

Keep full control of your health data by syncing it directly to your own Nextcloud server or any WebDAV-compatible storage — no third-party cloud required.

Why self-host your health data?

Your Apple Health data contains some of the most personal information imaginable — sleep patterns, heart rate, menstrual cycles, medications. Sending it to a third-party cloud means trusting that company's privacy policy, data-breach response, and business model indefinitely.

Self-hosting on Nextcloud or a WebDAV server means your exports land on infrastructure you own and control. That matters for:

Step-by-step setup

  1. Download Health Data Export from the App Store on your iPhone or Mac.
  2. Open Settings → Sync inside the app, then choose Nextcloud / WebDAV as your sync destination.
  3. Enter your Nextcloud folder URL. This is the full WebDAV path to the folder you want exports saved in, for example:
    https://cloud.example.com/remote.php/dav/files/username/HealthData/
  4. Enter your Nextcloud username — the account you log in to Nextcloud with.
  5. Generate an app password. In Nextcloud go to Settings → Security → App passwords, create a new password, copy it, and paste it into the app. Using an app password keeps your main account password safe and lets you revoke access at any time.
  6. Choose file naming mode:
    • Stable — each sync overwrites the same filename. Good for dashboards that always read a fixed path.
    • Timestamped — each sync writes a new file with a date stamp. Builds a full version history over time.
  7. Enable Auto-Sync. Your Apple Health data will now upload to your Nextcloud server automatically on schedule.

What data syncs to Nextcloud?

The app exports all major Apple Health categories to CSV. Here's what lands in your Nextcloud folder:

Data Type Syncs to Nextcloud
Steps
Sleep
Heart Rate
HRV
Workouts
Weight
VO2 Max

WebDAV compatibility

The app works with any WebDAV server — not just Nextcloud. If your server speaks WebDAV and you can provide a folder URL plus credentials, it will work. Confirmed compatible platforms include:

  • Nextcloud (self-hosted or managed)
  • ownCloud
  • Synology DSM (WebDAV service)
  • Caddy with WebDAV middleware
  • nginx with ngx_http_dav_module

What to do with your data once it's on Nextcloud

Having your health CSVs on Nextcloud opens up a range of local-first workflows:

Sync Apple Health to Your Own Server

Set up Nextcloud or WebDAV sync in minutes. 100% private — your data never leaves your infrastructure.

Download on the App Store

100% Local & Private · Mac & iOS

Related guides