Build/Tools/URL Shortener
Utility1 credit / callPOST /api/v1/tools/url/shorten

URL Shortener

Create short links with analytics and custom codes

Create short redirect URLs at aplicious.com/s/{code}. Optionally set a custom slug (3–32 alphanumeric chars) and an expiry window (1–365 days). Short URLs redirect with a 302, expired URLs return 410. Use /url/expand to retrieve click analytics.

How it works

Stores the mapping in the database with owner attribution (your API key). Returns the short URL, analytics endpoint, and expiry timestamp.

What you could build

LinkTrack
UTM-aware short links for marketing campaigns
$1K–$3K MRR
est. MRR
SMSReach
Short links for SMS campaigns where character count matters
$2K–$4K MRR
est. MRR
QRLink
Updateable QR code destinations via short link layer
$1K–$3K MRR
est. MRR

Parameters

urlrequired
URL to shorten· e.g. https://aplicious.com/docs
custom_codeoptional
Custom slug — 3–32 alphanumeric chars· e.g. apidocs
expires_in_daysoptional
Days until link expires, 1–365 (default: 30)· e.g. 30

Example request

curl
curl -X POST https://aplicious.com/api/v1/tools/url/shorten \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://aplicious.com/docs","custom_code":"apidocs","expires_in_days":30}'

Example response

json
{
  "success": true,
  "data": {
    "short_url": "https://aplicious.com/s/apidocs",
    "code": "apidocs",
    "original_url": "https://aplicious.com/docs",
    "analytics_url": "https://aplicious.com/api/v1/tools/url/expand?code=apidocs",
    "expires_at": "2026-08-07T00:00:00Z",
    "created_at": "2026-07-08T00:00:00Z"
  }
}
Ready to use URL Shortener?

Free plan — 100 calls/month, no credit card.