Get session summaries
curl --request GET \
--url https://api.datalyr.com/v1/replay/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalyr.com/v1/replay/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datalyr.com/v1/replay/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_URL => "https://api.datalyr.com/v1/replay/summary",
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.datalyr.com/v1/replay/summary"
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.datalyr.com/v1/replay/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datalyr.com/v1/replay/summary")
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_body{
"summaries": [
{
"session_id": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"distill_version": 123,
"summary": {},
"products_viewed": 123,
"in_app_browser": "<string>",
"page_type_entry": "<string>",
"page_type_exit": "<string>",
"distill_status": "ok"
}
],
"not_found": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "not_enabled",
"code": "replay_not_enabled",
"message": "<string>"
}{
"error": "<string>"
}Session replay
Get session summaries
The written summary and flag columns of each requested session. Summaries are kept for 2 years. Text masked in the recording stays masked in the summary. A session whose summary failed or was skipped is returned with summary: null and its distill_status. not_found lists IDs that match no session in this workspace, and sessions that are still being processed or have expired.
GET
/
replay
/
summary
Get session summaries
curl --request GET \
--url https://api.datalyr.com/v1/replay/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalyr.com/v1/replay/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datalyr.com/v1/replay/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_URL => "https://api.datalyr.com/v1/replay/summary",
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.datalyr.com/v1/replay/summary"
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.datalyr.com/v1/replay/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datalyr.com/v1/replay/summary")
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_body{
"summaries": [
{
"session_id": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"distill_version": 123,
"summary": {},
"products_viewed": 123,
"in_app_browser": "<string>",
"page_type_entry": "<string>",
"page_type_exit": "<string>",
"distill_status": "ok"
}
],
"not_found": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "not_enabled",
"code": "replay_not_enabled",
"message": "<string>"
}{
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Comma-separated session_id values (sess_…). 20 maximum.
Was this page helpful?