Simple data extract from the Strava API to generate some data points I'm interested in
Last updated Jul 7, 2026
21
Stars
2
Forks
3
Issues
0
Stars/day
Attention Score
51
Language breakdown
No language data available.
▸ Files
click to expand
README
StravaDataAnalysis
This repository extracts data from the Strava API, which is downstream of Garmin devices, stores it locally (encrypted), and generates visualizations.If other people start using this, I'll try and streamline this process as much as I can.
Generated Content
📅 Stats last updated on: 2026-07-10 12:22:29🏃♂️ Most recent run: 0 years, 2 months, 3 days, 18 hours and 9 minutes




































Instructions
As I'm sure is obvious, I'm teaching myself python as I go so the code quality is not likely to be great. Do with it as you wish.- To use, create an Application on Strava. This can be done here: https://www.strava.com/settings/api
- Copy and paste the following link into your browser, replacing {CLIENTIDHERE} with your numeric Client ID found on your Strava application settings page.
http://www.strava.com/oauth/authorize?clientid={CLIENTIDHERE}&responsetype=code&redirecturi=http://localhost/exchangetoken&approvalprompt=force&scope=profile:readall,activity:read_all
Click authorise when you visit the above link
- You will go to a 404 not found page with a link that looks like this: -
http://localhost/exchangetoken?state=&code={LONGCODEHERE}&scope=read,activity:readall,profile:read_all
Copy the code after '&code=' to save for step 4. You will also need your client ID and client secret found on your Strava application settings page.
- Run 'get_tokens.py'. This will create the initial tokens required for the script.
🔗 More in this category