stravalib
A Python package that makes it easy to access and download data from the Strava V3 REST API.
Decision gist · record as of 2026-08-14
Yes. stravalib is a mature, actively maintained library (first release 2013, latest 2026-06-01) with no security vulnerabilities, low install friction, and permissive licensing. It's the standard Python client for Strava API access and is well-suited for anyone building tools that need to read or modify Strava data. Install it if you're working with Strava activity data.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later; you must obtain a Strava API access token from a registered Strava app before authenticating.
- Low friction install with four lightweight runtime dependencies (pint, arrow, requests, pydantic).
- Active maintenance with a recent release 74 days ago and continued repository activity; requires Python 3.11 or later.
License · maintenance · safety
Apache 2.0 License (permissive) — Apache 2.0 License (permissive) allows free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2026-06-01 (74 days) · last repo commit 2026-08-01 · 995 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 164,715 downloads/mo, #10,540 on PyPI
Alternatives
Verify before relying
pip install stravalib
from stravalib.client import Client
client = Client(access_token='your_token')
athlete = client.get_athlete()- Whether token refresh is automatic or requires manual intervention beyond what the description states.
- Rate limiting behavior and handling of Strava API quota constraints.
- Whether the package supports all Strava V3 API endpoints or a subset.
What it is and what it does
stravalib is a Python wrapper around the Strava V3 REST API that handles OAuth authentication, token management, and data retrieval for activities, athletes, and clubs. It abstracts away the HTTP details of talking to Strava's servers, letting you work with Strava data through a `Client` class that returns structured objects. The package also integrates pint for unit conversion (e.g., converting distances between miles and kilometers) and arrow for working with timestamps, so you can work with Strava's temporal and measurement data in your preferred units.
The library is actively maintained, supports modern Python versions (3.11–3.14), and has no known security vulnerabilities. Its four runtime dependencies are all well-established packages, keeping the install footprint small. It's aimed at developers and researchers who want to build tools around Strava data—whether that's personal activity analysis, training dashboards, or research on athlete behavior.
Use it for
- Build a personal dashboard that fetches your recent activities and displays them with custom metrics or visualizations.
- Analyze your cycling or running performance over time by downloading historical activity data and computing statistics.
- Integrate Strava data into a fitness tracking application that combines data from multiple sources.
- Automate activity tagging or metadata updates on Strava by modifying activities through the API.
- Export athlete profile and club membership data for research or reporting purposes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
stravalib is a mature, actively maintained library (first release 2013, latest 2026-06-01) with no security vulnerabilities, low install friction, and permissive licensing. It's the standard Python client for Strava API access and is well-suited for anyone building tools that need to read or modify Strava data. Install it if you're working with Strava activity data.
Install
stravalib on PyPI
Before you install
Low friction install with four lightweight runtime dependencies (pint, arrow, requests, pydantic). Active maintenance with a recent release 74 days ago and continued repository activity; requires Python 3.11 or later.
Requires Python 3.11 or later; you must obtain a Strava API access token from a registered Strava app before authenticating.
License in practice
Apache 2.0 License (permissive) allows free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install stravalib
from stravalib.client import Client
client = Client(access_token='your_token')
athlete = client.get_athlete()
Verify before relying
- Whether token refresh is automatic or requires manual intervention beyond what the description states.
- Rate limiting behavior and handling of Strava API quota constraints.
- Whether the package supports all Strava V3 API endpoints or a subset.
Package facts
| License | Apache 2.0 License permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagespintarrowrequestspydantic |
| Maintenance | Actively maintained 74 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 164,715 / month, #10,540 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/EngineeringTopic :: Software Development :: Libraries |
Evidence: stravalib-2.5.0-py3-none-any.whl
Tags
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 › “strava api client python”
- stravalibstravalib provides a Python client for authenticating with and…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also garminconnect · stream-python · microsoft-teams-api · fit-tool · ha-garmin · python-keystoneclient · RachioPy · django-activity-stream · freebox-api · veracode-api-py