Our API allows you to provide short url functionality to any of your existing websites.

Url Only
To generate a url via the API, send a POST or GET request to the site in the following format:

- http://www.xth.me/index.php?api=1&return_url_text=1&longUrl={URL}

This site will then generate the short url and return it as plain text. i.e:

- http://www.xth.me/a1

Generate & Redirect
If you remove the return_url_text param the user will be redirected to the results page on this site instead of just the url text being returned.

Extra Params:
You can also set extra information on each short url, the supported params are:

customUrl => Custom short url.
shortUrlPassword => Password to access the url.
shortUrlExpiryDate => Expiry date in the formay DD-MM-YYYY HH:II:SS.
shortUrlUses => Total permitted uses before expiring.
postToTwitter => Set to 1 to auto redirect to Twitter.

NOTE: Any url requests via the API are subject to our normal spam protection measures and hence there may be limits to the amount of short urls that can be generated in any period.

- You have not created any recent urls. Click here to create one now.