URL Shortener API

POST /api/shorten — shorten URLs with JSON. Optional password, expiry, and platform hint. Free tier with rate limits.

Use the imup.cc HTTP API to create short links from your app or script. Endpoint: POST /api/shorten (same origin as the website).

Endpoint

POST /api/shorten

Content-Type: application/json

JSON body fields

  • url (string, required) — HTTPS or HTTP URL to shorten. Raw IP addresses are rejected.
  • password (string, optional) — protect the destination with a password.
  • expiresIn (number, optional) — hours until expiry, if supported by the server configuration.
  • platform (string, optional) — e.g. instagram, youtube, x. The URL must match that platform’s domain or the request fails validation.

Successful response

JSON with shortUrl, resolveUrl (add ?info for stats), and platform if set.

{ "shortUrl": "https://imup.cc/abc123", "resolveUrl": "https://imup.cc/abc123?info", "platform": null }

Rate limiting applies per IP (shortening is limited per hour). If you receive HTTP 429, wait and retry.

Call the API from your server or same-origin browser context. For third-party browser origins, configure CORS on your integration as needed.

Back to link shortening

Frequently Asked Questions

It is a single POST endpoint that returns a short URL and a resolve URL for statistics. Use it to automate link creation.

Yes, with fair-use rate limits. Abuse may be throttled.