I am looking to incorporate a real-time COVID-19 total cases tracker for Russia on my website. In order to achieve this, I am sending a request to using the following script:
function httpGet(theUrl)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false ); // executing synchronous request
xmlHttp.send( null );
return xmlHttp.responseText;
}
let data = httpGet('https://api.covid19api.com/dayone/country/russia')
console.log(data)
I am now seeking assistance in extracting the confirmed cases from the latest entry. Any help would be greatly appreciated. Thank you in advance.