Product

How Jentic Works

From API assessment to production deployment in four simple steps.

Product Overview

PLATFORM

API DirectoryBrowse 10,000+ APIs ready for AI agent integrationAPI ScorecardAssess your APIs for AI-readiness with automated scoringAgentic SandboxSafely simulate AI agents with your production APIsJenticSign in to the Jentic web app

CAPABILITIES

IntegrationConnect AI agents to your existing systemsWorkflowsDiscover and capture successful agent workflowsGovernanceDefine, observe, and enforce AI policies

TOOLS

Arazzo UIVisualize Arazzo workflows as interactive documentationArazzo EditorBuild and edit multi-step API workflows visually
Pricing
Developers

GET STARTED

DocumentationGuides and API referenceQuickstartGet up and running in minutes

COMMUNITY

GitHubOpen source projects and examples
Resources
BlogLatest articles and insightsPress & MediaBrand assets and press contactOpen StandardsBuilt on open specs. Never locked in.NewsletterAPIs, AI agents, mixed with architecture and strategy.
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Install Jentic OneBook a Demo
How Jentic WorksAPI DirectoryAPI ScorecardAgentic SandboxJenticIntegrationWorkflowsGovernanceArazzo UIArazzo Editor
Pricing
DocumentationQuickstartGitHub
BlogPress & MediaOpen StandardsNewsletter
About UsCareersContact
Request a demoInstall Jentic One
Jentic
For Enterprises
  • Product Overview
  • Agentic Sandbox
  • Book a Demo
For Developers
  • Jentic One
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
ISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

Terms & Conditions•Privacy Policy•
© 2026 Jentic. All rights reserved.
APIs / Healthcare / Google / Fitness API
Fitness API logo

Google Fitness API

Browse all Google APIs
✓ Official Vendor SpecHealthcareClinical Dataoauth213 EndpointsREST

For Agents

Read and write fitness data points, datasets, and workout sessions for the authenticated Google user across heart rate, steps, distance, calories, and other tracked metrics.

Use for: List the data sources connected to my Google Fit account, Get my step count for the past 7 days as daily totals, Aggregate heart rate data into 5-minute buckets, Write a new running session to Google Fit

Not supported: Does not handle clinical or medical records, prescriptions, or HIPAA-regulated data — use the Cloud Healthcare API for clinical workloads; this API covers consumer fitness tracking only.

The Google Fitness API gives apps programmatic access to a user's fitness tracking data, including steps, heart rate, distance, calories, and workout sessions. It exposes data sources, raw datasets, aggregated reads, and named sessions, all scoped to the authenticated user. Apps can read existing data from connected wearables and write new data points or sessions captured by their own clients.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the Fitness API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Fitness API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with Fitness API.

List the data sources connected to a user's Google Fit account

Read raw data points from a specific data source over a time range

Aggregate fitness data into daily or custom buckets via dataset:aggregate

Write new data points to a custom data source

Create and update named workout sessions for the user

List sessions filtered by activity type and time range

Detect changes to data points since a last read with dataPointChanges

Use Cases

Patterns agents use Fitness API for, with concrete tasks.

★ Pull Daily Activity Summaries into a Health Dashboard

Wellness apps want to show a user a daily summary of steps, distance, calories, and active minutes. The Fitness API's dataset:aggregate endpoint groups raw data points from connected sources into daily buckets in a single call, so the dashboard can fetch a week of summary data without paginating through raw points. The aggregation respects the user's connected device sources.

Call POST /me/dataset:aggregate with a 7-day window and bucketByTime of 86400000 ms to fetch daily step counts for the user.

Log Workouts from a Coaching App

Coaching and training apps capture sessions on their own clients (a treadmill run, a yoga class) and need to write them back to Google Fit so the data is available across all the user's apps. The Fitness API supports session create and update, plus matching data point writes against an app-owned data source. Sessions appear in the Fit timeline with the app's name and activity type.

Call PUT /me/sessions/{sessionId} with activityType for running and the start and end times, and write matching heart rate data points to a custom dataSource.

Sync Data on a Schedule

Background services that mirror Google Fit data into a user's account on another platform need to detect what changed since the last sync. The dataPointChanges endpoint returns inserted and deleted points since a token, allowing efficient incremental sync without rereading the full history.

