curl --request GET \
--url http://localhost:8080/website/{hostname}/referrers \
--cookie _me_sess=import requests
url = "http://localhost:8080/website/{hostname}/referrers"
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}/referrers', 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}/referrers",
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}/referrers"
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}/referrers")
.header("cookie", "_me_sess=")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/website/{hostname}/referrers")
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[
{
"referrer": "<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 Referrer Stats
Get a list of referrers and their stats.
curl --request GET \
--url http://localhost:8080/website/{hostname}/referrers \
--cookie _me_sess=import requests
url = "http://localhost:8080/website/{hostname}/referrers"
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}/referrers', 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}/referrers",
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}/referrers"
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}/referrers")
.header("cookie", "_me_sess=")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/website/{hostname}/referrers")
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[
{
"referrer": "<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
Whether to return the grouped aggregation name or only URLs.
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
Referrer URL.
Number of unique visitors from referrer.
Percentage of unique visitors from referrer relative to all visitors.
Bounce rate percentage from referrer.
Total time spent on page from referrer in milliseconds.