- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Examples
- Try it!
Query user health and fitness data points.
HTTP request
GET https://health.googleapis.com/v4/{parent=users/*/dataTypes/*}/dataPoints
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 | |
|---|---|
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 |
filter |
Optional. Filter expression following https://google.aip.dev/160. A time range (either physical or civil) can be specified. The supported filter fields are:
Data points in the response will be ordered by the interval start time in descending order. |
dataSourceFamily |
Optional. The data source family name to filter by. If empty, data points from all available data sources will be returned. Format: The supported values are:
Callers that were only granted write scopes for the requested data types may only read the data they wrote themselves: their requests are implicitly restricted to If no data point matches the requested data source family, the response is an empty list rather than an error. Filtering by data source family is not supported for the |
Request body
The request body must be empty.
Response body
Response containing raw data points matching the query
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_fitness.readonlyhttps://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonlyhttps://www.googleapis.com/auth/googlehealth.location.readonlyhttps://www.googleapis.com/auth/googlehealth.nutrition.readonlyhttps://www.googleapis.com/auth/googlehealth.sleep.readonlyhttps://www.googleapis.com/auth/googlehealth.reproductive_health.readonlyhttps://www.googleapis.com/auth/googlehealth.logged_symptoms.readonlyhttps://www.googleapis.com/auth/googlehealth.mindfulness.readonlyhttps://www.googleapis.com/auth/googlehealth.ecg.readonlyhttps://www.googleapis.com/auth/googlehealth.irn.readonlyhttps://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonlyhttps://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonlyhttps://www.googleapis.com/auth/googlehealth.nutrition.writeonlyhttps://www.googleapis.com/auth/googlehealth.sleep.writeonlyhttps://www.googleapis.com/auth/googlehealth.reproductive_health.writeonlyhttps://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonlyhttps://www.googleapis.com/auth/googlehealth.mindfulness.writeonly
For more information, see the OAuth 2.0 Overview.