Public API
Endpoints
Data over time
Visits and pageviews
Charges
Counts and totals
Stats
Metrics
Custom events
Ingest data
Events
Visits and pageviews
Retrieve visitor and pageview data over time and totals with trend comparisons.
POST
https://api.seline.com/api/v1/data
Click anywhere to copy
Visual representation of visits and pageviews data from the Dashboard.

Parameters
period
stringRequired if no range is providedPredefined 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 providedCustom 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
stringData interval granularity 10 minutes, 1 hour, 1 day, 1 month. If not specified, automatically determined from the date range.
filters
objectOptional 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.
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"
Example request
curl -X POST 'https://api.seline.com/api/v1/data' \-H 'Authorization: Bearer API_TOKEN' \-H 'Content-Type: application/json' \-d '{"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": [{ "date":"2025-06-10 00:00:00", "visitors": 14, "views": 23 },...{ "date":"2025-09-10 00:00:00", "visitors": 45, "views": 88 }],"totalVisitors": 600,"totalViews": 1500,"previous": {"data": [...],"totalVisitors": 500,"totalViews": 1000},"trendVisitors": 10,"trendViews": 50}
Click anywhere to copy