POST /api/shorten
Payload: { "url": "https://earl.sh" }
Response: { "Url": "https://earl.sh/l7zslgO" }
earl is a fun side project for shortening URLs. It was created as an experiment into how such project can be done in Go. A link can be shortened through the form below, by using the public REST API, or by using the tiny command line interface that can be installed. The lifespan of a shortened link is 72 hours. The code can be explored and played with on GitHub.
POST /api/shorten
Payload: { "url": "https://earl.sh" }
Response: { "Url": "https://earl.sh/l7zslgO" }