Skip to content

Instantly share code, notes, and snippets.

@spawnrider
Last active September 3, 2022 15:52
Show Gist options
  • Save spawnrider/f4fa499c38b1c81eac7ce194eec287a8 to your computer and use it in GitHub Desktop.
Save spawnrider/f4fa499c38b1c81eac7ce194eec287a8 to your computer and use it in GitHub Desktop.
Export all GPX from Garmin Connect using Chrome Console
jQuery.getJSON(
'https://connect.garmin.com/modern/proxy/web-gateway/course/owner/?_=1662219617626',
function(act_list)
{
var t=0;
console.log(act_list);
act_list.coursesForUser.forEach(
function(course) {
setTimeout(function() {
console.dir(course['courseId']);
location = 'https://connect.garmin.com/modern/proxy/course-service/course/gpx/' + course['courseId'];
}, t+=2000);
}
)
}
);
jQuery.getJSON(
'https://connect.garmin.com/modern/proxy/activitylist-service/activities/search/activities?limit=200',
function(act_list)
{
var t=0;
act_list.forEach(
function(act)
{
setTimeout(function() {
console.dir(act['activityId'], act['activityName'], act['startTimeLocal']);
location = 'https://connect.garmin.com/modern/proxy/download-service/export/gpx/activity/' + act['activityId'];
}, t+=5000);
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment