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

Swim stats and metrics

Hi guys.

 

I was wondering if exist any endpoint (or parameter to an existing endpoint) to retrieve swimming metrics. I would like to have time per lap or something similar. So far I only can get this data:

 

{
    "activityLog": {
        "activeDuration": 1407000,
        "activityLevel": [
            {
                "minutes": 0,
                "name": "sedentary"
            },
            {
                "minutes": 2,
                "name": "lightly"
            },
            {
                "minutes": 7,
                "name": "fairly"
            },
            {
                "minutes": 14,
                "name": "very"
            }
        ],
        "activityName": "Swim",
        "activityTypeId": 90024,
        "averageHeartRate": 95,
        "calories": 222,
        "distance": 1,
        "distanceUnit": "Kilometer",
        "duration": 1839000,
        "elevationGain": 1515.466,
        "hasGps": false,
        "lastModified": "2018-10-30T00:19:11.000Z",
        "logId": 17794613322,
        "logType": "tracker",
        "manualValuesSpecified": {
            "calories": false,
            "distance": false,
            "steps": false
        },
        "originalDuration": 1839000,
        "originalStartTime": "2018-10-29T20:37:31.000-03:00",
        "pace": 1407,
        "poolLength": 25,
        "poolLengthUnit": "Meter",
        "shouldFetchDetails": false,
        "source": {
            "id": "114458374",
            "name": "Ionic",
            "type": "tracker",
            "url": "https://www.fitbit.com/"
        },
        "speed": 2.55863539445629,
        "startTime": "2018-10-29T20:37:31.000-03:00",
        "steps": 14,
        "swimLengths": 41
    }
}

Thanks in advance

Juan Manuel

 

Best Answer
0 Votes
1 REPLY 1

Hi @juanmav,

 

That sounds like a great enhancement to the product.  We already have a feature suggestion for lap tracking.  I'd suggest you vote on it and request the information be pushed down to your Fitbit account through the Web APIs.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes