Real-time Rates
Name
Type
Description
curl --location 'https://api.curexapi.com/live?access_key=YOUR_ACCESS_KEY&source=USD¤cies=EUR%2CGBP'const axios = require('axios');
let config = {
method: 'get',
url: 'https://api.curexapi.com/live?access_key=YOUR_ACCESS_KEY&source=USD¤cies=EUR,GBP',
headers: { }
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.curexapi.com/live?access_key=YOUR_ACCESS_KEY&source=USD¤cies=EUR%2CGBP',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;{
"success": true,
"timestamp": 1672531200,
"source": "USD",
"date": "2023-01-01",
"rates": {
"EUR": 0.932,
"GBP": 0.827
}
}Last updated