trak.sh Documentation
Everything you need to build with trak.sh — the URL shortener with analytics.
Welcome to trak.sh
trak.sh is a URL shortener with beautiful analytics. Shorten any URL, track who clicks, from where, and when.
What you can do
- Shorten URLs with auto-generated or custom slugs
- Track analytics — clicks, unique visitors, referrers, countries, devices, browsers
- Export data as CSV for deeper analysis
- Use the API to manage links programmatically
- Public stats pages — share link analytics publicly
Quick links
- Getting Started — Create your first short link
- API Reference — Programmatic access via REST API
- Authentication — API key setup
- Create Links — POST /api/v1/links
- List Links — GET /api/v1/links
- Analytics — GET /api/v1/links/:slug/analytics
- CSV Export — Download click data
Plans
| Feature | Free | Pro ($6/mo) |
|---|---|---|
| Auto-generated links | Unlimited | Unlimited |
| Custom slugs | 5+ chars, 30-day expiry | 3+ chars, permanent |
| Analytics window | 30 days | Unlimited |
| API access | No | Yes |
| CSV export | No | Yes |
| Data retention | 1 year | Unlimited |