Most active visitors

Get the most active visitors ranked by event count within a given time period. Shows who has generated the most events (page views, custom events, charges) during the specified date range.

POST
https://api.seline.com/api/v1/most-active-visitors
Click anywhere to copy

Parameters

period
stringRequired if no range is provided
Predefined time period today, 1h, 24h, 7d, 30d, 6m, 12m, all_time, month_to_date, week_to_date, year_to_date. Either period or range is required.
range
objectRequired if no period is provided
Custom date range object with from and to ISO 8601 datetime strings, e.g. 2025-09-10T00:00:00Z, both required.

Example - { from: "2025-09-10T00:00:00Z", to: "2025-09-11T00:00:00Z" }
eventType
string
Filter visitors by activity type. One of custom, pageview.
browser
array
Filter visitors by specific browsers. Array of browser names.
device
array
Filter visitors by specific devices. Array of device types.
operatingSystem
array
Filter visitors by specific operating systems.
page
number
Page number for pagination
limit
number
Number of results per page. Default is 10. Maximum is 1000.
Example request
curl -X POST 'https://api.seline.com/api/v1/most-active-visitors' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"range": {
"from": "2025-06-10T00:00:00Z",
"to": "2025-09-10T00:00:00Z"
},
"eventType": "custom",
"page": 1,
"limit": 10
}'
Click anywhere to copy
Response
{
"items": [
{
"visitor": {
"id": "a3f0...e1b8",
"shortId": "kxw18m",
"name": "Alex K.",
"email": "[email protected]"
},
"eventCount": 412,
"lastEventAt": "2025-09-09 13:02:48"
},
...
],
"total": 184
}
Click anywhere to copy