API

whoa.link offers a simple JSON API for developers. Clients are allowed to make 100 API calls per 24 hour period, limited by IP address. If your application needs more than this, contact me to request an API key.

Shorten

To shorten a URL, you must URL encode the URL you want to shorten to escape special characters, then make a request like:

https://whoa.link/create.php?url=www.example.com
If the request succeeds, the server will return JSON like:
{"url":"https:\/\/whoa.link\/2G"}
If the request fails, the server will return JSON like:
{"error":"Missing or invalid URL."}
URLs are permanent, so the short URL can be cached and used forever.

Expand

To expand a whoa.link short URL, make a request like:

https://whoa.link/link.php?url=https://whoa.link/2G
If the request succeeds, the server will return JSON like:
{"url":"http:\/\/www.example.com"}
If the request fails, the server will return JSON like:
{"error":"Missing or invalid short code."}