URL Shortener API

A link shortener API for developers. One POST creates a short URL with click analytics, password protection, and expiry dates. Pay $0.0012 per click — no monthly subscription.

Create a short URL in one request

curl -X POST https://api.sed.sh/links \\
  -H "Authorization: Bearer YOUR_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{"url": "https://example.com/very/long/campaign-url"}'

# Response
{
  "code": "aB3xZ",
  "shortUrl": "https://sed.sh/aB3xZ",
  "targetUrl": "https://example.com/very/long/campaign-url",
  "clicks": 0
}

Features

  • Short 5-char codes — unique alphanumeric codes, redirects via CloudFront edge nodes globally
  • Password protection — visitors are prompted before redirect
  • Expiry dates — links auto-expire and return 410 Gone
  • Click analytics — atomic click counter with timestamps
  • Fast redirects — under 50ms globally via CloudFront
  • Delete anytime — DELETE /links/{code} removes immediately

Pricing

ProviderPriceModel
sed.sh$0.0012/clickPay per click, no subscription
Bitly Core$35/monthFlat fee, 1,500 branded links
Short.io Starter$19/monthFlat fee, limited domains
Rebrandly Starter$13/monthFlat fee

Tiered rates: $0.0012/click (0–5k), $0.0008/click (5k–10k), $0.0005/click (10k+). No subscription. No per-domain charges.

Frequently Asked Questions

What is a URL shortener API?

A URL shortener API lets your application create short links programmatically — without a web dashboard. Send a POST with a long URL, receive a short URL like https://sed.sh/aB3xZ. Click tracking, password protection, and expiry dates included.

What is the best URL shortener API for developers?

It depends on volume and budget. Bitly ($35/mo+) and Short.io ($19/mo) are subscription-based. sed.sh charges $0.0012/click with no monthly fee — better for low-to-medium volume or intermittent use.

Is there a free URL shortener API?

TinyURL offers basic free shortening. Bitly's free plan includes 10 links/month. sed.sh has no free tier but charges only $0.0012/click with a $10 deposit — you pay $0 in months with zero clicks.

How is sed.sh different from the Bitly API?

Bitly charges $35–$300/month for API access. sed.sh charges $0.0012/click with no monthly fee. For developers building internal tools or low-volume integrations, sed.sh is dramatically cheaper.