DocumentationClick Analytics

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
curl https://lixrl.com/api/urls/my-link/analytics?days=30 \
  -H "Authorization: Bearer elu_YOUR_KEY"

Response

200 OK
{
  "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

Supported analytics time windows
ParameterWindow
days=1Last 24h, grouped by UTC date
days=7Last 7d, bucketed by day
days=30Last 30d, bucketed by day
default7 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

We do not record visitor IPs in cleartext, fingerprint visitors, or sell click data.
Link Analytics — Click Tracking for Short Links | Lixrl