using http://localhost/api/[url] get the short url