Hi i'm new to using API's and I have a domain on HTTPS trying to access the data market data on another website Here. I've tried using localhost and am receiving the same error.
I'm getting the error
XMLHttpRequest cannot load https://api.blockchain.info/charts/market-price?format=json×pan=30days&_=1491089979914. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
Is there an easy solution to access this data? Could it be that i need an API key?
//Get Data From JSON Source
jQuery.ajax({
url:'https://api.blockchain.info/charts/market-price?format=json×pan=30days',
dataType: 'json',
type: 'GET',
cache: false,
success: function(data){
console.log(data);
}
});