googleapis.com

The Fitness API for managing users' fitness tracking data.

🔑 oauth2 13 endpoints analyticsmedia
📄 Docs 📋 OpenAPI spec 🔬 Try in Swagger UI

SDKs by language (10 total)

mcp-toolbox-sdk-python ✓ Official
pip install mcp-toolbox-sdk-python
python-storage ✓ Official
pip install python-storage
python-aiplatform ✓ Official
pip install python-aiplatform
python-genai ✓ Official
pip install python-genai
js-genai ✓ Official
npm install js-genai
go-genai ✓ Official
go get github.com/googleapis/go-genai
sdk-platform-java ✓ Official
# Maven: see https://github.com/googleapis/sdk-platform-java
java-genai ✓ Official
# Maven: see https://github.com/googleapis/java-genai
dotnet-genai ✓ Official
# See https://github.com/googleapis/dotnet-genai
gax-java ✓ Official
# See https://github.com/googleapis/gax-java
curl examples
Lists sessions previously created.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://fitness.googleapis.com/fitness/v1/users/{userId}/sessions
Lists all data sources that are visible to the developer, using the OAuth sco…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://fitness.googleapis.com/fitness/v1/users/{userId}/dataSources
Returns the specified data source.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://fitness.googleapis.com/fitness/v1/users/{userId}/dataSources/{dataSourceId}
Endpoints (13 total)
GET
/{userId}/sessions
Lists sessions previously created.
GET
/{userId}/dataSources
Lists all data sources that are visible to the developer, using the OAuth sco…
GET
/{userId}/dataSources/{dataSourceId}
Returns the specified data source.
GET
/{userId}/dataSources/{dataSourceId}/dataPointChanges
Queries for user's data point changes for a particular data source.
GET
/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}
Returns a dataset containing all data points whose start and end times overla…
POST
/{userId}/dataSources
Creates a new data source that is unique across all data sources belonging to…
POST
/{userId}/dataset:aggregate
Aggregates data of a certain type or stream into buckets divided by a given t…
PUT
/{userId}/sessions/{sessionId}
Updates or insert a given session.
PUT
/{userId}/dataSources/{dataSourceId}
Updates the specified data source. The dataStreamId, dataType, type, dataStre…
PATCH
/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}
Adds data points to a dataset. The dataset need not be previously created. Al…
DELETE
/{userId}/sessions/{sessionId}
Deletes a session specified by the given session ID.
DELETE
/{userId}/dataSources/{dataSourceId}
Deletes the specified data source. The request will fail if the data source c…
At a glance
Total SDKs10
Languages6
Endpoints13
Authoauth2
Categories2
https://fitness.googleapis.com/fitness/v1/users