Accessing the API

Yes, we have an JSON API.

API Endpoint: http://shitp.st/shorten
HTTP Method: PUT
Parameter: URL
Output: JSON formatted shortURL hash

Example

In the following example, we will create short link to a competing url shortener, with the side-affect of making the url longer.

Calling the API using cURL:

$ curl https://shitp.st/shorten -X POST -d '{"url":"http://bit.ly"}'
{"short_url":"-vFfyinig"} 

https://shitp.st/-vFfyinig now redirects