Get the average time users spend on your site per day for the last 14 days. Days without entries are omitted.
GET /domains/:domainId/durations?type=average
Name | Example |
---|---|
Authorization | Authorization: Bearer :tokenId |
Status: 200 OK
{
"type": "durations",
"data": [
{
"type": "duration",
"data": {
"id": {
"day": 3,
"month": 10,
"year": 2016
},
"average": 20000
}
}
]
}
Get the time users spend on your sites, grouped by similar durations in an interval of 15s. Includes data from the last 7 days. Durations above 30m will be grouped together.
The included average is the average time users spend on your site for the last 7 days. Every item includes the same average.
GET /domains/:domainId/durations?type=detailed
Name | Example |
---|---|
Authorization | Authorization: Bearer :tokenId |
Status: 200 OK
{
"type": "durations",
"data": [
{
"type": "duration",
"data": {
"id": 20000,
"average": 20000,
"count": 1
}
}
]
}