cURL
curl --request GET \
--url https://api.gleap.io/v3/statistics/raw-data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gleap.io/v3/statistics/raw-data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gleap.io/v3/statistics/raw-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gleap.io/v3/statistics/raw-data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "https://api.gleap.io/v3/statistics/raw-data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gleap.io/v3/statistics/raw-data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gleap.io/v3/statistics/raw-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyStatistics
Get statisticsraw data
Get raw statistics data. Filterable fields: actionType (e.g. HOME_MENU_CLICK), resourceType
(e.g. WIDGET), actionUser, associatedEntity, description, first, rowId, and the data.*
fields (data.type, data.tags, data.processingUser, data.ticketId, …).
Suffix a filter with _gte, _lte, _gt, _lt, _ne, _in or _nin for range/set operators.
At most 10000 rows are returned; skip/limit are ignored. A filter on a field this table
doesn’t have is rejected with a 400 naming the field and listing the supported ones.
Row timestamps are UTC; timezone does not apply here (it only affects bucketed endpoints).
GET
/
statistics
/
raw-data
cURL
curl --request GET \
--url https://api.gleap.io/v3/statistics/raw-data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gleap.io/v3/statistics/raw-data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gleap.io/v3/statistics/raw-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gleap.io/v3/statistics/raw-data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "https://api.gleap.io/v3/statistics/raw-data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gleap.io/v3/statistics/raw-data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gleap.io/v3/statistics/raw-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
- Ignored on this endpoint; raw rows carry UTC timestamps
Available options:
hour, day, month, year - Start date for filtering (ISO format)
- End date for filtering (ISO format)
- Not a filter on this endpoint (
stats_eventshas notypecolumn) — passing it returns 400. The per-message kind lives indata.type(e.g. SHARED_COMMENT, USER_TEXT, BOT_REPLY).
Response
200 - application/json
Ok