Get support from Xavier Media
It is currently Sun Dec 08, 2013 1:00 pm

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: XVR.ME API - Make long URLs much short (used to be
PostPosted: Sat Feb 07, 2009 3:14 pm 
Offline Admin Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
At the moment this API is only open for people developing services for Xavier Media.

To make a URL shorter via this API you need to send a request to (or as before) with the following parameters:
api = The unique API ID you got from Xavier Media
key = Your API key you got from Xavier Media
longlink = The link you want to make shorter
action = To make a link shorter you should set this to makeshorter
fileformat = Format of the response. You can select between txt, xml or json (always lower case). If not provided or left blank xml will be used as the standard output.
shortpath = Optional! Is the part after the standard API domain and can be provided is the user would like to select something easy-to-remember. For example avier would return a short link as if that is available, otherwise a 500 error is supplied.

The response you get back from the API will look something like this:
<veresponse responsecode="200">
  <title> - Short URL API</title>

The shorter URL is found in the shortlink tag. The tag numcharshorter will tell you how much shorter your short link is then your long link :D , in this case 17 characters shorter.

Standard API Domain

Each API key have a standard domain used for the short links and this domain can be any of the domain names available (at the moment, and To check which the standard API domain is, just send a request to the API server with the following:

api = The unique API ID you got from Xavier Media
key = Your API key you got from Xavier Media
action = To get the standard domain action would be requestsite
fileformat = Format of the response (see above for file formats)

If you make a link shorter, you also get the standard API domain in the short link response as "link".

Error messages

If something goes wrong with the API request for example if you miss-spell your API key you will get an error message with a response code other then 200.

The error message contains a message describing the problem and may look like this:
<veresponse responsecode="404">
  <title> - Invalid API key</title>
  <errormessage>The combination of <strong>API key</strong> and <strong>API ID</strong> you used is not valid. Please make sure you've spelled everything correct.</errormessage>

Updated 2012-05-20: Added new format, new short links domains, new action (request standard API domain).

Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too

Report this post
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Registered users: xlreariasd

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
SEO MOD © 2007 StarTrekGuide ]