THAPA TECHNICAL

HOUSE OF WEB DEVELOPERS AND TECHNOLOGY.

Coronavirus Live Cases in India State Wise Update using API

Coronavirus Live Cases in India State Wise Update using API




Welcome, Create a Website to Count Coronavirus Live Cases in India State Wise Update using API in Hindi. In this video, you will learn how to work with API and also the INDIA States Wise Live COVID-19 Cases to display as a web page using API in Hindi.

Below is the LINKS just copy and paste to the respective Browser
➡️Here is the API Link to get the India State wise JSON format data: https://www.covid19india.org/

copy the code and Plz Subscribe for daily such awesome video :)

<?php $data = file_get_contents('https://api.covid19india.org/data.json'); $coranalive = json_decode($data, true); $statescount = count($coranalive['statewise']);

 <!--  If you like my videos then plz subscribe and leave a comment on the video about your experience ok -->
$i=1; while($i < $statescount){

  echo $coranalive['statewise'][$i]['lastupdatedtime'] . "<br>"  ;
  echo $coranalive['statewise'][$i]['state'] . "<br>"  ;
  echo $coranalive['statewise'][$i]['confirmed'] . "<br>"  ;
  echo $coranalive['statewise'][$i]['active'] . "<br>"  ;
  echo $coranalive['statewise'][$i]['recovered'] . "<br>"  ;
  echo $coranalive['statewise'][$i]['deaths'] . "<br>"  ;

  $i++;
}


?>

********************************************

➡️JSON in One Video in Hindi: https://youtu.be/bMqevPKAPD4 ➡️***Build a COVID-19 World Countries Live Tracker App using an API: https://youtu.be/jNiaboOBJJM ➡️***Responsive Website against CORONA VIRUS using Bootstrap 4: https://youtu.be/TefnsQg0RIU