← Developer Utilities

URL Shortener

GET /url/shorten

Shorten any long URL into a compact, shareable short link. Returns the shortened URL that redirects to the original. Useful for social media sharing where character count matters, generating clean links for print materials, tracking link usage, and making long URLs with many parameters more manageable and user-friendly.

Parameters

url required

URL to shorten

Example Requests

Basic usage
curl "https://nordapi.ee/api/v1/url/shorten?url=https://nordapi.ee"
Shorten the NordAPI URL
curl "https://nordapi.ee/api/v1/url/shorten?url=https://nordapi.ee"
Shorten a long GitHub URL
curl "https://nordapi.ee/api/v1/url/shorten?url=https://github.com/elixir-lang/elixir"

Live Response

HTTP 400: {
  "error": "TinyURL returned status 400",
  "success": false
}