{"id":16815685,"url":"https://github.com/robatron/fitbit-activity-csv","last_synced_at":"2025-08-13T14:13:27.755Z","repository":{"id":136256218,"uuid":"84687094","full_name":"robatron/fitbit-activity-csv","owner":"robatron","description":"Chrome extension to download your Fitbit activity history as a CSV file","archived":false,"fork":false,"pushed_at":"2017-03-16T01:18:08.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T22:17:58.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robatron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-11T23:38:02.000Z","updated_at":"2017-03-11T23:39:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"881eea34-5f7c-48f0-a9e2-d4798f8b3099","html_url":"https://github.com/robatron/fitbit-activity-csv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robatron%2Ffitbit-activity-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robatron%2Ffitbit-activity-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robatron%2Ffitbit-activity-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robatron%2Ffitbit-activity-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robatron","download_url":"https://codeload.github.com/robatron/fitbit-activity-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244033185,"owners_count":20386888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T10:35:11.343Z","updated_at":"2025-03-17T12:29:04.699Z","avatar_url":"https://github.com/robatron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fitbit-activity-csv\n\n\u003e Dumb little Chrome extension I wrote for myself to download a specific set of Fitbit activity data as a CSV file\n\n## Usage\n\nEnable this extension, visit https://www.fitbit.com/activities, then open the JavaScript console.\n\n## Configuration\n\nTBD\n\n## Dev Notes\n\n### AJAX API\n\n#### Example Request\n\n##### Request\n\nPOST https://www.fitbit.com/ajaxapi\n\n##### Form Data\n\n```\nrequest: {\n  \"serviceCalls\": [\n    {\n      \"id\": \"GET \\/api\\/2\\/user\\/activities\\/logs\",\n      \"name\": \"user\",\n      \"method\": \"getActivitiesLogs\",\n      \"args\": {\n        \"fromDate\": \"2017-03-16\",\n        \"toDate\": \"2017-03-16\",\n        \"period\": \"day\",\n        \"offset\": 0,\n        \"limit\": 500\n      }\n    }\n  ],\n  \"template\": \"activities\\/modules\\/models\\/ajax.response.json.jsp\"\n}\ncsrfToken: 67CBA974-6166-1EC7-C7AA-140633DAC75B\n```\n\n#### Example Response\n\n```js\n{\n  \"GET \\/api\\/2\\/user\\/activities\\/logs\": {\n    \"status\": 200,\n    \"result\": [\n      {\n        // Interesting fields (to me)\n        \"dateTime\": \"2017-03-12T14:48:48.000Z\",\n        \"formattedDate\": \"2017-03-12\",\n        \"formattedStartTime\": \"14:48\",\n        \"startTimeHours\": \"14\",\n        \"startTimeMinutes\": \"48\",\n        \"distance\": \"4.5\",\n        \"formattedDuration\": \"49:01\",\n        \"durationHours\": \"\",\n        \"durationMinutes\": 49,\n        \"durationSeconds\": 1,\n        \"steps\": 8099,\n        \"calories\": 625,\n\n        // Other fields\n        \"activityId\": 90009,\n        \"activityLogEntryId\": 6550778766,\n        \"ampm\": \"pm\",\n        \"canUpdateActivity\": false,\n        \"clock\": 24,\n        \"date\": \"2017-03-14\", // Request date, *not* activity date\n        \"favoriteId\": \"\",\n        \"formattedDateTime\": \"Mar 12, 14:48\"\n        \"formattedDistance\": \"4.5 miles\",\n        \"generalActivityId\": 90009,\n        \"hasDistance\": true,\n        \"hasLevels\": true,\n        \"hasSpeed\": true,\n        \"id\": 6550778766,\n        \"intensity\": 90009,\n        \"intensityDescription\": \"\",\n        \"isAnnotation\": false,\n        \"isDisabled\": false,\n        \"isExercise\": true,\n        \"isFavorite\": false,\n        \"isReadOnly\": false,\n        \"manualCalories\": 625,\n        \"manualCaloriesEnabled\": false,\n        \"name\": \"Run\",\n      },\n      ...\n    ],\n    \"hasMoreLogs\": true,\n    \"isExercise\": true,\n    \"earliestLog\": \"2016-08-17T09:48:44\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobatron%2Ffitbit-activity-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobatron%2Ffitbit-activity-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobatron%2Ffitbit-activity-csv/lists"}