← Arendustööriistad

URL-i lühendaja

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.

Parameetrid

url kohustuslik

URL to shorten

Näidispäringud

Põhikasutus
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"

Reaalajas vastus

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