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.
url
required
URL to shorten
| Name | Required | Default | Description |
|---|---|---|---|
url |
Yes | - | URL to shorten |
curl "https://nordapi.ee/api/v1/url/shorten?url=https://nordapi.ee"
curl "https://nordapi.ee/api/v1/url/shorten?url=https://nordapi.ee"
curl "https://nordapi.ee/api/v1/url/shorten?url=https://github.com/elixir-lang/elixir"
HTTP 400: {
"error": "TinyURL returned status 400",
"success": false
}