Product
Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing
Developers

GET STARTED

API DirectoryBrowse 10,000+ APIs Ready For AI Agent IntegrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI Readiness using our scorecardArazzo UIVisualize Arazzo Workflows As Interactive DocumentationArazzo EditorBuild And Edit Multi-Step API Workflows Visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
Resources
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
Resources
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

AICPA SOC for Service Organizations logoAICPA SOC for Service Organizations logo

SOC 2® Type 1 report

Audited by Prescient Assurance

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
2 Grattan Court East, Dublin, D02 VX86, Ireland
Switch to light modeSwitch to dark mode
APIs / Healthcare / Google / Fitness API
Fitness API logo

Google Fitness API

Browse all Google APIs
37
AI ReadinessNon-Ready (F)37/100
See full scorecard
Official vendor OpenAPI document · agent-readyHealthcareClinical 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://jentic.com/install.sh?src=apis&api=%2Fapis%2Fgoogleapis.com%2Ffitness" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fgoogleapis.com%2Ffitness" | 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

Jentic AI Readiness Score

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

F

Fitness API

- Non-Ready (F)
37/100
48
Foundational Compliance
56
Developer Experience & Jentic Compatibility
16
AI-Readiness & Agent Experience
94
Agent Usability
63
Security
55
AI Discoverability
Powered by JenticScoring Framework 1.0.0 | Scoring Engine 0.4.0
Show dimension breakdown
48

Foundational Compliance

Base layer of spec validity and structural soundness.

Grade: D+Signals: 4
90%

Lint Results

Aggregated quality score from linter diagnostics, weighted by severity.

100%

Resolution Completeness

Percentage of `$ref` references that resolve successfully.

0%

Specification Validity

Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).

0%

Structural Integrity

Structural correctness score based on schema issues using logarithmic dampening.

56

Developer Experience & Jentic Compatibility

Clarity, completeness, and ingestion readiness for developers and tooling.

Grade: CSignals: 4
0%

Example Density

How richly the API is illustrated with examples.

100%

Example Validity

Percentage of examples that conform to their schemas.

25%

Response Coverage

Percentage of operations with complete response definitions (success, client error, server error).

100%

Tooling Readiness

Health of API ingestion, bundling, and resolution within Jentic pipelines.

16

AI-Readiness & Agent Experience

Semantic breadth, depth, and agent comprehension for AI systems.

Grade: FSignals: 4
65%

Description Coverage

Coverage of descriptions across API elements.

0%

Error Standardization

Coverage of RFC 9457 Problem Details for error responses.

0%

OperationId Quality

Coverage, uniqueness, and casing consistency of operationIds for AI inference.

0%

Summary Coverage

Coverage of summaries across operations/tags/info.

94

Agent Usability

Functional utility, complexity comfort, and AI orchestration readiness.

Grade: A+Signals: 1
94%

Complexity Comfort

Agent comfort level based on API operational and structural complexity.

63

Security

Trust, risk posture, and security compliance.

Grade: B-Signals: 1
62%

Authentication Strength

Average quality of security schemes based on authentication method strength (weakest link for OAuth2).

55

AI Discoverability

Findability, semantic richness, and reasoning readiness.

Grade: CSignals: 1
55%

Descriptive Richness

Clarity and depth of descriptions across API elements.

View full reportHow the score is calculatedMore about the dimensions

Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

Score your own APIScoring CLI agent skill
npx @jentic/api-scorecard-cli score <openapi-url>

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Wiring the Fitness API by hand means setting up Google OAuth 2.0 with per-user consent, requesting the specific fitness scopes, and refreshing short-lived access tokens yourself. Through Jentic you install once, import the Fitness API from the API Directory, store the OAuth credential once, and your agent calls it.

Permission scoping

The Fitness API addresses the authenticated user's own data, so scope the agent to the operations it needs, such as aggregating a dataset or listing sessions. You choose that operation set, so writing new data sources or sessions is not included unless you add them.

Credential isolation

Your Fitness OAuth credential is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.

Intent-based discovery

Agents search Jentic by intent such as 'get daily steps from Google Fit' or 'list fitness sessions', and Jentic returns the matching operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

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}.

Can I limit what my agent is allowed to do with the Google Fitness API?

Yes. Because you run Jentic One yourself, you decide exactly which Fitness API operations the agent may call and which OAuth credential it uses. You can grant read-only work such as aggregating a dataset with dataset:aggregate or listing a user's sessions and data sources, while withholding write operations like creating a custom data source or updating a session with PUT sessions unless you deliberately add them. The agent can only reach the operations you include, and it never sees the underlying OAuth token.

GET STARTED

Start building with Fitness API

Explore with Jentic One
View OpenAPI Document