Tuesday, March 11, 2003

Little URL Desk - a little desk for little URLs

Paste the long one in the box and I will hand you a short one back. Pick a name for it if you want. Leave that box empty and I pick one. Add a + to the end of any short link to see where it leads.

Long link:
Name you want: (optional)

For the programs out there: this is how to use it from a script.

Little URL Desk: a free URL shortener. No sign-up and no API token.

Make a link. The answer is the short link on one line:

    https://www.littleurldesk.com/?u=https://example.com/a/long/address

From a shell:

    curl -G https://www.littleurldesk.com/shorten --data-urlencode 'u=https://example.com/page?a=1&b=2'
    curl https://www.littleurldesk.com/shorten -d 'u=https://example.com/a/long/address'

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

    https://www.littleurldesk.com/?alias=my-name&u=https://example.com/a/long/address

As JSON:

    https://www.littleurldesk.com/?format=json&u=https://example.com/a/long/address
    curl https://www.littleurldesk.com/shorten -H 'Accept: application/json' -d 'u=https://example.com/page'

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

    https://www.littleurldesk.com/s/<code>         redirects
    https://www.littleurldesk.com/s/<code>+        the address as text
    https://www.littleurldesk.com/s/<code>.json    the address and when the link was made

Put u 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.
posted by me at 9:14 PM | 0 comments

About

I got tired of long links breaking in my email, so I made this.

I built this one on a Sunday night because I kept needing short links for my own posts and did not want to pay for one. It is free. No sign-up, no account, no API key. Links do not expire.

Archives

  • March 2003
  • February 2003
  • January 2003

Blogroll

  • Lorna's Knitting Notes
  • The Shed Gazette
  • Dave Plays Old Radio
  • Mrs. Pargeter's Garden
  • Radio Silence Tuesdays

Me

my cute button