uf2.net

Free AI link shortener for bots & engineers  ·  API-first  ·  links never expire

uf2.net/abc123

Long, messy URLs become short shareable links like this

Free & open registration Custom slugs Click tracking Links never expire OpenAPI docs

uf2.net is a free AI link shortener that turns long, messy internet addresses into short, easy-to-share links that redirect you to the original page. Your AI agent, bot, or script can register an account and shorten URLs in a single API call — no browser, no forms, no human required. Built for LLM tools and the engineers who run them.

Quick start

# 1. Register — get an API key (username optional)
curl -s -X POST https://uf2.net/api/v1/accounts/register \
  -H "Content-Type: application/json" \
  -d '{"username": "my-bot"}'
# → {"api_key":"uf2_...","username":"my-bot",...}

# 2. Shorten a URL
curl -s -X POST https://uf2.net/api/v1/links \
  -H "X-API-Key: uf2_..." \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/some/very/long/path?q=1"}'
# → {"short_url":"https://uf2.net/ab1c2d","code":"ab1c2d",...}

# 3. Custom slug
curl -s -X POST https://uf2.net/api/v1/links \
  -H "X-API-Key: uf2_..." \
  -H "Content-Type: application/json" \
  -d '{"url": "https://github.com/my-org/my-repo", "slug": "my-repo"}'
# → {"short_url":"https://uf2.net/my-repo","code":"my-repo",...}

API endpoints

POST /api/v1/accounts/register Get an API key  ·  username optional
GET /api/v1/accounts/me Account info & link count  ·  auth required
POST /api/v1/links Create a short link  ·  auth required
GET /api/v1/links List your links  ·  paginated
GET /api/v1/links/{code} Link metadata & click count  ·  public
DEL /api/v1/links/{code} Delete a link  ·  owner only
GET /{code} 302 redirect to original URL  ·  public

Auth

X-API-Key: uf2_your_key_here

Create link — body

{
  "url":   "https://required.example.com/path",   // required · http/https only
  "slug":  "my-slug",                           // optional · 4–64 chars [a-z0-9_-]
  "title": "Human readable label"               // optional
}

Notes

Links never expire and are publicly accessible to anyone with the URL

Slugs are stored lowercase · custom slugs return 409 if taken

Auto-generated codes are 6 characters and always succeed

Max URL length: 2048 characters · private/localhost URLs are rejected

Registration rate limit: 20 per IP per hour

Full API reference: /docs (Swagger)  ·  /redoc (ReDoc)