Display Bitcoin price from BlockChain API

const req 		= new XMLHttpRequest();
const method 	= 'GET';
const url 		= "<https://blockchain.info/ticker>";

const priceLabelEuro 	= document.getElementById("price_label_euros");
const priceLabelDollars = document.getElementById("price_label_dollars");

req.open(method, url);
req.onreadystatechange = function(event) {
	if (this.readyState === XMLHttpRequest.DONE) {
		if (this.status === 200) {

			const response = JSON.parse(this.responseText);

			priceLabelEuro.textContent = response.EUR.buy;
			priceLabelDollars.textContent = response.USD.buy;
			

		} else {
			console.log("status :" + this.status);
		}
	}
}
req.send();

METEO API :

https://api.openweathermap.org/data/2.5/weather?q=trets&appid=dc8c9155818c0d42&units=metric