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

Currency exchange rate API
Please visit developers.xaviermedia.com for our new developers web site.



The exchange rate API from Xavier Finance allows you to retrieve historical exchange rates and graphs for 38 currencies. Supported currencies are so far EUR, USD, JPY, CYP, CZK, DKK, EEK, GBP, HUF, LTL, LVL, MTL, PLN, SEK, SIT, SKK, CHF, ISK, NOK, BGN, HRK, ROL, RON, RUB, TRL, TRY, AUD, CAD, CNY, HKD, IDR, KRW, MYR, NZD, PHP, SGD, THB, ZAR. For some currencies we don't have data since the start (4th of January 1999) which means that 0.0000 will be returned as exchange rate in some cases.

This API doesn't require any API key, but we ask you to be nice to our servers and not send too many requests. In case this service is abused we may have to request that users register for API keys, and we may also limit the access to this service.

Since this is a free service we require a text link to http://finance.xaviermedia.com/ if you use any graphs or data:
Code:
<a href="http://finance.xaviermedia.com/">Currency converter</a>


Graphs

To create graphs based on the data returned by this API, please consult the article Xavier Finance - Graphs based on the exchange rate API.

Accessing historical exchange rates

To access historical exchange rates in the API, you simply just send a request to the API server in the following format:
Code:
http://api.finance.xaviermedia.com/api/[year]/[month]/[day].[format]

[year] = The year in 4 digits like 1999
[month] = The month in 2 digits like 01 for January
[day] = The day of the month in 2 digits like 08 for the 8th of January
[format] = Format of the response like xml for an XML file (so far XML is the only supported format)

At the moment we only have rates since 4th of January 1999, all other dates will return a 404 error (see below).

A successful query will result in the following response:
Code:
<xavierresponse responsecode="200">
  <fx_date>1999-01-08</fx_date>
  <title>Xavier Finance - Exchange rates for 1999-01-08</title>
  <link>http://finance.xaviermedia.com/</link>
  <exchange_rates>
    <basecurrency>EUR</basecurrency>
    <fx_date>1999-01-08</fx_date>
    <fx basecurrency="EUR">
   <currency_code>EUR</currency_code>
   <rate>1.0</rate>
    </fx>
    <fx basecurrency="EUR">
   <currency_code>USD</currency_code>
   <rate>1.165900</rate>
    </fx>
    <fx basecurrency="EUR">
   <currency_code>JPY</currency_code>
   <rate>130.089996</rate>
    </fx>
  </exchange_rates>
</xavierresponse>


Exchange rates for today

To access todays exchange rates in the API, you simply just send a request to the API server in the following format:
Code:
http://api.finance.xaviermedia.com/api/latest.[format]

[format] = Format of the response like xml for an XML file (so far XML is the only supported format)
Please note that you don't need to send any dates since the rates returned are the latest available in the API. The exchange rates are updated daily so you don't have to query more then once per day!

A successful query will result in the following response:
Code:
<xavierresponse responsecode="200">
  <fx_date>1999-01-08</fx_date>
  <title>Xavier Finance - Exchange rates for 1999-01-08</title>
  <link>http://finance.xaviermedia.com/</link>
  <exchange_rates>
    <basecurrency>EUR</basecurrency>
    <fx_date>1999-01-08</fx_date>
    <fx basecurrency="EUR">
   <currency_code>EUR</currency_code>
   <rate>1.0</rate>
    </fx>
    <fx basecurrency="EUR">
   <currency_code>USD</currency_code>
   <rate>1.165900</rate>
    </fx>
    <fx basecurrency="EUR">
   <currency_code>JPY</currency_code>
   <rate>130.089996</rate>
    </fx>
  </exchange_rates>
</xavierresponse>


Invalid requests

In case you send an invalid request to the API server you will get a 404 Page Not Found error:
Code:
<xavierresponse responsecode="404">
  <title>Page not found - Please check the documentation for help</title>
  <link>http://api.finance.xaviermedia.com/</link>
</xavierresponse>

You will also get this error message if you send dates before 4th of January 1999. If you're too early (i.e. we haven't updated the rates yet) you will also get the latest exchange rates available in the 404 message. For an example try http://api.finance.xaviermedia.com/api/2999/01/01.xml.

At the moment we don't require any API key to get access to our service, but if you should get a 403 Access Denied error in the future it means that we've been forced to limit the access to our service due to abuse :( . In that case check out the information provided in the <link></link> tags for more information.

 

 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 ]