seline-logo
Public API
Endpoints
Data over time
Visits and pageviews
Charges
Counts and totals
Stats
Metrics
Custom events
Ingest data
Events

Stats

Retrieve top statistics broken down by country, browser, device, referrer, and other dimensions.

POST
https://api.seline.com/api/v1/stats
Click anywhere to copy
Visual representation of stats data from the Dashboard.
Stats data visual representation

Parameters

type
stringRequired
The dimension to retrieve stats for:
-  Referrer referrer
-  Location country, region, city
-  Device browser, device, os
-  UTM campaign, source, medium, content, term
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" }
interval
string
Data interval granularity 10 minutes, 1 hour, 1 day, 1 month. If not specified, automatically determined from the date range.
filters
object
Optional filters to narrow down data page, entryPage, exitPage, country, region, city, browser, device, referrer, campaign, source, medium, content, term, event, hostname, os, tag.

Should be a string in a operator:value;operator:value;... format. Operators are is, is not, contains, does not contain.

Example page filter - "is:/support;is:/community;is not:/publishing"
search
string
Search term to filter results. Case-insensitive.
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/stats" -H "Authorization: Bearer API_TOKEN" -H "Content-Type: application/json" -d '{
"type": "country",
"range": {
"from": "2025-06-10T00:00:00Z",
"to": "2025-09-10T00:00:00Z"
},
"interval": "1 day",
"filters": {
"country": "is:US;is:PL",
"page": "is:/support;is not:/publishing"
}
}'
Click anywhere to copy
Response
{
"data": [
{
"type": "US",
"visitors": 588
},
...
{
"type": "DE",
"visitors": 140
},
],
"total": 600,
}
Click anywhere to copy