$npx skillfedfor your agent

ha-garmin

Python client for Garmin Connect API

Worth itPyPI Python ModulesReleased Aug 2026114.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ha_garmin-0.1.36-py3-none-any.whl
v0.1.36 · released 2026-08-13 · Python >=3.11 · 3 runtime deps: pydantic, curl_cffi, requests

Yes. The package is actively maintained, has no known vulnerabilities, uses permissive MIT licensing, and offers low install friction. It is well-suited for Home Assistant users and developers building Garmin integrations. The API surface is comprehensive and the library handles authentication and token management transparently. Start with it if you need Garmin Connect access in Python.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later.
  • Authentication is synchronous; data fetches are async and must be awaited.
  • Low install friction with a pure-Python wheel and only three runtime dependencies (pydantic, curl_cffi, requests).

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions.

last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 5 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 114,100 downloads/mo, #12,313 on PyPI

Verify before relying

pip install ha-garmin

import asyncio
from datetime import date
from ha_garmin import GarminAuth, GarminClient

auth = GarminAuth()
auth.login("email@example.com", "password")
client = GarminClient(auth)

async def fetch():
    data = await client.fetch_core_data(date.today())
    return data

asyncio.run(fetch())
  • Whether the optional [ua] extra (improved browser UA generation) is necessary for reliable authentication in practice.
  • Rate limit and retry behavior specifics beyond the stated backoff for 429 and 5xx responses.
  • Whether Garmin Connect+ subscription is required for all write operations or only nutrition logging.
Same gist for agents: .md · .json

What it is and what it does

ha-garmin is a Python client library for the Garmin Connect API, designed primarily for Home Assistant integration but usable as a standalone tool. It handles Garmin authentication (including MFA), session persistence, and automatic token refresh, then provides both high-level coordinator methods (optimized for Home Assistant's multi-coordinator pattern) and granular API methods to fetch health data (steps, heart rate, sleep, stress, body composition), activity records, training metrics, gear information, and device status. It also supports writing data back to Garmin—logging nutrition, hydration, blood pressure, and manual activities—though nutrition logging requires a Garmin Connect+ subscription.

The library abstracts away authentication complexity with automatic fallback strategies and midnight-aware data fetching (using yesterday's data when today isn't ready). It automatically transforms raw API responses with unit conversions (seconds to minutes, grams to kilograms) and nested field flattening. Runtime dependencies are lightweight: pydantic for data validation, curl_cffi and requests for HTTP calls.

Use it for

  • Build a Home Assistant integration that syncs daily Garmin health metrics (steps, HR, sleep) into automations and dashboards.
  • Fetch activity records and training readiness scores to trigger workout reminders or recovery alerts.
  • Log manual nutrition entries, hydration, or blood pressure measurements back to Garmin Connect from external apps.
  • Download and archive activity files (FIT, GPX, TCX) for personal data backup or analysis.
  • Monitor gear usage statistics and device battery/sync status across multiple Garmin devices.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, uses permissive MIT licensing, and offers low install friction. It is well-suited for Home Assistant users and developers building Garmin integrations. The API surface is comprehensive and the library handles authentication and token management transparently. Start with it if you need Garmin Connect access in Python.

Install

ha-garmin on PyPI

Before you install

Low install friction with a pure-Python wheel and only three runtime dependencies (pydantic, curl_cffi, requests). Active maintenance with a recent commit on 2026-08-13.

Requires Python 3.11 or later. Authentication is synchronous; data fetches are async and must be awaited.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions.

Quickstart

pip install ha-garmin

import asyncio
from datetime import date
from ha_garmin import GarminAuth, GarminClient

auth = GarminAuth()
auth.login("email@example.com", "password")
client = GarminClient(auth)

async def fetch():
    data = await client.fetch_core_data(date.today())
    return data

asyncio.run(fetch())

Verify before relying

  • Whether the optional [ua] extra (improved browser UA generation) is necessary for reliable authentication in practice.
  • Rate limit and retry behavior specifics beyond the stated backoff for 429 and 5xx responses.
  • Whether Garmin Connect+ subscription is required for all write operations or only nutrition logging.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
pydanticcurl_cffirequests
MaintenanceActively maintained 1 days since the last release
Last repo commit
First released
Downloads114,100 / month, #12,313 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: ha_garmin-0.1.36-py3-none-any.whl

Tags

Capabilities
garmin connect api clientgarmin fitness data pythongarmin health api integrationgarmin device data syncgarmin activity tracking api
Topics
garmin-integrationhome-assistantfitness-api
PyPI keywords
garmingarmin-connectfitnessapihealth

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “garmin health api integration”

  • ha-garminPython client for the Garmin Connect API with support for…
  • garminconnectPython wrapper for the Garmin Connect API that provides programmatic…
  • garthGarth provides Python access to Garmin Connect data via OAuth…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also axis · garminconnect · fit-tool · garth · fitparse · garmin-fit-sdk · asyncsleepiq · total-connect-client · aioharmony · stravalib