GET /url/shorten
Lühendage any long URL into a compact, shareable short link. Tagastab shortened URL that redirects to the original. Kasulik 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
kohustuslik
URL to shorten
| Nimi | Kohustuslik | Vaikeväärtus | Kirjeldus |
|---|---|---|---|
url |
Jah | - | 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
}