# GET /shortlinks/stats

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

Results for all of this workspace's short links over a period: clicks (people), bot_clicks (link previews and crawlers, kept apart), leads and opportunities the links brought in, clicks by day, top referring sites, top countries, devices, and the 10 most-clicked links of all time.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `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/stats"   -H "Authorization: Bearer YOUR_API_KEY"
```

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