DocsBuild06
Click Analytics
Redirect events are recorded asynchronously from Cloudflare's edge. Paid plans can query daily breakdowns within their plan window.
Endpoint
GET/api/urls/{code}/analytics?days=30
curl https://lixrl.com/api/urls/my-link/analytics?days=30 \
-H "Authorization: Bearer elu_YOUR_KEY"Response
{
"summary": {"clicks": 42, "unique_visitor_days": 31, "filtered_bots": 6},
"timeline": [{"date": "2026-03-19", "count": 42}],
"countries": [{"country": "US", "count": 30}],
"browsers": [{"browser": "Chrome", "count": 25}],
"devices": [{"device": "desktop", "count": 35}],
"referers": [{"referer": "twitter.com", "count": 12}]
}Clicks and breakdowns exclude recognized crawlers and link-preview agents. unique_visitor_days is an approximation based on a keyed identifier that rotates daily; it is not a cross-day visitor profile.
Time windows
| Parameter | Window |
|---|---|
| days=1 | Last 24h, grouped by UTC date |
| days=7 | Last 7d, bucketed by day |
| days=30 | Last 30d, bucketed by day |
| default | 7 days when the days parameter is omitted |
Retention
Detailed analytics queries are available on Pro and higher plans. Pro can query 30 days, Business 365 days, and Enterprise 730 days. The limit is an access window; raw-event cleanup is described in the Privacy Policy.
Privacy
Country / device / browser are inferred from the request headers at redirect time. Individual redirect events are stored so the API can aggregate them for the requested window.
No visitor tracking