API Endpoints
Currex just got an upgrade! Please check https://currex.info for more information.
Get latest rates
GET
https://api.cakes.com/v1/:format/latest/:base_currency?token=premiumtoken
Path Parameters
base_currency
string
Currency you want to base on [EUR/USD/CAD/AED/...] All supported currencies are possible
format
string
Response format: [json/xml]
Query Parameters
token
string
You premium token to get even more accurate data
{
"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
},
...
}
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 in-depth information about the currencies
GET
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.
Path Parameters
single_currency
string
Currency code for a single currency if you only want to get info about that one
format
string
Response format: [json/xml]
Query Parameters
token
string
Your premium token to access this premium api endpoint
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
Last updated