API Endpoints

Last updated 5 months ago

Currex just got an upgrade! Please check https://currex.info for more information.

get
Get latest rates

https://api.cakes.com
/v1/:format/latest/:base_currency?token=premiumtoken
Request
Response
Path Parameters
base_currency
optional
string
Currency you want to base on [EUR/USD/CAD/AED/...] All supported currencies are possible
format
required
string
Response format: [json/xml]
Query Parameters
token
optional
string
You premium token to get even more accurate data
200: OK
Rates successfully retrieved.
{
"timestamp_utc":"2018-07-16 13:52:05",
"base_currency":"EUR",
"rates":{
"AED":{
"currency":"AED",
"rate":4.303
},
"AMD":{
"currency":"AMD",
"rate":5.59
},
"ANG":{
"currency":"ANG",
"rate":2.154
},
...
}
403: Forbidden
The token you did provide was not found in the database
{
"errorcode":98,
"message":"Given premium token is not valid"
}
404: Not Found
The base_currency you entered is not valid
{
"errorcode":2,
"message":"base currency is not valid"
}

Examples

1) Get latest rates for base Euro as JSON

https://api.currex.info/v1/json/latest/EUR

2) Get latest rates for base United Arab Emirates Dirham as XML

https://api.currex.info/v1/xml/latest/AED

get
★ Get in-depth information about the currencies

https://api.currex.info/v1/:format/
info/:single_currency?token=premiumtoken
[Premium API Endpoint] Please get a premium token to be able to access this information.
Request
Response
Path Parameters
single_currency
optional
string
Currency code for a single currency if you only want to get info about that one
format
required
string
Response format: [json/xml]
Query Parameters
token
optional
string
Your premium token to access this premium api endpoint
200: OK

Examples

1) Get info about all currencies supported by Currex as JSON

https://api.currex.info/v1/json/info?token=■■■■■■■■■■

Replace ■■■■■■■■ with your own token

2) Get info only about Euro as XML

https://api.currex.info/v1/xml/info/EUR?token=■■■■■■■■■■

Replace ■■■■■■■■ with your own token