curl --request GET \
--url http://localhost:8080/website/{hostname}/summary \
--cookie _me_sess=import requests
url = "http://localhost:8080/website/{hostname}/summary"
headers = {"cookie": "_me_sess="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: '_me_sess='}};
fetch('http://localhost:8080/website/{hostname}/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/website/{hostname}/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "_me_sess=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/website/{hostname}/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "_me_sess=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/website/{hostname}/summary")
.header("cookie", "_me_sess=")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/website/{hostname}/summary")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["cookie"] = '_me_sess='
response = http.request(request)
puts response.read_body{
"current": {
"visitors": 123,
"pageviews": 123,
"bounce_percentage": 123,
"duration": 123
},
"previous": {
"visitors": 123,
"pageviews": 123,
"bounce_percentage": 123,
"duration": 123
},
"interval": [
{
"date": "<string>",
"visitors": 123,
"pageviews": 123,
"bounce_percentage": 123,
"duration": 123
}
]
}{
"error": {
"code": 400,
"message": "<string>"
}
}{
"error": {
"code": 401,
"message": "<string>"
}
}{
"error": {
"code": 404,
"message": "<string>"
}
}{
"error": {
"code": 500,
"message": "<string>"
}
}Get Stat Summary
Get a summary of the website’s stats.
curl --request GET \
--url http://localhost:8080/website/{hostname}/summary \
--cookie _me_sess=import requests
url = "http://localhost:8080/website/{hostname}/summary"
headers = {"cookie": "_me_sess="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: '_me_sess='}};
fetch('http://localhost:8080/website/{hostname}/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/website/{hostname}/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "_me_sess=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/website/{hostname}/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "_me_sess=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/website/{hostname}/summary")
.header("cookie", "_me_sess=")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/website/{hostname}/summary")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["cookie"] = '_me_sess='
response = http.request(request)
puts response.read_body{
"current": {
"visitors": 123,
"pageviews": 123,
"bounce_percentage": 123,
"duration": 123
},
"previous": {
"visitors": 123,
"pageviews": 123,
"bounce_percentage": 123,
"duration": 123
},
"interval": [
{
"date": "<string>",
"visitors": 123,
"pageviews": 123,
"bounce_percentage": 123,
"duration": 123
}
]
}{
"error": {
"code": 400,
"message": "<string>"
}
}{
"error": {
"code": 401,
"message": "<string>"
}
}{
"error": {
"code": 404,
"message": "<string>"
}
}{
"error": {
"code": 500,
"message": "<string>"
}
}Authorizations
Session token for authentication.
Path Parameters
Hostname for the website.
1 - 253Query Parameters
Retrieve the data from the previous period as well. This is useful when comparing data from the previous period to the current period. Requires the start and end period parameters to be set.
The interval to group the data by. This can be set to minute, hour, day, week or month. This will return an interval property if set.
minute, hour, day, week, month Period start date using date-time notation in RFC3339 format, for example, (2017-07-21T17:32:28Z).
Period end date using fdate-time notation in RFC3339 format, for example, (2017-07-21T17:32:28Z).
Path of the page.
Show child attributes
Show child attributes
Referrer URL of the page hit.
Show child attributes
Show child attributes
UTM source of the page hit.
Show child attributes
Show child attributes
UTM medium of the page hit.
Show child attributes
Show child attributes
UTM campaign of the page hit.
Show child attributes
Show child attributes
Browser name.
Show child attributes
Show child attributes
Operating system name.
Show child attributes
Show child attributes
Device type.
Show child attributes
Show child attributes
Country name.
Show child attributes
Show child attributes
Language code.
Show child attributes
Show child attributes
Name of the property.
Show child attributes
Show child attributes
Value of the property.
Show child attributes
Show child attributes
Cookies
Session token for authentication.
"_me_sess=token; Path=/; HttpOnly; SameSite=Lax; Secure"