Web Scraping Microservices API built with Node.js, Express and jQuery
View live demo of API response here:
https://covidapi.onrender.com/totalcases
https://covidapi.onrender.com/recovered
https://covidapi.onrender.com/cases
COVID-19 pandemic wikipedia webpage: https://en.wikipedia.org/wiki/COVID-19_pandemic
Run npm install to install dependencies
Run npm start to start the server
Make GET request to the following API endpoints to see the response
Total Confirmed Cases Worldwide
API endpoint: http://localhost:3000/totalcases
example response:
{
"confirmedCases" : " 6075786"
}
Total Recovered Cases World wide
API endpoint: http://localhost:3000/recovered
example response:
{
"recoveredCases" : " 2571797"
}
Confirmed Cases by Country
API endpoint: http://localhost:3000/cases
example response:
[
{
"country" : " United States" ,
"cases" : " 1806332"
},
{
"country" : " Brazil" ,
"cases" : " 499966"
},
{
"country" : " Russia" ,
"cases" : " 405843"
},
]