Skip to content
ShortLink

Bulk URL Shortener & API

Shorten 1 or 1,000 links — same engine. Use the free ShortLink API to bulk-shorten via POST /api/shorten. Every link gets a short URL, QR code and analytics.

Quick start — single call

curl -X POST https://routr.click/api/shorten \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com/very/long/url","customAlias":"summer-sale"}'

Response:

{
  "shortUrl": "https://routr.click/summer-sale",
  "code": "summer-sale"
}

Bulk example (Node.js)

const urls = ["https://example.com/a","https://example.com/b"];
for (const url of urls) {
  const res = await fetch("https://routr.click/api/shorten", {
    method: "POST",
    headers: { "content-type": "application/json" },
    body: JSON.stringify({ url })
  });
  const { shortUrl } = await res.json();
  console.log(shortUrl);
  // QR: fetch("https://routr.click/api/qr?url=" + encodeURIComponent(shortUrl))
}

API reference

FieldTypeRequiredNotes
urlstringYesMust start with http:// or https://. Private IPs blocked.
customAliasstringNo3–30 chars, [a-zA-Z0-9_-]. Must be unique.

Rate limiting is enabled — respect Retry-After. QR codes via GET /api/qr?url=SHORT_URL returns { dataUrl }. Analytics via GET /api/stats/[code].

When to use bulk vs homepage

Also see features, how to shorten a URL and QR code generator.