Latest news from Xavier Media
It is currently Sun Dec 08, 2013 11:51 am

All times are UTC


 Login
Username:


Password:


Remember me


 Developers
Check Spammers API
Currency Exchange Rate API
Short URL API
MyXavier Micro Blogging API
File Subscription API
Forum Signature API


 Birthdays
No birthdays today
:
Grace1Smith (29)
mariogarcia (28)
sunwest

 Peak posters
Username Posts

 The team
No Groups

 

 Link to us



Post new topic

Link Shortener API
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 api.xvr.me/api.php (or api.2ve.org/api.php 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 http://2ve.org/xavier if that is available, otherwise a 500 error is supplied.

The response you get back from the API will look something like this:
Code:
<veresponse responsecode="200">
  <title>2ve.org - Short URL API</title>
  <link>http://2ve.org/</link>
  <shortlink>http://a3a.2ve.org/</shortlink>
  <longlink>http://blog.xaviermedia.com/cumulus/</longlink>
  <numcharshorter>17</numcharshorter>
</veresponse>


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 xvr.me, 2ve.org and ryqn.com). 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:
Code:
<veresponse responsecode="404">
  <title>2ve.org - 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>
</veresponse>


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

 

 Topics   Replies   Views   Last post 
No new posts Check Spammers API

Posted by bylla on Fri Jun 03, 2011 4:52 pm
Forum: APIs

0

7086

View the latest post Posted by: bylla

on Fri Jun 03, 2011 4:52 pm

This topic is locked, you cannot edit posts or make further replies. Exchange rate api fails for 11/18/09

Posted by gisborne on Wed Dec 30, 2009 11:13 pm
Forum: APIs

6

8569

View the latest post Posted by: bylla

on Thu Jan 07, 2010 5:18 am

No new posts MyXavier micro blogging API

Posted by bylla on Sat Sep 26, 2009 5:55 pm
Forum: APIs

0

8231

View the latest post Posted by: bylla

on Sat Sep 26, 2009 5:55 pm

No new posts XVR.ME API - Make long URLs much short (used to be 2ve.org)

Posted by bylla on Sat Feb 07, 2009 3:14 pm
Forum: APIs

0

10154

View the latest post Posted by: bylla

on Sat Feb 07, 2009 3:14 pm

No new posts Latest currencies all zeros

Posted by Adam on Wed Dec 10, 2008 10:17 am
Forum: APIs

2

7794

View the latest post Posted by: Adam

on Wed Dec 10, 2008 7:22 pm

No new posts Xavier Finance - Graphs based on the exchange rate API

Posted by bylla on Sat Oct 11, 2008 12:41 pm
Forum: APIs

1

16243

View the latest post Posted by: nanwich

on Sun Jan 03, 2010 5:26 am

No new posts [ Go to pageGo to page: 1, 2 ] Xavier Finance - Currency exchange rate API

Posted by bylla on Sat Oct 11, 2008 10:33 am
Forum: APIs

19

37625

View the latest post Posted by: bylla

on Mon Apr 18, 2011 6:32 pm

7 topics • Page 1 of 1

Post new topic

Who is online

Who is online In total there are 6 users online :: 1 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 242 on Sat Dec 31, 2005 11:01 pm

Registered users: xlreariasd
Legend :: Administrators, Affiliate Club, Bots, Global moderators, Gold Members, Member of the Month, Posting Free Ads, SEO Club, Silver Members, World Trade Forum

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