/tools namespace · APlicious

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.

Freetier available
Get free API key View docs
POST /api/v1/tools/url/shorten
const res = await fetch('https://aplicious.com/api/v1/tools/url/shorten', {
  method: 'POST',
  headers: { 'X-API-Key': 'lapi_live_••••', 'Content-Type': 'application/json' },
  body: JSON.stringify({ url: 'https://example.com/very/long/path', custom_code: 'launch', expires_in_days: 30 }),
});
const { data } = await res.json();
// { short_url: "https://aplicious.com/s/launch", code: "launch", expires_at: "2026-09-18" }

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.

Get free API keyExplore /tools docs

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 guide

RapidAPI Alternative — One Key, 34 APIs, No Per-API Billing

Tired of managing multiple API keys and invoices? APlicious gives you 10 live na

Read guide

Finance API for Developers — Stock Quotes, SIP, Tax, Forex

REST API for stock quotes, SIP calculators, compound interest, forex rates, tax

Read guide

One key unlocks all 10 namespaces — finance, legal, property, jobs, wellness, and more.

View all plans and pricing →