URL shortener API — custom short codes, expiry dates, and click analytics
POST a long URL to /tools/url/shorten and get back a short code on aplicious.com/s/[code] — with optional custom codes, expiry windows, and a click-count analytics endpoint.
No credit card · Free to start · X-API-Key header auth
What's included in /tools
Custom short codes
Specify your own code (e.g. /s/launch) — first-come-first-served, rejected if taken.
Expiry dates
Set expires_in_days to auto-expire links. Expired links return 410 Gone, not 404.
Click analytics
GET /tools/url/expand?code=abc returns click count, creation date, and expiry status for links you own.
Redirect on your domain
Short links resolve at aplicious.com/s/[code] with a 302 redirect — no custom domain config required.
Pairs with /tools/qr/generate
Shorten a URL then generate a QR code for the short link — two calls, one key.
Start using the URL shortener API today
Free tier — 250 calls/month, no credit card. Upgrade when you need more.
Frequently asked questions
Do I need my own domain for the short links?
No — links resolve at aplicious.com/s/[code], no domain setup required.
Can I see analytics on links I didn't create?
No — analytics are owner-only. The API returns 403 for codes you didn't create.
What happens to expired links?
Expired links return HTTP 410 Gone, signaling the redirect is intentionally dead (not a missing page).
Related API guides
OCR API — Extract Text from Images, Free Tier, No Setup
OpenAI-powered OCR REST API. POST a multipart image or a public image URL, get e…
Read guideRapidAPI Alternative — One Key, 34 APIs, No Per-API Billing
Tired of managing multiple API keys and invoices? APlicious gives you 10 live na…
Read guideFinance API for Developers — Stock Quotes, SIP, Tax, Forex
REST API for stock quotes, SIP calculators, compound interest, forex rates, tax …
Read guideOne key unlocks all 10 namespaces — finance, legal, property, jobs, wellness, and more.
View all plans and pricing →