GET /url/shorten
Stuttu hvaða ... sem er long URL into a compact, shareable short link. Skilar shortened URL that redirects to the original. Gagnlegt fyrir 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
nauðsynlegt
URL to shorten
| Nafn | Nauðsynlegt | Sjálfgefið | Lýsing |
|---|---|---|---|
url |
Já | - | 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
}