Web Analytics endpoints

Endpoints you can access within the web analytics scope

Get website stats

GET https://alpina.cloud/api/v1/client/wa/{PROFILE_UUID}/stats

Returns pageview stats in a given time window (both daily and total)

Path Parameters

NameTypeDescription

PROFILE_UUID

string

UUID of profile

Query Parameters

NameTypeDescription

from

string

UNIX Timestamp

to

string

UNIX Timestamp

Headers

NameTypeDescription

x-api-key

string

API key with WEB_ANALYTICS_SCOPE

x-api-secret

string

API secret with WEB_ANALYTICS_SCOPE

{
  "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"
  }
}

Get raw feed

GET https://alpina.cloud/api/v1/client/wa/{PROFILE_UUID}/feed

Returns raw pageviews and events

Path Parameters

NameTypeDescription

PROFILE_UUID

string

UUID of profile

Query Parameters

NameTypeDescription

from

string

UNIX Timestamp

to

string

UNIX Timestamp

scopes

string

Data scope, possible values: "event", "pageview" or "pageview,event" to request both

Headers

NameTypeDescription

x-api-key

string

API key with WEB_ANALYTICS_SCOPE

x-api-secret

string

API secret with WEB_ANALYTICS_SCOPE

Last updated