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" : "active_energy_burned.interval.start_time >= \"2024-01-01T00:00:00Z\"",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-977fdae9-f1ac-411d-9f0d-632e302a9c10",
  "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-87c97d37-553e-482b-a30c-d2b2460e604e",
  "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-5020a43b-abe6-42d2-92f1-238b70d23507",
  "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-59535df7-476b-4e4b-aeab-8e773106f4ee",
  "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-8b866c0c-5d92-49af-b902-0eddf7a3b2f3",
  "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-0028ae28-a53b-4cae-8c41-05596584d407",
  "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-822d8260-4fb5-4ae7-9932-7fb7503679eb",
  "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-2d351613-e716-4bb7-8d69-48c5f96ba090",
  "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-e61e7942-1c1f-4306-8763-0366503a7e5d",
  "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-b5394f97-f211-4f9e-89c9-727f158c445b",
  "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-8f20c8e0-2a35-4268-ab6b-e62f68b10071",
  "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-b2bbf9d3-6a1f-4dc0-ba6d-fc23fdcf60e8",
  "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-380735ae-53f2-41ad-a71b-1c9bbb236b1c",
  "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-aaa90aa1-b607-4565-9502-5e5ff377a336",
  "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-f0e8b20e-3e98-4ed0-9b22-1416321cc279",
  "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-d3e0eced-9e83-46ab-95b5-ba490219e08b",
  "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-671ed303-c3e6-4388-9ec9-eeb3fe28a4d2",
  "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-547b9670-46ff-4906-b1e0-9cf709844131",
  "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-dbc825ac-213e-409a-ba22-514e506c41ae",
  "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-24142a6a-3e37-497b-9f68-a90f109bf868",
  "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-40a38dd9-3a4d-407c-9423-77c30a7861d3",
  "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-6687cd48-1c4d-4485-b6fa-5183f7c22285",
  "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-a12bad02-63c0-415e-8cfb-d9e8d738deef",
  "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-7e01026b-698e-41f5-8560-10d9c887f924",
  "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-bc472cdb-f91a-4b48-a88e-f4c872237113",
  "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-c8b6fad9-c967-40f1-aab8-fb2415e1c37a",
  "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-b5b52f09-90a7-479f-839f-7bbf063786e2",
  "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-3445482d-7d41-4e00-9b14-161c99273e6b",
  "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-22e8b6c7-df25-4b29-98b8-296605b99d4b",
  "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-44dbd9d8-4e1e-423c-bdeb-9c558e768975",
  "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-df42dfde-0529-426b-ad6a-1181c3036370",
  "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-83a4c386-e9cc-420f-9c07-12812491e6e9",
  "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-c192ad9b-f2a9-43f5-8e06-11470344441e",
  "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-bb26c8cb-78cd-4a25-8d8f-16ff9ad649c9",
  "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-2c78a527-d149-4d12-9230-091e45834b6b",
  "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-47bde303-5d72-4bf1-b80a-60d7c9261308",
  "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-32b22fb0-7066-4ab6-8c0d-285e3eabbfc2",
  "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-17137d4b-e824-47f7-aa37-a971f4c325f8",
  "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-ee833277-ac69-49f4-998f-14e7c4cd3e3e",
  "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-f5210c4f-2b91-4748-865b-4d2cd0a9c0e2",
  "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-db57af63-604c-405a-9e2c-7c9af5fd4a2e",
  "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-b8c42406-6ddc-4515-8483-d5f603e2358d",
  "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-ed31890c-0c75-47f2-96c7-0fb5b0f51a8e",
  "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-85f321ab-2ecf-4e68-ade1-734d9f24514b",
  "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-3202c97f-e499-4b9d-b186-14bc5be21060",
  "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-bbd91ed2-2dbb-4a73-816f-34b850265933",
  "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-e1241c4a-aaf0-4602-ab05-1190c7ae52b9",
  "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-5fa3e207-dd44-4b3c-a086-b8f7ea9ab3d4",
  "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-eac44832-f803-43f9-9660-1280ae09f454",
  "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-9461cb95-e5fd-40c5-8e82-2c7223761344",
  "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-7108d86c-8261-4eed-8293-ea882738acab",
  "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-477c57ea-7a20-4598-b5fd-4dfd8a976d05",
  "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-a3c03e0c-faae-4bec-b14b-efdd2d8c1e68",
  "dataType" : "hydration-log",
  "status" : "OK"
}

Nutrition log

List nutrition log data points

Returns nutrition log data points. .Request

{
  "googlehealth.nutrition-log.list" : {
    "filter" : "nutrition_log.interval.civil_start_time >= \"2024-01-01\"",
    "pageSize" : 10,
    "pageToken" : "next-page"
  }
}
Example response
{
  "result" : { },
  "operation" : "list",
  "endpointId" : "device-b3f637f0-46a9-457b-9de1-ecd1f13da2ef",
  "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-ab476471-f677-4c32-868a-9c0e7cd57774",
  "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-53e76258-97d1-4347-9a3a-e001edfc710b",
  "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-e13dcf22-f9ff-445f-88cc-d71456f0aad5",
  "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-71c84481-969a-4a10-8ee8-c64821d93e72",
  "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-277032b1-20d2-4fbd-a093-bc009ffa3868",
  "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-b8ba3b5e-6674-4288-91b8-ca1d03c2d129",
  "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-52be604f-9e79-4730-b6dd-45e3a8a61764",
  "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-40d56f94-dad4-4f64-93bc-d728a2024abb",
  "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-85aea844-738f-4047-aaf4-1abbea3db34b",
  "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-fac7eeeb-e538-4369-b3b7-fc2878c6b64c",
  "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-26eb3bfd-3fd7-401e-8813-76dbfd235e84",
  "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-cb8995a0-fa88-4e19-8222-7eecb36d8f95",
  "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-67ba1f9e-15c0-4153-9045-56360a7f4613",
  "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-f17c8052-7b0f-44d1-a3d5-58b40c0fc750",
  "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-135aa2d1-fd72-440c-baca-eeaee43fe98c",
  "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-15eb6824-06fc-4f02-99a4-ccb534e8d49d",
  "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-2d013145-4470-44f8-9d75-50dfe866dec7",
  "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-faba6e68-54c3-45d3-afc7-95e4c5df7253",
  "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-6573ce11-c469-44b7-9d59-6e915147baf9",
  "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-38acae4c-288a-4d1c-8891-e77f23fe1163",
  "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-d2e64bce-1f7e-4af3-ae1c-05c7259f2e1f",
  "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-d62ec342-1b81-4d89-bf92-9738ac47aa02",
  "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-e2f93d3b-993e-41dc-ad18-552e5afc56ea",
  "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-d5077633-9392-40a5-9dd5-d3847b888048",
  "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-77cd396b-b109-47d0-ae3b-d1a53d708d16",
  "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-67a425c8-e89f-489d-8eb1-c1240ea45d79",
  "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