Skip to main content

Kl

 

fetch("https://api.cricapi.com/v1/currentMatches?apikey=YOUR_API_KEY&offset=0") .then(response => response.json()) .then(data => { let matches = data.data; let output = ""; matches.forEach(match => { output += `

${match.name}

Status: ${match.status}

Score: ${match.score ? match.score[0].r + "/" + match.score[0].w : "N/A"}

`; }); document.getElementById("liveScore").innerHTML = output; });

Comments

Popular posts from this blog