Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 1.32 KB

durations.md

File metadata and controls

85 lines (65 loc) · 1.32 KB

Durations

Average durations

Get the average time users spend on your site per day for the last 14 days. Days without entries are omitted.

Request

GET /domains/:domainId/durations?type=average

Headers

Name Example
Authorization Authorization: Bearer :tokenId

Response

Status: 200 OK
{
	"type": "durations",
	"data": [
		{
			"type": "duration",
			"data": {
				"id": {
					"day": 3,
					"month": 10,
					"year": 2016
				},
				"average": 20000
			}
		}
	]
}

Detailed durations

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.

Request

GET /domains/:domainId/durations?type=detailed

Headers

Name Example
Authorization Authorization: Bearer :tokenId

Response

Status: 200 OK
{
	"type": "durations",
	"data": [
		{
			"type": "duration",
			"data": {
				"id": 20000,
				"average": 20000,
				"count": 1
			}
		}
	]
}