Web Analytics endpoints

Endpoints you can access within the web analytics scope

get
Get website stats

https://alpina.cloud/api/v1/client/wa/{PROFILE_ID}/stats
Returns pageview stats in a given time window (both daily and total)
Request
Response
Request
Path Parameters
PROFILE_UUID
required
string
UUID of profile
Headers
x-api-key
required
string
API key with WEB_ANALYTICS_SCOPE
x-api-secret
required
string
API secret with WEB_ANALYTICS_SCOPE
Query Parameters
from
required
string
UNIX Timestamp
to
required
string
UNIX Timestamp
Response
200: OK
Stats successfully fetched
{
"data": {
"daily": [
{
"date": "19-01-2020",
"visits": 7
},
{
"date": "20-01-2020",
"visits": 4
}
],
"uniqueDaily": [
{
"date": "19-01-2020",
"visits": 7
},
{
"date": "20-01-2020",
"visits": 4
}
],
"totals": {
"paths": {
"/": 11
},
"browsers": {
"chrome": 10,
"firefox": 1
},
"os": {
"macos": 3,
"windows": 2,
"linux": 2,
"android": 4
},
"ref": {
"https://google.com/": 8
},
"refGrouped": {
"google.com": 8
},
"noRef": 0,
"country": {
"BE": 3,
"RU": 1,
"US": 4,
"ZA": 1,
"TR": 2
},
"utm": {},
"platformType": {
"desktop": 7,
"mobile": 4
},
"visits": 11
},
"uniqueTotals": {
"paths": {
"/": 11
},
"browsers": {
"chrome": 10,
"firefox": 1
},
"os": {
"macos": 3,
"windows": 2,
"linux": 2,
"android": 4
},
"ref": {
"https://google.com/": 8
},
"refGrouped": {
"google.com": 8
},
"noRef": 0,
"country": {
"BE": 3,
"RU": 1,
"US": 4,
"ZA": 1,
"TR": 2
},
"utm": {},
"platformType": {
"desktop": 7,
"mobile": 4
},
"visits": 11
},
"countryInfo": {
"unrecognized": {
"coordinates": [
0,
0
],
"name": "Unrecognized"
},
"BE": {
"coordinates": [
50.83333333,
4
],
"name": "Belgium"
},
"RU": {
"coordinates": [
60,
100
],
"name": "Russia"
},
"US": {
"coordinates": [
38,
-97
],
"name": "United States"
},
"ZA": {
"coordinates": [
-29,
24
],
"name": "South Africa"
},
"TR": {
"coordinates": [
39,
35
],
"name": "Turkey"
}
},
"avgTimeOnSite": 32196,
"avgTimeOnSinglePage": 4519
},
"meta": {
"from": "2020-01-18T23:00:00.000Z",
"to": "2020-02-02T22:59:59.999Z"
}
}

‚Äč