Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

endpoint to retrieve swim_lengths data

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? 

Best Answer
0 Votes
2 REPLIES 2

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 Answer
0 Votes

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
0 Votes