Buổi tập Apple Health mẫuJSONXuất

Một bản xuất JSON thực, không mất dữ liệu, từ một buổi chạy Apple Health — dữ liệu buổi tập, lộ trình, mẫu và tóm tắt trong một schema có phiên bản. Tải xuống hoặc xem cấu trúc bên dưới.

sample-run.json
{
  "schemaVersion": 1,
  "exportedAt": "2026-04-05T08:00:00Z",
  "workout": {
    "uuid": "11111111-2222-3333-4444-555555555555",
    "activityType": "Running",
    "activityTypeRaw": 37,
    "startDate": "2026-04-05T08:00:00Z",
    "endDate": "2026-04-05T08:12:00Z",
    "duration": 720,
    "totalDistance": {
      "value": 1164.75,
      "unit": "m"
    },
    "totalEnergyBurned": {
      "value": 168,
      "unit": "kcal"
    },
    "totalSwimmingStrokeCount": null,
    "totalFlightsClimbed": null,
    "source": {
      "name": "Apple Watch",
      "bundleIdentifier": "com.apple.health",
      "deviceName": "Apple Watch",
      "deviceManufacturer": "Apple",
      "deviceModel": "Watch",
      "deviceHardwareVersion": null,
      "deviceSoftwareVersion": null
    },
    "metadata": null,
…  (283 more lines)

Tệp JSON này có gì

Một lớp bao bọc tự mô tả vớischemaVersion: 1. Các khóa cấp cao nhất làworkout, route, samples, vàsummary. Lý tưởng cho Python, notebook và đưa vào một LLM.

Xuất các buổi tập của riêng bạn

Đây là một buổi chạy mẫu. Cài đặt Workout Exporter để xuất các buổi tập Apple Health và Apple Watch thực của bạn theo cùng cách này.

Tải về trên App Store