Documentation
Analytics
Every click of every link is counted at the edge: the time, the country, the referring host, a coarse device class and whether it was a QR scan. No IP addresses or user agents are stored, link previews and crawlers are not counted, and a refresh loop counts at most ten times a minute per network per link.
GET /v1/links/{link}/statsis one link;GET /v1/statsis every link in the account summed, with the busiest links listed.daysis the range back from today in UTC, today included. Free shows up to 30 days; Pro shows up to 365. A larger value is quietly capped, andmax_daysin the answer tells you where.daysin the answer has one row per UTC day with at least one click, with itsscans; zero-fill the gaps yourself.hours(clicks by hour of the UTC day) is present on plans with time-of-day analytics.countries,referrersanddevicesare the top ten each;directmeans no referrer.GET /v1/links/{link}/clicksandGET /v1/clicksexport the rows themselves, newest first: JSON in pages of 5,000 (follownext_before), or the whole range as a CSV file withformat=csv. Exports are a Pro feature; other plans get 403forbiddenwithdetails.upgrade.