Google Fit REST · Schema

Google Fit Session

A session resource from the Google Fit REST API representing a time-bounded fitness activity.

Activity TrackingFitnessGoogleHealthSessionsWearablesWellness

Properties

Name Type Description
id string A client-generated identifier that is unique across all sessions owned by this particular user.
name string A human readable name of the session.
description string A description for this session.
startTimeMillis string A start time in milliseconds since epoch, inclusive.
endTimeMillis string An end time in milliseconds since epoch, inclusive.
modifiedTimeMillis string A timestamp that indicates when the session was last modified.
application object The application that created the session.
activityType integer The type of activity this session represents.
activeTimeMillis string Active time in milliseconds.
View JSON Schema on GitHub

JSON Schema

fitness.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-fitness/refs/heads/main/json-schema/fitness.json",
  "title": "Google Fit Session",
  "description": "A session resource from the Google Fit REST API representing a time-bounded fitness activity.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "A client-generated identifier that is unique across all sessions owned by this particular user."
    },
    "name": {
      "type": "string",
      "description": "A human readable name of the session."
    },
    "description": {
      "type": "string",
      "description": "A description for this session."
    },
    "startTimeMillis": {
      "type": "string",
      "description": "A start time in milliseconds since epoch, inclusive."
    },
    "endTimeMillis": {
      "type": "string",
      "description": "An end time in milliseconds since epoch, inclusive."
    },
    "modifiedTimeMillis": {
      "type": "string",
      "description": "A timestamp that indicates when the session was last modified."
    },
    "application": {
      "type": "object",
      "description": "The application that created the session.",
      "properties": {
        "name": {
          "type": "string"
        },
        "packageName": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "detailsUrl": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "activityType": {
      "type": "integer",
      "description": "The type of activity this session represents."
    },
    "activeTimeMillis": {
      "type": "string",
      "description": "Active time in milliseconds."
    }
  },
  "required": ["id", "startTimeMillis", "endTimeMillis", "activityType"]
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/fitness"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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