Yet Another Link Shortener

To use this you have to get API key from "Profile" tab

Fetch limit


$ curl -H "X-Yals-Key:<your key>" https://yal.sh/api/limit

{"limit":234}
            

Create link


$ curl -H "X-Yals-Key:<your key>" -X POST --data "url=http://foo.bar" https://yal.sh/api/link

{"url":"https://yal.sh/5vs8jps"}
            

Get link data


$ curl -H "X-Yals-Key:<your key>" https://yal.sh/api/link/5vs8jps

{"clicks":123,"url":"https://foo.bar","ts":1453130096718}