Export a link's clicks as CSV
Raw enriched click log for one link over the requested window as a CSV attachment (at, country, device, browser, os, referrerHost, referrer, isBot). Bot rows are included and flagged, unlike the in-app analytics which exclude them. Capped at 50000 rows; a trailing "truncated" row signals the cap.
View as MarkdownAuthorization
bearer In: header
Path Parameters
Query Parameters
Analytics window in days; other values fall back to 14
14Value in
- 7
- 14
- 30
- 90
Response Body
text/csv
application/json
application/json
application/json
curl -X GET "https://example.com/v1/links/string/clicks.csv""string"Public short-link redirect
The product itself: 302 to the destination URL (recording the click) when the link exists, is active, and is unexpired — otherwise 302 to the web app's /unavailable page with a reason (notfound, paused, expired). Unauthenticated; served on esrx.ly. Resolves by short code alone — org, owner, and visibility never narrow it, so a private link still redirects for anyone holding the code.
Record a conversion for a click
Attributes a conversion to a click. Links with trackConversions enabled append ?esrx_id=<click id> to their destination; the customer's backend captures it and posts it here (typically with an org API key) when the visitor signs up or pays. Clicks are written asynchronously, so an instant conversion can 404 once — retry after a second.