Google Fit REST Users API

The Users API from Google Fit REST — 6 operation(s) for users.

GitHub OpenAPI
Business capability
Consumer Health, Fitness & Nutrition AE-130

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /fitness/v1/users/{userId}/sessions/{sessionId} Update or insert a session · Update sessions #
Ask an LLM
“How do I rename a workout session I already created?”
“Can I change the start and end time of an existing session?”
Tell an agent
Update session {sessionId} for user {userId} to start at {startTimeMillis} and end at {endTimeMillis}.
Rename session {sessionId} for user {userId} to {name}.
DELETE /fitness/v1/users/{userId}/sessions/{sessionId} Delete a session · Delete sessions #
Ask an LLM
“How do I delete a workout session I recorded by mistake?”
“Can I remove one session from my history?”
Tell an agent destructive · confirm first
Delete session {sessionId} for user {userId}.
Remove the workout session {sessionId} from my history.
GET /fitness/v1/users/{userId}/sessions List a user's workout sessions · List sessions #
Ask an LLM
“What workouts have I recorded in the last month?”
“Can I list only my running sessions?”
Tell an agent
List sessions for user {userId} between {startTime} and {endTime}.
Show all my sessions of activity type {activityType}.
DELETE /fitness/v1/users/{userId}/dataSources/{dataSourceId} Delete a data source · Delete dataSources #
Ask an LLM
“How do I delete a data source that contains no workout data?”
“Can I remove a data source I no longer use?”
Tell an agent destructive · confirm first
Delete data source {dataSourceId} for user {userId}.
Remove the unused data source {dataSourceId}.
PUT /fitness/v1/users/{userId}/dataSources/{dataSourceId} Update a data source · Update dataSources #
Ask an LLM
“How do I rename a data source that tracks my workouts?”
“Can I change the stream name of an existing data source?”
Tell an agent
Rename data source {dataSourceId} for user {userId} to {dataStreamName}.
Update the device on data source {dataSourceId}.
GET /fitness/v1/users/{userId}/dataSources/{dataSourceId} Get a data source · Get dataSources #
Ask an LLM
“How do I look up the details of one of my data sources?”
“What type and name does a given data source have?”
Tell an agent
Get data source {dataSourceId} for user {userId}.
Show the details of data source {dataSourceId}.
GET /fitness/v1/users/{userId}/dataSources List a user's data sources · List dataSources #
Ask an LLM
“Which data sources are visible to my app?”
“Can I list only the data sources for one data type?”
Tell an agent
List data sources for user {userId}.
Show data sources for data type {dataTypeName}.
POST /fitness/v1/users/{userId}/dataSources Create a data source · Create dataSources #
Ask an LLM
“How do I register a new data source for my own sensor data?”
“Can I create a data source for a custom workout type?”
Tell an agent
Create a {type} data source {dataStreamId} for user {userId} of type {dataType}.
Register a new workout data source named {dataStreamName} for user {userId}.
DELETE /fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId} Delete a data range from a source dataset · Delete datasets #
Ask an LLM
“How do I clear all data points in a dataset range from a data source?”
“Does deleting a dataset remove only the points over a time range, or the whole dataset?”
Tell an agent destructive · confirm first
Delete dataset {datasetId} from data source {dataSourceId} for {userId}.
Clear the data points in {userId}'s {dataSourceId} dataset {datasetId}.
PATCH /fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId} Add data points to a session dataset · Patch datasets #
Ask an LLM
“How do I add new data points to an existing session dataset?”
“Can I append points to a session dataset without replacing the rest?”
Tell an agent
Add data points {point} to dataset {datasetId} of data source {dataSourceId} for user {userId}.
Append these workout points to session dataset {datasetId}.
GET /fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId} Get a session dataset · Get datasets #
Ask an LLM
“How do I read all the data points in a session's dataset?”
“Can I fetch a session dataset by its ID?”
Tell an agent
Get dataset {datasetId} from data source {dataSourceId} for user {userId}.
Fetch the data points in session dataset {datasetId}.
GET /fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges List data point changes for a data source · List dataPointChanges #
Ask an LLM
“How do I see what data points changed on a data source?”
“Can I page through a data source's data point changes?”
Tell an agent
List data point changes for data source {dataSourceId} for user {userId}.
Show the latest {limit} data point changes on {dataSourceId}.
POST /fitness/v1/users/{userId}/dataset:aggregate Aggregate workout data into buckets · Aggregate dataset #
Ask an LLM
“How do I get my total steps per day over a date range?”
“Can I bucket workout data by session or by activity type?”
Tell an agent
Aggregate {aggregateBy} for user {userId} from {startTimeMillis} to {endTimeMillis}.
Bucket {bucketByTime} workout data for user {userId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-fitness:google-fitness-users-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-fitness-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fitness Users API
  version: v1
  description: Generated from Google's published Discovery document for Fitness API (fitness v1, revision 20261110). 13 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://fitness.googleapis.com
tags:


# --- truncated at 32 KB (67 KB total) ---
# Full source: https://artifacts.apis.io/google-fitness/openapi/google-fitness-users-api-openapi.yml