DEPRECATED

The v1 endpoints have been deprecated and will be removed after 1H 2014. Please use the current version instead.

Daily activities

Required scope: activity

Get daily activity breakdown for user. See Daily summary API for details about the format of the time parameters. Note that the activities API has a max range of 7 days in one query.

GET /user/activities/daily/<date>

GET /user/activities/daily/<week>

GET /user/activities/daily?from=<from>&to=<to>

GET /user/activities/daily?pastDays=<pastDays>

Response

All the daily activities API calls return a JSON array of dates and move or place segments with activities but without locations.

[
    {
        "date": "20121212",
        "segments": [
            {
                "type": "move",
                "startTime": "20121212T071430Z",
                "endTime": "20121212T074617Z",
                "activities": [
                    {
                        "activity": "wlk",
                        "startTime": "20121212T071430Z",
                        "endTime": "20121212T072732Z",
                        "duration": 782,
                        "distance": 1251,
                        "steps": 1353,
                        "calories": 99
                    },
                    {
                        "activity": "trp",
                        "startTime": "20121212T072732Z",
                        "endTime": "20121212T074616Z",
                        "duration": 1124,
                        "distance": 8443
                    }
                ]
            },
            {
                "type": "place",
                "startTime": "20121212T074617Z",
                "endTime": "20121212T100051Z",
                "activities": [
                    {
                        "activity": "wlk",
                        "startTime": "20121212T074804Z",
                        "endTime": "20121212T075234Z",
                        "duration": 270,
                        "distance": 227,
                        "steps": 303,
                        "calories": 99
                    }
                ]
            },
            {
                "type": "move",
                "startTime": "20121212T100051Z",
                "endTime": "20121212T100715Z",
                "activities": [
                    {
                        "activity": "wlk",
                        "startTime": "20121212T100051Z",
                        "endTime": "20121212T100715Z",
                        "duration": 384,
                        "distance": 421,
                        "steps": 488,
                        "calories": 99
                    }
                ]
            },
            {
                "type": "place",
                "startTime": "20121212T100715Z",
                "endTime": "20121212T110530Z",
                "activities": [
                    {
                        "activity": "wlk",
                        "startTime": "20121212T101215Z",
                        "endTime": "20121212T101255Z",
                        "duration": 40,
                        "distance": 18,
                        "steps": 37,
                        "calories": 99
                    }
                ]
            },
            {
                "type": "move",
                "startTime": "20121212T110530Z",
                "endTime": "20121212T111129Z",
                "activities": [
                    {
                        "activity": "wlk",
                        "startTime": "20121212T110530Z",
                        "endTime": "20121212T111128Z",
                        "duration": 358,
                        "distance": 493,
                        "steps": 441,
                        "calories": 99
                    }
                ]
            },
            {
                "type": "place",
                "startTime": "20121212T111129Z",
                "endTime": "20121212T153638Z",
                "activities": [
                    {
                        "activity": "wlk",
                        "startTime": "20121212T111233Z",
                        "endTime": "20121212T112203Z",
                        "duration": 570,
                        "distance": 565,
                        "steps": 809
                    }
                ]
            },
            {
                "type": "move",
                "startTime": "20121212T153638Z",
                "endTime": "20121212T160744Z",
                "activities": [
                    {
                        "activity": "trp",
                        "startTime": "20121212T153638Z",
                        "endTime": "20121212T155321Z",
                        "duration": 1003,
                        "distance": 8058
                    },
                    {
                        "activity": "wlk",
                        "startTime": "20121212T155322Z",
                        "endTime": "20121212T160744Z",
                        "duration": 862,
                        "distance": 1086,
                        "steps": 1257,
                        "calories": 99
                    }
                ]
            }
        ],
        "caloriesIdle": 1785
    },
    {
        "date": "20121213",
        "segments": null,
        "caloriesIdle": 1785
    }
]

See the Storyline API call for description about the returned JSON format.