Scan and click analytics
Analytics
Scan and click analytics
Defaults to the last 30 days grouped by day. Needs a live subscription.
GET
Scan and click analytics
Authorizations
An API key (klk_...) or a Clerk session token. Both resolve to the same account and behave identically.
Path Parameters
The link id returned when the link was created.
Example:
"lnk_2YgQk1p8fT3mN7wCxRvBdLsHjZa"
Query Parameters
Window start, epoch ms.
Window end, epoch ms.
day (default), country, device or referrer.
Available options:
day, country, device, referrer Response
The series.
Recent buckets come from Analytics Engine and older ones from permanent rollups; the seam is at a UTC day boundary and is invisible to you.
Start of the window, inclusive. Epoch milliseconds.
Example:
1755734400000
End of the window, exclusive. Epoch milliseconds.
Example:
1755734400000
Available options:
day, country, device, referrer