GET /url/shorten
Raccourcissez n'importe quelle URL longue en a compact, shareable short link. Renvoie le shortened URL qui redirects to le original. Utile pour les social media sharing where character count matters, generating clean links pour print materials, tracking link usage, et making long URLs avec many parameters more manageable et user-friendly.
url
requis
URL to shorten
| Nom | Requis | Par défaut | Description |
|---|---|---|---|
url |
Oui | - | 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
}