curl --request GET \
--url http://localhost:8080/website/{hostname}/browsers \
--cookie _me_sess=import requests
url = "http://localhost:8080/website/{hostname}/browsers"
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}/browsers', 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}/browsers",
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}/browsers"
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}/browsers")
.header("cookie", "_me_sess=")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/website/{hostname}/browsers")
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[
{
"browser": "<string>",
"visitors": 123,
"visitors_percentage": 123,
"bounce_percentage": 123,
"duration": 123
}
]{
"error": {
"code": 400,
"message": "<string>"
}
}{
"error": {
"code": 401,
"message": "<string>"
}
}{
"error": {
"code": 403,
"message": "<string>"
}
}{
"error": {
"code": 404,
"message": "<string>"
}
}{
"error": {
"code": 500,
"message": "<string>"
}
}Get Browser Stats
Get a list of browsers and their stats.
curl --request GET \
--url http://localhost:8080/website/{hostname}/browsers \
--cookie _me_sess=import requests
url = "http://localhost:8080/website/{hostname}/browsers"
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}/browsers', 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}/browsers",
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}/browsers"
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}/browsers")
.header("cookie", "_me_sess=")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/website/{hostname}/browsers")
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[
{
"browser": "<string>",
"visitors": 123,
"visitors_percentage": 123,
"bounce_percentage": 123,
"duration": 123
}
]{
"error": {
"code": 400,
"message": "<string>"
}
}{
"error": {
"code": 401,
"message": "<string>"
}
}{
"error": {
"code": 403,
"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
Return a summary of the stats.
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
Limit the number of results.
1 <= x <= 5000Offset the results paired with the limit parameter.
0 <= x <= 5000Cookies
Session token for authentication.
"_me_sess=token; Path=/; HttpOnly; SameSite=Lax; Secure"
Response
OK
Browser name.
Number of unique visitors from browser.
Percentage of unique visitors from browser relative to all visitors.
Bounce rate percentage from browser.
Total time spent on page from browser in milliseconds.