Offbeat Iot
Get started
Using the Google Health integration

Using the Google Health integration

Send Google Health v4 data-point commands from your device.

Activity and fitness

Active energy burned

List active energy burned data points

Returns active energy burned data points. .Request

{
  "googlehealth.active-energy-burned.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-6c81cfc2-874f-43ba-be1d-5c5b7ae7a008",
  "dataType" : "active-energy-burned",
  "status" : "OK"
}

Active minutes

List active minutes data points

Returns active minutes data points. .Request

{
  "googlehealth.active-minutes.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-f594f251-eae4-41ed-a6cd-6ddc969ff1c4",
  "dataType" : "active-minutes",
  "status" : "OK"
}

Active zone minutes

List active zone minutes data points

Returns active zone minutes data points. .Request

{
  "googlehealth.active-zone-minutes.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-18e86c53-ccdd-4f50-bfb1-b9b677ddcb5f",
  "dataType" : "active-zone-minutes",
  "status" : "OK"
}

Activity level

List activity level data points

Returns activity level data points. .Request

{
  "googlehealth.activity-level.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-6b9b9ff9-02fc-47aa-96bb-d01f14f90f27",
  "dataType" : "activity-level",
  "status" : "OK"
}

Altitude

List altitude data points

Returns altitude data points. .Request

{
  "googlehealth.altitude.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-15123e29-1def-45f0-a796-d39331b22f34",
  "dataType" : "altitude",
  "status" : "OK"
}

Distance

List distance data points

Returns distance data points. .Request

{
  "googlehealth.distance.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-8dd6f1af-76a5-4dbd-9b0a-6e443050ef0d",
  "dataType" : "distance",
  "status" : "OK"
}

Exercise

List exercise data points

Returns exercise data points. .Request

{
  "googlehealth.exercise.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-33c27966-1b59-4e09-8db2-9ff4890d3fdd",
  "dataType" : "exercise",
  "status" : "OK"
}
Get an exercise data point

Returns the named exercise data point. .Request

