08-26-2025 10:14
08-26-2025 10:14
When exporting data from my fitbit using google-takeout I find a file recording my swim length data, namely
Physical Activity_GoogleData/swim_lengths_data_yyyy-mm-dd.csv
Now, I'd like to obtain the same data by using the WebAPI, but I can't seem to find any way to do it. There are steps, calories, floors, distance and other stuff, but no swim_lengths.
Do you have any suggestions?
08-26-2025 10:38
08-26-2025 10:38
To put things in context: the csv file contains one line for each lap completed, with the elapsed time, the number of strokes and the detected stroke type.
I can obtain the number of swimming-strokes time-series with the webAPI but that's not quite how the above file is organized
Best Answer09-04-2025 10:32
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
09-04-2025 10:32
The Web API and Google Takeout are different services and might provide different outputs. The only endpoints that might provided details about your swim activity are Get Activity Log List and Get Activity TCX. Have you tried either of these endpoints?
I think you the endpoint you mention for retrieving the number of swimming-strokes is the Get Activity Intraday by Date endpoint. This endpoint would tell you the number of swimming-strokes per 1min, 5min and 15min periods, but not per lap.
Best Answer