Shorten, manage & track links in seconds.
Shortly is a fast, developer‑friendly URL shortener API with custom aliases, expiration, and analytics. Built to work seamlessly behind RapidAPI.
{
"url": "https://example.com/very/long",
"ttl": { "minutes": 1 }
}{
"shortUrl": "https://shtly.me/Ab3xYz",
"expiresAt": "2025-10-10T14:30:00Z"
}Why developers choose Shortly
Built for speed, simplicity, and scale.
Instant shortening
Low‑latency responses with a simple, stable API.
Custom aliases
Brand links like /promo and /docs (Pro/Ultra).
Expiration (TTL)
Set hours, minutes, and seconds for temporary links.
Analytics
Clicks, referers, and user agents (Pro/Ultra).
How it works
- 1
Shorten
Send a POST to /api/shorten with your long URL.
- 2
Customize
(Pro/Ultra) Add aliases and TTL to control lifetimes.
- 3
Track
(Pro/Ultra) Use /api/analytics/{code} for insights.
Simple pricing
Start free. Upgrade when you need more.
Pro
10 links/day • 50,000 req/month
- Custom aliases
- Expiration (TTL)
- Analytics
- List & delete links
Ultra
100 links/day • 500,000 req/month
- Everything in Pro
- Higher limits
- Priority support
Quick example
Drop‑in fetch call you can paste anywhere.
await fetch('https://shortly.p.rapidapi.com/api/shorten', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-RapidAPI-Key': '<YOUR_KEY>',
'X-RapidAPI-Host': 'shortly.p.rapidapi.com'
},
body: JSON.stringify({ url: 'https://example.com', ttl: { minutes: 1 } })
});FAQ
RapidAPI handles billing. Only successful link creations increment the custom Shortened Links quota when the server sets X-RapidAPI-Billing.
Yes. Send a ttl object with hours/minutes/seconds. Expired links return 410.
Yes — available on Pro and Ultra via POST /api/shorten/alias.
Yes. Start free and upgrade anytime on RapidAPI.