Get Link Analytics
get_link_analyticsQuery click analytics, top referers, and recent click logs for a specific short link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "get_link_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Short code or full short URL (e.g., shgBe2 or https://s.gooo.name/shgBe2) | |
| limit | No | Maximum number of recent click events to return (default 20, max 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link_id | Yes | Short code | |
| short_url | No | Full short URL | |
| top_referers | No | Referer count breakdown | |
| total_clicks | Yes | Cumulative clicks | |
| recent_clicks | No | Recent click log entries |