We're happy to announce that freeforexapi.com has now partnered up with currencylayer in an effort to offer you an even better free API service. To keep using our free currency API, please use the button below to get an API key.
Get Free API AccessThe Free Forex API is only for use for displaying the rate information on a webpage. Our monitoring systems constantly check the use of the API to ensure that there is no unauthorised use.
In order to prevent your site from being blacklisted, all you have to do is add the following linked image to your site next to where the rates are shown
The code for the linked image is provided below.
<a href="https://www.freeforexapi.com"> <img alt="Free Forex API" src="https://www.freeforexapi.com/Images/link.png" height="20"> </a>
If the API returns an error message that the source has been blacklisted, please contact [email protected] providing the following information:
As soon as we verify the site we will unlock your site/address for future access. We will also whitelist your site to prevent it being blocked again. We are currently working through a backlog so please bare with us, we handle each request in the order it is received.
Our monitoring systems are sensitve, however they do implement a 'benefit of the doubt' policy, if a source is flagged as suspicious, the homepage of that source is scanned and if the image link is found, the source is whitelisted.
https://www.freeforexapi.com/api/live
{ "supportedPairs":[ "EURUSD", "EURGBP", "GBPUSD", "USDJPY", "AUDUSD", "USDCHF", "NZDUSD", "USDCAD", "USDZAR" ], "message":"'pairs' parameter is required", "code":1001 }
//Request
https://www.freeforexapi.com/api/live?pairs=EURUSD
//Response
{
"rates":{
"EURUSD":{
"rate":1.170228,
"timestamp":1532428704963}
},
"code":200
}
//Request
https://www.freeforexapi.com/api/live?pairs=EURGBP,USDJPY
//Response
{
"rates":{
"EURGBP":{
"rate":0.891724,
"timestamp":1532429549281
},
"USDJPY":{
"rate":111.1307,
"timestamp":1532429549281
}
},
"code":200
}
{ "message":"'pairs' parameter is required", "code":1001 } { "message":"The currency pair 'USDABC' was not recognised or supported", "code":1002 }