# GET /shortlinks/:shortlink_id/stats

**Resource:** [SHORTLINKS](./shortlinks.md)  
**MCP tool:** `get_shortlink_stats`  
**Scopes:** `shortlinks:read`  
**Write operation:** no

Results for one short link over a period: clicks, bot_clicks, leads and opportunities it brought in, clicks by day, top referring sites, top countries and devices.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `shortlink_id` | path | string | yes | The short link id, from list_shortlinks or create_shortlink. Example: "5b0c7d2e-1f3a-4c55-9a1e-2d8f6b7a9c10". |
| `from` | query | string | no | Start of the period, ISO date or time. Example: "2026-10-01". Default: 30 days before to. |
| `to` | query | string | no | End of the period (not included). Example: "2026-11-01". Default: now. At most 400 days after from. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/shortlinks/:shortlink_id/stats"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`