Get analytics for a link
Links
Get analytics for a link
The link must belong to the authenticated organization. Missing and cross-tenant IDs return 404.
GET
Get analytics for a link
Authorizations
Clerk tenant API key. The organizationId encoded by the key is the exact and only tenant scope.
Path Parameters
Query Parameters
Available options:
clicks, leads, sales, composite Available options:
count, timeseries, top_links, top_urls, referers, referer_urls, countries, regions, cities, devices, browsers, os, utm_sources, utm_mediums, utm_campaigns Preset interval used only when start is omitted.
Available options:
24h, 7d, 30d, 90d, 1y, mtd, qtd, ytd, all Inclusive UTC date or timestamp. Overrides interval.
Inclusive UTC date or timestamp; requires start.
Response
Tenant-scoped resource.
Available options:
clicks, leads, sales, composite Available options:
count, timeseries, top_links, top_urls, referers, referer_urls, countries, regions, cities, devices, browsers, os, utm_sources, utm_mediums, utm_campaigns - Option 1
- Option 2
Sanitized count or grouped rows. Count fields and saleAmountCents are integers; provider configuration and internal link fields are excluded.
- object
- object[]

