curl --request GET \
--url https://api.datalyr.com/v1/replay/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalyr.com/v1/replay/sessions"
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/sessions', 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/sessions",
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/sessions"
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/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datalyr.com/v1/replay/sessions")
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{
"sessions": [
{
"session_id": "<string>",
"visitor_id": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration_s": 123,
"active_s": 123,
"pages": 123,
"clicks": 123,
"rage_clicks": 123,
"dead_clicks": 123,
"errors": 123,
"flags": [
"<string>"
],
"playable": true,
"in_app_browser": "<string>",
"device_type": "<string>",
"os": "<string>",
"browser": "<string>",
"country": "<string>",
"page_type_entry": "<string>",
"page_type_exit": "<string>",
"entry_path": "<string>",
"source": "<string>",
"medium": "<string>",
"campaign": "<string>",
"distill_status": "ok"
}
],
"truncated": true,
"next_cursor": "<string>"
}{
"error": "<string>"
}{
"error": "not_enabled",
"code": "replay_not_enabled",
"message": "<string>"
}{
"error": "<string>"
}List recorded sessions
Recorded sessions that match every filter you pass, newest first, without their summaries. Read summaries with GET /replay/summary.
Only sessions of the last 31 days are listed. Friction and funnel signals appear once per row, in flags.
curl --request GET \
--url https://api.datalyr.com/v1/replay/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalyr.com/v1/replay/sessions"
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/sessions', 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/sessions",
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/sessions"
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/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datalyr.com/v1/replay/sessions")
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{
"sessions": [
{
"session_id": "<string>",
"visitor_id": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration_s": 123,
"active_s": 123,
"pages": 123,
"clicks": 123,
"rage_clicks": 123,
"dead_clicks": 123,
"errors": 123,
"flags": [
"<string>"
],
"playable": true,
"in_app_browser": "<string>",
"device_type": "<string>",
"os": "<string>",
"browser": "<string>",
"country": "<string>",
"page_type_entry": "<string>",
"page_type_exit": "<string>",
"entry_path": "<string>",
"source": "<string>",
"medium": "<string>",
"campaign": "<string>",
"distill_status": "ok"
}
],
"truncated": true,
"next_cursor": "<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
YYYY-MM-DD (UTC) or an ISO 8601 instant. Send both dates or neither. Without them the range is the last 7 days. The range is 31 days at most.
YYYY-MM-DD (UTC, inclusive) or an ISO 8601 instant.
Case-insensitive exact match, such as facebook.
Case-insensitive exact match.
Case-insensitive exact match.
Case-insensitive exact match, such as mobile or desktop.
other is any other in-app browser, such as Snapchat or Pinterest. none is a regular browser.
instagram, facebook, tiktok, other, none The landing page type, such as home, collection, product, cart, search, content, or account. Case-insensitive.
Comma-separated. A session matches only when every listed flag is set. rage_clicks, dead_clicks, and errors match a count above zero. no_checkout matches sessions that added to cart but never started checkout. Allowed: rage_clicks, dead_clicks, errors, error_click, error_before_exit, error_before_checkout, abandoned_form, reached_product, reached_cart, add_to_cart, checkout_started, purchased, quick_back, excessive_scroll, bounced, no_final_flush, no_checkout.
"rage_clicks,reached_cart,no_checkout"
1 <= x <= 50The next_cursor of the previous page.
Was this page helpful?