10-29-2018 19:46
10-29-2018 19:46
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
11-12-2018 10:49
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.
11-12-2018 10:49
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
Best Answer