XE Currency Data API Non Technical Quick Start Guide
XE Currency Data API Non Technical Quick Start Guide
Xe Corporation
What kind of requests can I make with the API?
You can make different kinds of requests to the API. Here’s a sample:
Component Description
xecdapi.xe.com This is the domain you must use to access the API
v1 This is the API version number. Our API is currently on version 1.
currencies This is the type of request you want to make.
.json/ This defines the format of your data. Supported formats are: .json, .csv, or .xml
?obsolete=true This optional parameter returns active and obsolete currencies.
Xe Corporation
Request Type: Convert From
Description: Convert from one base currency to one or multiple counter currencies.
Example: Convert 110.23 CAD to USD and GBP.
Note: Each rate returned counts as one API request towards your monthly limit.
Sample URL: https://xecdapi.xe.com/v1/convert_from.json/?from=CAD&to=USD,GBP&amount=110.23
Component Description
xecdapi.xe.com This is the domain you must use to access the API
v1 This is the API version number. API is currently on version 1.
convert_from This is the type of request you want to make.
.json/ This defines the format of your data. Supported formats are: .json, .csv, or .xml
/?from=CAD This is the base currency you want to convert an amount from.
&to=USD,GBP These are the currencies you want to convert to.
Use commas to separate multiple currencies.
&amount=110.23 This is the amount you want to convert from.
Component Description
xecdapi.xe.com This is the domain you must use to access the API
v1 This is the API version number. API is currently on version 1.
convert_to This is the type of request you want to make.
.json/ This defines the format of your data. Supported formats are: .json, .csv, or .xml
/?to=CAD This is the currency you want to convert to.
&from=USD,EUR These are the currencies you want to convert from.
Use commas to separate multiple currencies.
&amount=1000 This is the amount you want to convert to.
Xe Corporation
Request Type: Historic Rate
Description: Get the historic rate for one base currency against one or more counter currencies.
Example: Convert $150 from USD to CAD and JPY for May 5th, 2011.
Note: Each rate returned counts as one API request towards your monthly limit
Sample URL:
https://xecdapi.xe.com/v1/historic_rate.json/?from=USD&date=2011-03-05&to=CAD,JPY&amount=150
Component Description
xecdapi.xe.com This is the domain you must use to access the API
v1 This is the API version number. API is currently on version 1.
historic_rate This is the type of request you want to make.
.json/ This defines the format of your data. Supported formats are: .json, .csv, or .xml
/?from=USD This is the currency you want to convert from.
&date=2011-03-05 This is the date you want the rates as of. YYYY-MM-DD
&to=CAD,JPY These are the currencies you want to convert to.
Use commas to separate multiple currencies.
&amount=150 This is the amount you want to convert.
Xe Corporation
Step 3 – Access your API Results
Results from your API request will appear in your browser. Below are sample API results in each of the
supported formats.
Xe Corporation