# Diggers

## GET diggers/:id/sessions

The request returns a list of sessions of the specified digger.

|     |     |
| --- | --- |
| **API Endpoint** | https://www.diggernaut.com/api/diggers/:id/sessions |
| **Response Format** | JSON |
| **Access Level** | User |
| **Limits** | Yes |

- [Example of request with CURL](/content/dev/api-diggers-get-diggers-id-sessions.html#request/index.html)
- [Response](/content/dev/api-diggers-get-diggers-id-sessions.html#response/index.html)

```http
curl -v -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" https://www.diggernaut.com/api/diggers/1/sessions
```

```http
HTTP/1.0 200 OK
Date: Sat, 20 Aug 2016 20:43:34 GMT
Vary: Accept, Accept-Language, Cookie
X-Frame-Options: SAMEORIGIN
Content-Type: application/json
Content-Language: en
Allow: GET, HEAD, OPTIONS
[
    {
        "id": 1,
        "digger": 1,
        "started_at": "2016-07-02T12:52:45.547439Z",
        "finished_at": "2016-07-02T12:52:49.180299Z",
        "state": "failure",
        "runtime": 34,
        "bandwidth": 1778451.0,
        "requests": 16,
        "errors": 1,
        "items": null,
        "data_size": 0.0
    },
    {
        "id": 2,
        "started_at": "2016-07-12T16:09:48.436799Z",
        "finished_at": "2016-07-12T16:09:48.589169Z",
        "state": "success",
        "runtime": 34,
        "bandwidth": 17378451.0,
        "requests": 116,
        "errors": 0,
        "items": 507,
        "data_size": 1982734.0
    }
]
```