Call GET /me/dataSources/{dataSourceId}/dataPointChanges with the previous pageToken and persist the new points and deletes to the local store.

Agent-Mediated Wellness Reports

An AI wellness assistant can summarise a user's recent activity by querying the Fitness API through Jentic. The agent searches for the aggregate operation, loads the schema, and executes it with the requested time range, returning steps and active minutes for the assistant's reply. The user's OAuth token never enters the agent's prompt context.

Use Jentic to search 'aggregate google fit data', load the dataset:aggregate schema, and execute it for the past 30 days bucketed daily.

Key Endpoints

13 endpoints — the google fitness api gives apps programmatic access to a user's fitness tracking data, including steps, heart rate, distance, calories, and workout sessions.

METHOD

PATH

DESCRIPTION

GET

/{userId}/dataSources

List a user's data sources

POST

/{userId}/dataSources

Create a custom data source

GET

/{userId}/dataSources/{dataSourceId}/dataPointChanges

Get incremental data point changes

POST

/{userId}/dataset:aggregate

Aggregate fitness data into time buckets

GET

/{userId}/sessions

List workout sessions

PUT

/{userId}/sessions/{sessionId}

Create or update a session

GET

/{userId}/dataSources

List a user's data sources

POST

/{userId}/dataSources

Create a custom data source

GET

/{userId}/dataSources/{dataSourceId}/dataPointChanges

Get incremental data point changes

POST

/{userId}/dataset:aggregate

Aggregate fitness data into time buckets

GET

/{userId}/sessions

List workout sessions

PUT

/{userId}/sessions/{sessionId}

Create or update a session

Why Jentic?

Three things that make agents converge on Jentic-routed access.

Credential management

Credential isolation

User OAuth refresh tokens live encrypted in the Jentic vault. Agents receive scoped, short-lived access tokens for fitness scopes only.

Intent-based discovery

Intent-based discovery

Agents search by intent (e.g., 'get daily steps from google fit') and Jentic returns the dataset:aggregate or sessions list operation with the request schema already populated.

Time to first call

Time to first call

Direct integration: 2-3 days for OAuth verification, scope handling, and aggregate query construction. Through Jentic: under 30 minutes.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Complementary

Cloud Healthcare API

→

Stores FHIR, DICOM, and HL7v2 clinical data for regulated healthcare workloads.

Use Cloud Healthcare for clinical-grade, HIPAA-aligned storage; Google Fit for consumer wearable data.

Complementary

Google Calendar API

→

Schedules events that often correspond to logged workout sessions.

Pair with Fitness when an agent should turn a logged session into a calendar event or vice versa.

Complementary

Google Drive API

→

Stores exported fitness reports or images alongside Fit data.

Use Drive for file storage of generated wellness PDFs; Fitness API for the underlying metric data.

FAQs

Specific to using Fitness API through Jentic.

What authentication does the Google Fitness API use?

It uses Google OAuth 2.0 user-consent flows with fitness-specific scopes such as fitness.activity.read and fitness.heart_rate.write. Through Jentic, the user's refreshable OAuth credentials live encrypted in the vault and the agent receives only a scoped bearer token.

Can I read heart rate data with this API?

Yes, when the user grants the fitness.heart_rate.read scope. Read heart rate points by listing the appropriate data source under /me/dataSources and calling the dataset endpoints, or use dataset:aggregate to bucket heart rate samples over time.

What are the rate limits for the Google Fitness API?

Google enforces a default per-user and per-project quota, typically a few queries per second per user. Exceeding the quota returns HTTP 429 and should be retried with exponential backoff.

How do I aggregate a user's daily steps through Jentic?

Search Jentic for 'aggregate google fit data', load the schema for POST /me/dataset:aggregate, and execute it with aggregateBy of com.google.step_count.delta and bucketByTime of 86400000 ms over the desired range.

Is the Google Fitness API free?

Yes, the API itself is free to use. Apps are still subject to Google OAuth verification requirements before they can request restricted fitness scopes from end users.

Can I write data to Google Fit from my own app?

Yes. Create a custom data source under /me/dataSources, then write points to that source via the dataset endpoints, and create matching named sessions via PUT /me/sessions/{sessionId}.

GET STARTED

Start building with Fitness API

Explore with Jentic
View OpenAPI Document