Retrieve clicks
Analytics API
Retrieve clicks
Retrieve click metrics for your links.
GET
Retrieve clicks
Query Parameters
The ID of the link to retrieve analytics for.
The domain to retrieve analytics for (e.g.
dub.sh).The key (slug) of the link.
The interval for the analytics. values:
24h, 7d, 30d, 90d, ytd, all. Defaults to 30d.The parameter to group the analytics by. values:
count, browser, os, referer, country, device. Defaults to count.Response
Returns a JSON object containing the requested analytics data.Code Examples
cURL
Node.js