08-02-2023 04:20
08-02-2023 04:20
I'm looking for a (preferably python but anything at all would help) script that fetches all activity data in TCX files. Does something like that exist?
I'm pretty bummed out that Fitbit makes you manually export every single lifetime activity one by one. For all other data, you can simply use the data export function in Settings.
08-07-2023 11:31
08-07-2023 11:31
Hi @SpO2,
We don't have any endpoints that lets you pull all available TCX files in one API call if thats what you're asking. We only support the Get Activity TCX endpoint that lets you pull the TCX file from a single activity as long as you have the activity log-id for that record.
If you're looking for a list of your activity data, you can try querying the Get Activity Log List endpoint to get a list of activities you've performed before/after a certain date. This endpoint also returns the logId value that you can input in the Get Activity TCX endpoint to retrieve the activity's TCX file, or use the tcxLink value to retrieve the TCX file from the link provided.