Get Link Details (Analytics)
Retrieve detailed analytics information for a specific short link.
Endpoint
GET /v2/external/client/analytics/details?shortUrl={shortUrl}
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
shortUrl |
string | Yes | Returned opaque link ID (preferred), or a code |
domainId |
string | No | Disambiguate a code on a custom domain |
Response
{
"status": true,
"message": "Short link details fetched successfully",
"data": {
"id": "507f1f77bcf86cd799439011",
"originalUrl": "https://example.com/very/long/url",
"shortUrl": "abc123",
"title": "My Link",
"visitCount": 1250,
"isActive": true,
"createdAt": "2024-01-15T10:30:00Z"
}
}
Notes
- Only links in the API key workspace scope can be accessed
visitCountis the human-click counter used on the links list; automated and expiration-redirect traffic is excluded- Detailed dashboard analytics keep
totalClicks,humanClicks, andbotClicksseparate; do not add these counters together because human and bot clicks are subsets of total traffic - QR scans are an attributed subset of visits, not an additional traffic total
- Processed analytics use UTC boundaries and can trail live redirects by the rollup interval
- Results are cached for 1 hour
- Data retention limits apply based on your plan
Domain scope
Use shortUrl=RETURNED_LINK_ID to select one link unambiguously, or add domainId=DOMAIN_ID when passing a code. Access is checked before cache reads; logs are queried by the resolved link ID. Unknown/inaccessible records fail; ambiguous codes return 409. Historical logs without a link ID are not mixed across domains.
