URL Shortener API
Fast, reliable URL shortening with analytics. Features: - Shorten any URL with auto-generated or custom alias - Click tracking with last-clicked timestamp - URL expiration (TTL in seconds) - Batch shortening (up to 50 URLs) - Stats endpoint for click analytics - 302 redirect for SEO-friendly forwarding - Redis-backed for sub-millisecond lookups Alias rules: - Auto-generated: 7-character…
URL Shortener API endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
redirectUrl /r/{code} |
Redirect to the original URL using the short code. |
| POST |
shortenUrl /shorten |
Shorten a URL with optional custom alias and expiration. |
| GET |
getStats /stats/{code} |
Get click count and analytics for a shortened URL. |
| POST |
shortenBatch /shorten/batch |
Batch shorten multiple URLs at once. |