urlfold

fold a URL

One field. One fold.

From a script

urlfold: short links from a GET request. No key and no sign-up.

Make a link. The answer is JSON and the short link is in "short_url":

    https://www.urlfold.com/v1/shorten?url=https%3A%2F%2Fexample.com%2Fa%2Flong%2Faddress

From a shell:

    curl -G https://www.urlfold.com/v1/shorten --data-urlencode 'url=https://example.com/page?a=1&b=2'

Pick the short name yourself, 1 to 64 letters, digits, - or _:

    https://www.urlfold.com/v1/shorten?alias=my-name&url=https%3A%2F%2Fexample.com%2Fa%2Flong%2Faddress

The same answer as XML:

    https://www.urlfold.com/v1/shorten?format=xml&url=https%3A%2F%2Fexample.com%2Fa%2Flong%2Faddress

Follow a link, or see where it leads without going there:

    https://www.urlfold.com/s/<id>         redirects
    https://www.urlfold.com/s/<id>+        the address as text

Percent-encode url, or put it last: 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.

Notes

Free. No account, no key.

Links do not expire.

The same address always folds to the same link.

Add + to a short link to see where it leads.

If a short link ever seems to go somewhere other than where you sent it, the likeliest reason is that