Link Analytics
GETRetrieve real-time click metrics, referrers, and device breakdown for a specific short link.
Link Analytics
GET /v1/links/:id/analytics
Provides real-time analytics data including click timeseries, geographical distribution, and referrer sources.
Headers
| Header | Type | Description |
|---|---|---|
| Authorization | string | Bearer token with format `Bearer sh_live_...` |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| :id | string (UUID) | The UUID identifier of the short link |
Response Status Codes
| Code | Description |
|---|---|
| 200 | Analytics retrieved successfully. |
| 401 | Missing or invalid API key. |
| 403 | Key lacks `analytics:read` scope. |
| 404 | Link not found. |
GET/v1/links/:id/analytics
Scope: analytics:read
Server:
GEThttp://localhost:4000/v1/links/%7Bid%7D/analytics
Your API Key(In-Memory Only)
Get API KeyKeys entered here are held exclusively in volatile browser memory. They are never written to disk, cookies, or storage, and reset immediately upon page reload.
Path Parameters
:id
Click “Send Request” to execute a live test.