REST API & Short URL API

Automate link shortening, track clicks and manage your links programmatically.

Integrate link shortening into anything

The ShortU REST API gives developers and businesses full programmatic access to link creation, statistics, and management — straight from any language or platform.

Shorten URLs instantly

POST a long URL and receive a short link in milliseconds. Supports custom alias codes for branded links (Starter plan).

Bulk shortening

Submit up to 100 URLs in a single API call using the bulk endpoint — perfect for mass campaigns and import pipelines.

Click statistics

Retrieve total and unique click counts for any link you own. Integrate the data into your own dashboards and reports.

Update & manage links

PATCH an existing link to change its destination, title, expiry date or active status — all without leaving your workflow.

Secure token auth

Every API request is authenticated with a per-account token sent in the X-API-Token header. Create and revoke tokens from your dashboard.

Plan-based rate limits

Free accounts get 6 calls/min. Starter: 30. Pro: 120. Enterprise: 360. Rate limits scale with your plan automatically.

Quick start

Shorten your first URL in under a minute:

curl -X POST https://stu.cm/api/v1/shorten \
  -H "Content-Type: application/json" \
  -H "X-API-Token: <your_token>" \
  -d '{"long_url": "https://example.com/your/very/long/url"}'

Response:

{
  "short_url": "https://stu.cm/AbCdEf",
  "long_url":  "https://example.com/your/very/long/url",
  "code":      "AbCdEf"
}

Read the full interactive API reference or generate your token from your dashboard.

Interactive API docs API overview