{
  "googlehealth.exercise.get" : {
    "name" : "users/me/dataTypes/exercise/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-a4a604d4-2e0e-4210-a037-7f4b672f421f",
  "dataType" : "exercise",
  "status" : "OK"
}
Create an exercise data point

Creates an exercise data point. .Request

{
  "googlehealth.exercise.create" : {
    "data" : {
      "interval" : {
        "startTime" : "2024-01-01T00:00:00Z",
        "endTime" : "2024-01-01T01:00:00Z"
      },
      "exerciseType" : "WALKING"
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-8f3c42ea-706f-409e-9a84-d543251dc523",
  "dataType" : "exercise",
  "status" : "OK"
}
Update an exercise data point

Updates the named exercise data point. .Request

{
  "googlehealth.exercise.update" : {
    "name" : "users/me/dataTypes/exercise/dataPoints/example",
    "data" : {
      "interval" : {
        "startTime" : "2024-01-01T00:00:00Z",
        "endTime" : "2024-01-01T01:00:00Z"
      },
      "exerciseType" : "WALKING"
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-5e8b0c1b-09dd-448f-b48a-2f49f1c4b519",
  "dataType" : "exercise",
  "status" : "OK"
}
Delete exercise data points

Deletes the supplied exercise data points. .Request

{
  "googlehealth.exercise.delete" : {
    "names" : [ "users/me/dataTypes/exercise/dataPoints/example", "users/me/dataTypes/exercise/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-44d57cdb-4e2d-4e66-88e7-1e45b382a18e",
  "dataType" : "exercise",
  "status" : "OK"
}

Steps

List steps data points

Returns steps data points. .Request

{
  "googlehealth.steps.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-52f7739f-cdb7-486f-8e7e-08d0cd1a00bb",
  "dataType" : "steps",
  "status" : "OK"
}

Swim lengths data

List swim lengths data points

Returns swim lengths data points. .Request

{
  "googlehealth.swim-lengths-data.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-b86153df-a3a8-40a1-a8a6-52d91ba2f96e",
  "dataType" : "swim-lengths-data",
  "status" : "OK"
}

Time in heart rate zone

List time in heart rate zone data points

Returns time in heart rate zone data points. .Request

{
  "googlehealth.time-in-heart-rate-zone.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-342a30eb-fda0-4d75-9842-6767017da0c1",
  "dataType" : "time-in-heart-rate-zone",
  "status" : "OK"
}

Health metrics and measurements

Body fat

List body fat data points

Returns body fat data points. .Request

{
  "googlehealth.body-fat.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-9fbe4ac1-237e-404f-b60a-918374023684",
  "dataType" : "body-fat",
  "status" : "OK"
}
Get a body fat data point

Returns the named body fat data point. .Request

{
  "googlehealth.body-fat.get" : {
    "name" : "users/me/dataTypes/body-fat/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-53d5a7ad-8020-4013-b6b5-9bc3fbb63242",
  "dataType" : "body-fat",
  "status" : "OK"
}
Create a body fat data point

Creates a body fat data point. .Request

{
  "googlehealth.body-fat.create" : {
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "percentage" : 20
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-018736e6-636f-404f-9e50-2bff41a0b074",
  "dataType" : "body-fat",
  "status" : "OK"
}
Update a body fat data point

Updates the named body fat data point. .Request

{
  "googlehealth.body-fat.update" : {
    "name" : "users/me/dataTypes/body-fat/dataPoints/example",
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "percentage" : 20
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-41ab761c-50f8-43b3-bc84-38c70c7db39c",
  "dataType" : "body-fat",
  "status" : "OK"
}
Delete body fat data points

Deletes the supplied body fat data points. .Request

{
  "googlehealth.body-fat.delete" : {
    "names" : [ "users/me/dataTypes/body-fat/dataPoints/example", "users/me/dataTypes/body-fat/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-4ae786ad-e889-4ae2-b91f-019e19e8eaec",
  "dataType" : "body-fat",
  "status" : "OK"
}

Height

List height data points

Returns height data points. .Request

{
  "googlehealth.height.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-2904fedf-dd87-43ab-88ac-37c9028e69d4",
  "dataType" : "height",
  "status" : "OK"
}
Get a height data point

Returns the named height data point. .Request

{
  "googlehealth.height.get" : {
    "name" : "users/me/dataTypes/height/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-d057e1b6-901d-478e-8e5d-3f352440da34",
  "dataType" : "height",
  "status" : "OK"
}
Create a height data point

Creates a height data point. .Request

{
  "googlehealth.height.create" : {
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "heightMeters" : 1.75
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-c1a41e4c-a953-44cd-8c7f-3f79f04173a9",
  "dataType" : "height",
  "status" : "OK"
}
Update a height data point

Updates the named height data point. .Request

{
  "googlehealth.height.update" : {
    "name" : "users/me/dataTypes/height/dataPoints/example",
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "heightMeters" : 1.75
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-986e9ff0-8535-4ee5-9cb4-13154d99820c",
  "dataType" : "height",
  "status" : "OK"
}
Delete height data points

Deletes the supplied height data points. .Request

{
  "googlehealth.height.delete" : {
    "names" : [ "users/me/dataTypes/height/dataPoints/example", "users/me/dataTypes/height/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-704d09f9-a329-484e-99c9-a0df87344295",
  "dataType" : "height",
  "status" : "OK"
}

Weight

List weight data points

Returns weight data points. .Request

{
  "googlehealth.weight.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-3fe9182d-4734-462b-873a-1bc1677bb6da",
  "dataType" : "weight",
  "status" : "OK"
}
Get a weight data point

Returns the named weight data point. .Request

{
  "googlehealth.weight.get" : {
    "name" : "users/me/dataTypes/weight/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-931573a1-b30e-45af-ab92-b718189eef69",
  "dataType" : "weight",
  "status" : "OK"
}
Create a weight data point

Creates a weight data point. .Request

{
  "googlehealth.weight.create" : {
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "weightKg" : 70
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-99170040-9c37-4c1c-911d-6cedfd5db894",
  "dataType" : "weight",
  "status" : "OK"
}
Update a weight data point

Updates the named weight data point. .Request

{
  "googlehealth.weight.update" : {
    "name" : "users/me/dataTypes/weight/dataPoints/example",
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "weightKg" : 70
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-4795f4d5-db59-4840-8fbd-c36153388d02",
  "dataType" : "weight",
  "status" : "OK"
}
Delete weight data points

Deletes the supplied weight data points. .Request

{
  "googlehealth.weight.delete" : {
    "names" : [ "users/me/dataTypes/weight/dataPoints/example", "users/me/dataTypes/weight/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-44002430-d670-47f3-b1cd-9b4b1e297db1",
  "dataType" : "weight",
  "status" : "OK"
}

Blood glucose

List blood glucose data points

Returns blood glucose data points. .Request

{
  "googlehealth.blood-glucose.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-a2c505b7-6b8c-4ae3-8f30-6fb12cb52509",
  "dataType" : "blood-glucose",
  "status" : "OK"
}
Get a blood glucose data point

Returns the named blood glucose data point. .Request

{
  "googlehealth.blood-glucose.get" : {
    "name" : "users/me/dataTypes/blood-glucose/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-ae15e310-25d3-469a-a15a-1a9a14398dc5",
  "dataType" : "blood-glucose",
  "status" : "OK"
}

Core body temperature

List core body temperature data points

Returns core body temperature data points. .Request

{
  "googlehealth.core-body-temperature.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-cef208b5-2604-40a2-991b-c0fe65b5f9f2",
  "dataType" : "core-body-temperature",
  "status" : "OK"
}
Get a core body temperature data point

Returns the named core body temperature data point. .Request

{
  "googlehealth.core-body-temperature.get" : {
    "name" : "users/me/dataTypes/core-body-temperature/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-5c8f2e0f-d033-4066-8778-f333a33151b4",
  "dataType" : "core-body-temperature",
  "status" : "OK"
}

Daily heart rate variability

List daily heart rate variability data points

Returns daily heart rate variability data points. .Request

{
  "googlehealth.daily-heart-rate-variability.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-0175ff46-bad5-49ea-a1fa-7fa9ab450a1f",
  "dataType" : "daily-heart-rate-variability",
  "status" : "OK"
}

Daily heart rate zones

List daily heart rate zones data points

Returns daily heart rate zones data points. .Request

{
  "googlehealth.daily-heart-rate-zones.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-1e882c81-f9d1-431a-8cf4-9679d39d9abe",
  "dataType" : "daily-heart-rate-zones",
  "status" : "OK"
}

Daily oxygen saturation

List daily oxygen saturation data points

Returns daily oxygen saturation data points. .Request

{
  "googlehealth.daily-oxygen-saturation.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-0d1f5d13-b187-4bee-9024-3fdc80dee55b",
  "dataType" : "daily-oxygen-saturation",
  "status" : "OK"
}

Daily respiratory rate

List daily respiratory rate data points

Returns daily respiratory rate data points. .Request

{
  "googlehealth.daily-respiratory-rate.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-3dbd811e-1958-4a17-9fae-5f4cba0bd35d",
  "dataType" : "daily-respiratory-rate",
  "status" : "OK"
}

Daily resting heart rate

List daily resting heart rate data points

Returns daily resting heart rate data points. .Request

{
  "googlehealth.daily-resting-heart-rate.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-63a1f54e-96ea-4e56-8825-da3d971866d8",
  "dataType" : "daily-resting-heart-rate",
  "status" : "OK"
}

Daily VO2 max

List daily VO2 max data points

Returns daily VO2 max data points. .Request

{
  "googlehealth.daily-vo2-max.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-112964c5-cf16-4e15-b64e-d7f233cdbab5",
  "dataType" : "daily-vo2-max",
  "status" : "OK"
}

Electrocardiogram

List electrocardiogram data points

Returns electrocardiogram data points. .Request

{
  "googlehealth.electrocardiogram.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-5be0e214-8702-48ca-adcf-9a8c94683c35",
  "dataType" : "electrocardiogram",
  "status" : "OK"
}

Heart rate

List heart rate data points

Returns heart rate data points. .Request

{
  "googlehealth.heart-rate.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-c674b7ac-4007-4989-913f-e337b85e9ad4",
  "dataType" : "heart-rate",
  "status" : "OK"
}

Heart rate variability

List heart rate variability data points

Returns heart rate variability data points. .Request

{
  "googlehealth.heart-rate-variability.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-2e5c8354-68cf-4e45-84e3-f46b1d9099f6",
  "dataType" : "heart-rate-variability",
  "status" : "OK"
}

Irregular rhythm notification

List irregular rhythm notification data points

Returns irregular rhythm notification data points. .Request

{
  "googlehealth.irregular-rhythm-notification.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-d02487a5-17a7-4925-ab2c-f799dcd23887",
  "dataType" : "irregular-rhythm-notification",
  "status" : "OK"
}

Oxygen saturation

List oxygen saturation data points

Returns oxygen saturation data points. .Request

{
  "googlehealth.oxygen-saturation.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-8ced9ec1-6f89-47fa-b433-a9c375c5bcc1",
  "dataType" : "oxygen-saturation",
  "status" : "OK"
}

Respiratory rate sleep summary

List respiratory rate sleep summary data points

Returns respiratory rate sleep summary data points. .Request

{
  "googlehealth.respiratory-rate-sleep-summary.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-1895bd9b-f153-4040-a6a5-c29f8efa3f6c",
  "dataType" : "respiratory-rate-sleep-summary",
  "status" : "OK"
}

Run VO2 max

List run VO2 max data points

Returns run VO2 max data points. .Request

{
  "googlehealth.run-vo2-max.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-5b215f2d-8d4f-449f-96a0-63e4b9049948",
  "dataType" : "run-vo2-max",
  "status" : "OK"
}

Sedentary period

List sedentary period data points

Returns sedentary period data points. .Request

{
  "googlehealth.sedentary-period.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-caebd1ea-3a28-495b-9908-3493628e04db",
  "dataType" : "sedentary-period",
  "status" : "OK"
}

VO2 max

List VO2 max data points

Returns VO2 max data points. .Request

{
  "googlehealth.vo2-max.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-972222ad-66c7-4076-b2a7-e94d5424a3d8",
  "dataType" : "vo2-max",
  "status" : "OK"
}

Nutrition

Hydration log

List hydration log data points

Returns hydration log data points. .Request

{
  "googlehealth.hydration-log.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-88fc5bc4-9334-45fd-9d92-25ff415c8666",
  "dataType" : "hydration-log",
  "status" : "OK"
}
Get a hydration log data point

Returns the named hydration log data point. .Request

{
  "googlehealth.hydration-log.get" : {
    "name" : "users/me/dataTypes/hydration-log/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-75d7ac7c-386e-4a43-af03-01cc0abce3a0",
  "dataType" : "hydration-log",
  "status" : "OK"
}
Create a hydration log data point

Creates a hydration log data point. .Request

{
  "googlehealth.hydration-log.create" : {
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "volumeLiters" : 0.25
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-8b382090-fb80-49d1-850a-ad7f9ad36f2c",
  "dataType" : "hydration-log",
  "status" : "OK"
}
Update a hydration log data point

Updates the named hydration log data point. .Request

{
  "googlehealth.hydration-log.update" : {
    "name" : "users/me/dataTypes/hydration-log/dataPoints/example",
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "volumeLiters" : 0.25
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-640e4d89-a714-444c-8a8f-c2438e405b79",
  "dataType" : "hydration-log",
  "status" : "OK"
}
Delete hydration log data points

Deletes the supplied hydration log data points. .Request

{
  "googlehealth.hydration-log.delete" : {
    "names" : [ "users/me/dataTypes/hydration-log/dataPoints/example", "users/me/dataTypes/hydration-log/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-184c6d87-0ff0-41a8-9764-79b3d92c25fd",
  "dataType" : "hydration-log",
  "status" : "OK"
}

Nutrition log

List nutrition log data points

Returns nutrition log data points. .Request

{
  "googlehealth.nutrition-log.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-3941b4cb-90db-4998-a331-a084c465412d",
  "dataType" : "nutrition-log",
  "status" : "OK"
}
Get a nutrition log data point

Returns the named nutrition log data point. .Request

{
  "googlehealth.nutrition-log.get" : {
    "name" : "users/me/dataTypes/nutrition-log/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-6ab1cf73-4201-4159-9971-1f62383b0002",
  "dataType" : "nutrition-log",
  "status" : "OK"
}
Create a nutrition log data point

Creates a nutrition log data point. .Request

{
  "googlehealth.nutrition-log.create" : {
    "data" : {
      "mealTime" : "2024-01-01T12:00:00Z",
      "foodName" : "Apple"
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-ac80ed68-6c5a-445d-81a5-d203e3af1771",
  "dataType" : "nutrition-log",
  "status" : "OK"
}
Update a nutrition log data point

Updates the named nutrition log data point. .Request

{
  "googlehealth.nutrition-log.update" : {
    "name" : "users/me/dataTypes/nutrition-log/dataPoints/example",
    "data" : {
      "mealTime" : "2024-01-01T12:00:00Z",
      "foodName" : "Apple"
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-31684c52-cb6e-4095-b230-6d5c669a1e58",
  "dataType" : "nutrition-log",
  "status" : "OK"
}
Delete nutrition log data points

Deletes the supplied nutrition log data points. .Request

{
  "googlehealth.nutrition-log.delete" : {
    "names" : [ "users/me/dataTypes/nutrition-log/dataPoints/example", "users/me/dataTypes/nutrition-log/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-70c1e8d6-46a2-47d5-9c59-31e5a15c8f72",
  "dataType" : "nutrition-log",
  "status" : "OK"
}

Food

List food data points

Returns food data points. .Request

{
  "googlehealth.food.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-afec2663-7a8d-4268-a190-d8ecacd34084",
  "dataType" : "food",
  "status" : "OK"
}
Get a food data point

Returns the named food data point. .Request

{
  "googlehealth.food.get" : {
    "name" : "users/me/dataTypes/food/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-c926018b-e62c-4e36-84dd-83a8ff4026ec",
  "dataType" : "food",
  "status" : "OK"
}

Food measurement unit

List food measurement unit data points

Returns food measurement unit data points. .Request

{
  "googlehealth.food-measurement-unit.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-a92c1b43-de1e-4e60-8369-38ee1e9afbc6",
  "dataType" : "food-measurement-unit",
  "status" : "OK"
}
Get a food measurement unit data point

Returns the named food measurement unit data point. .Request

{
  "googlehealth.food-measurement-unit.get" : {
    "name" : "users/me/dataTypes/food-measurement-unit/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-8900515b-39aa-4e06-9e8d-9052c714d7e6",
  "dataType" : "food-measurement-unit",
  "status" : "OK"
}

Sleep

Daily sleep temperature derivations

List daily sleep temperature derivations data points

Returns daily sleep temperature derivations data points. .Request

{
  "googlehealth.daily-sleep-temperature-derivations.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-69040614-482c-4add-b152-77f38682cbcd",
  "dataType" : "daily-sleep-temperature-derivations",
  "status" : "OK"
}

Sleep

List sleep data points

Returns sleep data points. .Request

{
  "googlehealth.sleep.list" : {
    "filter" : "startTime > '2024-01-01T00:00:00Z'",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-5300cdf2-9e3e-4618-ba14-ba7a8b3962dc",
  "dataType" : "sleep",
  "status" : "OK"
}
Get a sleep data point

Returns the named sleep data point. .Request

{
  "googlehealth.sleep.get" : {
    "name" : "users/me/dataTypes/sleep/dataPoints/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "get",
  "endpointId" : "device-8f964137-9942-42b0-8275-af537206050d",
  "dataType" : "sleep",
  "status" : "OK"
}
Create a sleep data point

Creates a sleep data point. .Request

{
  "googlehealth.sleep.create" : {
    "data" : {
      "interval" : {
        "startTime" : "2024-01-01T22:00:00Z",
        "endTime" : "2024-01-02T06:00:00Z"
      },
      "type" : "STAGES"
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-ce462a7c-ff5a-4004-9cfc-35d593398c8e",
  "dataType" : "sleep",
  "status" : "OK"
}
Update a sleep data point

Updates the named sleep data point. .Request

{
  "googlehealth.sleep.update" : {
    "name" : "users/me/dataTypes/sleep/dataPoints/example",
    "data" : {
      "interval" : {
        "startTime" : "2024-01-01T22:00:00Z",
        "endTime" : "2024-01-02T06:00:00Z"
      },
      "type" : "STAGES"
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-c064da8c-1c80-4b97-b3ab-6342068dc536",
  "dataType" : "sleep",
  "status" : "OK"
}
Delete sleep data points

Deletes the supplied sleep data points. .Request

{
  "googlehealth.sleep.delete" : {
    "names" : [ "users/me/dataTypes/sleep/dataPoints/example", "users/me/dataTypes/sleep/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-0ee0abe4-1ea7-4b9f-acb4-5d4df3a2765d",
  "dataType" : "sleep",
  "status" : "OK"
}

Reproductive health

Menstrual period

Create a menstrual period data point

Creates a menstrual period data point. .Request

{
  "googlehealth.menstrual-period.create" : {
    "data" : {
      "startTime" : "2024-01-01T00:00:00Z",
      "endTime" : "2024-01-05T00:00:00Z"
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-8acfee08-990c-4b65-b0ef-200d3de2659f",
  "dataType" : "menstrual-period",
  "status" : "OK"
}
Update a menstrual period data point

Updates the named menstrual period data point. .Request

{
  "googlehealth.menstrual-period.update" : {
    "name" : "users/me/dataTypes/menstrual-period/dataPoints/example",
    "data" : {
      "startTime" : "2024-01-01T00:00:00Z",
      "endTime" : "2024-01-05T00:00:00Z"
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-6dae725d-e631-4383-a112-4cfede015330",
  "dataType" : "menstrual-period",
  "status" : "OK"
}
Delete menstrual period data points

Deletes the supplied menstrual period data points. .Request

{
  "googlehealth.menstrual-period.delete" : {
    "names" : [ "users/me/dataTypes/menstrual-period/dataPoints/example", "users/me/dataTypes/menstrual-period/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-7ef7395f-a34a-4e66-bc30-98b171f3fd37",
  "dataType" : "menstrual-period",
  "status" : "OK"
}

Moods

Create a moods data point

Creates a moods data point. .Request

{
  "googlehealth.moods.create" : {
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "mood" : "HAPPY"
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-01381638-b48a-47fc-bc0a-b514c13e65b6",
  "dataType" : "moods",
  "status" : "OK"
}
Update a moods data point

Updates the named moods data point. .Request

{
  "googlehealth.moods.update" : {
    "name" : "users/me/dataTypes/moods/dataPoints/example",
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "mood" : "HAPPY"
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-076099a1-531c-462e-a499-8b61f62257f5",
  "dataType" : "moods",
  "status" : "OK"
}
Delete moods data points

Deletes the supplied moods data points. .Request

{
  "googlehealth.moods.delete" : {
    "names" : [ "users/me/dataTypes/moods/dataPoints/example", "users/me/dataTypes/moods/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-c468ce56-69e0-49e9-87de-f92fc40b302d",
  "dataType" : "moods",
  "status" : "OK"
}

Ovulation test

Create an ovulation test data point

Creates an ovulation test data point. .Request

{
  "googlehealth.ovulation-test.create" : {
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "result" : "POSITIVE"
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-352bf4be-d4c8-4de0-8f37-3adbcc964e11",
  "dataType" : "ovulation-test",
  "status" : "OK"
}
Update an ovulation test data point

Updates the named ovulation test data point. .Request

{
  "googlehealth.ovulation-test.update" : {
    "name" : "users/me/dataTypes/ovulation-test/dataPoints/example",
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "result" : "POSITIVE"
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-e3289969-80ed-436e-92ad-7017397560d1",
  "dataType" : "ovulation-test",
  "status" : "OK"
}
Delete ovulation test data points

Deletes the supplied ovulation test data points. .Request

{
  "googlehealth.ovulation-test.delete" : {
    "names" : [ "users/me/dataTypes/ovulation-test/dataPoints/example", "users/me/dataTypes/ovulation-test/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-c237017a-6d15-4af0-a031-37ea0e69ed24",
  "dataType" : "ovulation-test",
  "status" : "OK"
}

Logged symptoms

Symptoms

Create a symptoms data point

Creates a symptoms data point. .Request

{
  "googlehealth.symptoms.create" : {
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "symptom" : "HEADACHE"
    },
    "dataSource" : "devices/example"
  }
}
Example response
{
  "result" : { },
  "operation" : "create",
  "endpointId" : "device-4f69a5da-514b-4b22-86c6-97672d4d5ae3",
  "dataType" : "symptoms",
  "status" : "OK"
}
Update a symptoms data point

Updates the named symptoms data point. .Request

{
  "googlehealth.symptoms.update" : {
    "name" : "users/me/dataTypes/symptoms/dataPoints/example",
    "data" : {
      "measurementTime" : "2024-01-01T00:00:00Z",
      "symptom" : "HEADACHE"
    }
  }
}
Example response
{
  "result" : { },
  "operation" : "update",
  "endpointId" : "device-bf197f45-ba7a-433b-9894-13c97ba94105",
  "dataType" : "symptoms",
  "status" : "OK"
}
Delete symptoms data points

Deletes the supplied symptoms data points. .Request

{
  "googlehealth.symptoms.delete" : {
    "names" : [ "users/me/dataTypes/symptoms/dataPoints/example", "users/me/dataTypes/symptoms/dataPoints/example-2" ]
  }
}
Example response
{
  "result" : { },
  "operation" : "delete",
  "endpointId" : "device-00a55c35-a9ae-4c38-a113-d8d63b7ed7f2",
  "dataType" : "symptoms",
  "status" : "OK"
}

Notifications

Google Health Pub/Sub notification

Forwards the raw Google Pub/Sub push body to every linked device when Google sends a notification.

Websocket notification
{
  "googlehealth.notification": {
    "notification": "{raw Google Pub/Sub push message body}"
  }
}
Examples