A managed YOURLS you can call today.
$ curl "/api/links?format=html&url=https://example.com/launch"
# same address, same short link
# add + to see where a link leads
# links do not expire
Send the long URL as a plain GET and read the answer.
YOURLS Hosting: a free URL shortener. No sign-up and no API token.
Make a link. The answer is JSON and the short link is in "shorturl":
https://www.yourlshosting.com/api/links?url=https://example.com/a/long/address
From a shell:
curl -G https://www.yourlshosting.com/api/links --data-urlencode 'url=https://example.com/page?a=1&b=2'
curl https://www.yourlshosting.com/api/links -d 'url=https://example.com/a/long/address'
Pick the short name yourself, 1 to 64 letters, digits, - or _:
https://www.yourlshosting.com/api/links?slug=my-name&url=https://example.com/a/long/address
As one line of text:
https://www.yourlshosting.com/api/links?format=text&url=https://example.com/a/long/address
Follow a link, or see where it leads without going there:
https://www.yourlshosting.com/<code> redirects
https://www.yourlshosting.com/<code>+ the address as text
https://www.yourlshosting.com/<code>.json the address and when the link was made
Put url last, or percent-encode it: an address written out as it is
runs to the end of the line, with its own ? and & in it.
The same address gives the same short link every time, unless you name
it yourself. A name that is taken answers 409. Links do not expire.
Trusted by teams at
And nothing you have to set up first.
Give the link a name you can read out loud, or leave the field blank.
Send the same long URL twice and you get the same short link back.
Scripts call one address with format=html and read the answer. No API key, no SDK.
Free to start. Paid plans are on the way.
“Set it up in an afternoon and have not had to think about it since.”