Our API has been built to be easy and simple to use, we provide all responses in XML form so your scripts can read and display the data without speed issues.
The current API has only one requirement and thats the 'surl' variable within the URL or FORM posting.
| POST | FORM Variable | URL Variable |
| http://api.smurl.be/ | <form action="http://api.smurl.be/"> <input name="surl" value="http://www.yourdomain.com/" type="text" /> </form> |
?surl=http://www.yourdomain.com/ |
URL: http://api.smurl.be/?surl=http://www.yourdomain.com/
Enter a website address below to see the XML data that is returned.
<url>
<fullurl>http://www.yourdomain.com/</fullurl>
<shorturl>eb268</shorturl>
<shorturlfull>http://smurl.be/?eb268</shorturlfull>
<date>09/February/2012</date>
<code>200</code>
<api_version>1.0</api_version>
</url>
We are creating demos to show a wide range of ways to use smurl.be on your website.