The best API Solution to Keep Updated With Gold Market
var myHeaders = new Headers();
myHeaders.append("access-token", "YOUR_API_ACCESS_TOKEN");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("base", "USD");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://g.metalsplatform.com/api/XAU", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
myHeaders.append("access-token", "YOUR_API_ACCESS_TOKEN");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("base", "USD");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://g.metalsplatform.com/api/XAU", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
curl -i -X GET \
-H "access-token: YOUR_API_ACCESS_TOKEN" \
-H "base:USD" \
'https://g.metalsplatform.com/api/XAU'
-H "access-token: YOUR_API_ACCESS_TOKEN" \
-H "base:USD" \
'https://g.metalsplatform.com/api/XAU'
Get started now