- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- ReconciledDataPoint
- Examples
- Try it!
Reconcile data points from multiple data sources into a single data stream.
HTTP request
GET https://health.googleapis.com/v4/{parent=users/*/dataTypes/*}/dataPoints:reconcile
The URL uses gRPC Transcoding syntax. To know more about valid error responses that can be thrown by this HTTP request, please refer to the service error catalog
Path parameters
| Parameters | |
|---|---|
parent |
Required. Parent data type of the Data Point collection. Format:
For a list of the supported data types see the |
Query parameters
| Parameters | |
|---|---|
filter |
Optional. Filter expression based on https://aip.dev/160. A time range, either physical or civil, can be specified. See the |
pageSize |
Optional. The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly. For |
pageToken |
Optional. The |
dataSourceFamily |
Optional. The data source family name to reconcile. If empty, data points from all data sources will be reconciled. Format: The supported values are:
|
Request body
The request body must be empty.
Response body
Response containing the list of reconciled DataPoints.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"dataPoints": [
{
object ( |
| Fields | |
|---|---|
dataPoints[] |
Data points matching the query |
nextPageToken |
Next page token, empty if the response is complete |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/googlehealth.activity_and_fitnesshttps://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonlyhttps://www.googleapis.com/auth/googlehealth.health_metrics_and_measurementshttps://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonlyhttps://www.googleapis.com/auth/googlehealth.locationhttps://www.googleapis.com/auth/googlehealth.location.readonlyhttps://www.googleapis.com/auth/googlehealth.nutritionhttps://www.googleapis.com/auth/googlehealth.nutrition.readonlyhttps://www.googleapis.com/auth/googlehealth.sleephttps://www.googleapis.com/auth/googlehealth.sleep.readonly
For more information, see the OAuth 2.0 Overview.
ReconciledDataPoint
A reconciled computed or recorded metric.
| JSON representation |
|---|
{ "dataPointName": string, // Union field |
| Fields | |
|---|---|
dataPointName |
Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: Example: The The The |
Union field data. Data type component in the name field will always correspond to the data field set. These messages represent the data payload for each data type and are embedded within the DataPoint resource. They are not standalone resources themselves. data can be only one of the following: |
|
steps |
Data for points in the |
floors |
Data for points in the |
heartRate |
Data for points in the |
sleep |
Data for points in the |
dailyRestingHeartRate |
Data for points in the |
dailyHeartRateVariability |
Data for points in the |
exercise |
Data for points in the |
weight |
Data for points in the |
altitude |
Data for points in the |
distance |
Data for points in the |
bodyFat |
Data for points in the |
activeZoneMinutes |
Data for points in the |
heartRateVariability |
Data for points in the |
dailySleepTemperatureDerivations |
Data for points in the |
sedentaryPeriod |
Data for points in the |
runVo2Max |
Data for points in the |
oxygenSaturation |
Data for points in the |
dailyOxygenSaturation |
Data for points in the |
activityLevel |
Data for points in the |
vo2Max |
Data for points in the |
dailyVo2Max |
Data for points in the |
dailyHeartRateZones |
Data for points in the |
hydrationLog |
Data for points in the |
timeInHeartRateZone |
Data for points in the |
activeMinutes |
Data for points in the |
respiratoryRateSleepSummary |
Data for points in the |
dailyRespiratoryRate |
Data for points in the |