HC Webhook
Health Metric

What is Distance?

Measured in: meters

How far you walked or ran during the day, measured by your phone or wearable.

Definition

What it measures

How far you walked or ran during the day, measured by your phone or wearable.

Unit: meters

Why Track It

Why it matters

Track weekly mileage, log runs to your own database, and get alerts when you hit monthly goals.

Automations

What you can do with Distance data.

HC Webhook sends distance readings to any webhook — here are ideas to get you started.

Weekly Mileage Report

Total up your weekly distance in n8n and send a Monday morning summary to Slack or email.

Monthly Distance Goal Alert

Send a notification when you cross a monthly distance milestone like 100km.

Run Log in Google Sheets

Append daily distance to a spreadsheet alongside steps and active calories.

Distance Chart in Grafana

Feed distance data into InfluxDB and visualize your running history on a timeline.

Strava Supplement Log

Log Health Connect distance alongside Strava data to catch any walks that were not tracked as activities.

Home Assistant Commute Tracker

Update a sensor with daily distance to see how much you moved on days you commuted vs. worked from home.

Data Format

What the JSON looks like.

HC Webhook posts a JSON object containing a distance array to your endpoint on every sync.

{
  "timestamp": "2026-04-15T23:59:59Z",
  "distance": [
    {
      "meters": 7340,
      "start_time": "2026-04-15T00:00:00Z",
      "end_time": "2026-04-15T23:59:59Z"
    }
  ]
}
How to Export

Get Distance out of Health Connect

Google Health Connect stores your distance data from compatible apps (Samsung Health, Fitbit, Garmin, and more). HC Webhook reads that data on a schedule you set and forwards it as JSON to any URL you add — n8n, Home Assistant, Zapier, or your own API.

  1. 01

    Install HC Webhook and grant Health Connect permission for Distance.

  2. 02

    Paste your webhook URL — Home Assistant, n8n, Zapier, or any endpoint.

  3. 03

    Set your sync schedule. Distance readings arrive automatically, every time.

Get it on Google Play

Start tracking your Distance data.

Free Android app. No account required. Data stays on your device.

Get it on Google Play