Awesome
End of service notice
As the COVID-19 epidemic gradually eased, the official channel improved and more personal reasons required: The COVID19UK.LIVE website will soon stop maintaining. For API users, please try to find an alternative as quickly as possible.
Thank you for your support. Stay safe.
The Offical Data Sources:
- UK National Dashboard / England Dashboard:https://coronavirus.data.gov.uk/?_ga=2.174461218.1658631352.1593742630-1919209646.1583791143
- Wales Dashboard:https://public.tableau.com/profile/public.health.wales.health.protection#!/vizhome/RapidCOVID-19virology-Public/Headlinesummary
- Scotland Dashboards and Statistic Reports:https://www.publichealthscotland.scot/our-areas-of-work/sharing-our-data-and-intelligence/coronavirus-covid-19-data/
- North Ireland Dashboard:https://app.powerbi.com/view?r=eyJrIjoiZGYxNjYzNmUtOTlmZS00ODAxLWE1YTEtMjA0NjZhMzlmN2JmIiwidCI6IjljOWEzMGRlLWQ4ZDctNGFhNC05NjAwLTRiZTc2MjVmZjZjNSIsImMiOjh9
UK Coronavirus Data Tracker API
<img src="https://i.ibb.co/88y21MH/bbv.png" width="40%"> A live COVID-19 data scraper API provide function with current status, history, and confirmed cases geolocationVisualization
API LIST
Root URL has changed to https://api.covid19uk.live
, previous URL no longer accessible.
- Current Figure: https://api.covid19uk.live/
- History: https://api.covid19uk.live/historyfigures
- Location center: https://api.covid19uk.live/locations
- Gov.uk Update time daily: https://api.covid19uk.live/timeline
(Not for Front-End Use ↓) <br> 5. Full History(with regional): http://api.covid19uk.live/history <br>
About Data
- People in hospital data was updated manually in every 2-4 days.
- Wales regional data was updated mannually in every 2-4 days.
(This is due to the format or link from data source was constantly changing and manual intervention was often needed)
API USAGE NOTICE
There are no access barriers for this public API. Only: <br>
<b>PLEASE</b> do not attack or harm this server as its not for profit, it's for people to obtain and understand information<br> <b>PLEASE</b> be careful when you testing this API in your product<br> <b>PLEASE</b> make sure you have cached data on your side as the server is not 24/7 stable<br>
No CORS, request limit applied.
Getting Started
Runtime require NodeJs
- install mysql database > create a 'corona' database > import 'sample.sql'
- rename
conf_tmp.js
toconf.js
, config mysql username and password - create config a mapbox API Token, or disable getLocation() and putLocation() in index.js. This is for getting geolocation center for map data, its kind of essential for doing data visualization.
- install lastest nodejs and run
npm i
npm run dev
or justnode index.js
- project will start at
http://localhost:8003
- you can find all router enterance point in index.js
Importance
-
Due to the announcement channel and structure are constantly changing, new data update will put into current_shadow table waiting for admin approve. Admin need to
GET
: http://HOST/approve?token= with token in the first row (id=1) of your user table, to update to official current table. -
Use
GET
: http://HOST/update?token= to manually update all data (you need to approve the new data as well) -
The false data may cause chaos to the public, please be careful.
-
As I am not a professional coder (I am a designer), I am welcome if anyone could help me make improvement. You can contact me through ISSUE page
-
If you are using this API, please be make sure data has cache and fault tolerance was considered. This is API is not completely reliable at all time.
Partnered Projects
UK API: https://github.com/isjeffcom/coronvirusFigureUK <br> Global API: https://github.com/isjeffcom/coronavirusDataGlobal <br> <br> ML Prediction: https://github.com/lamharrison/coronavirus-machine-learning <br> <br> Store stock: <br> https://github.com/commmathree/UKSupermarketScrapper <br> https://github.com/isjeffcom/UK-All-Store <br> <br><br>
New Zealand Version (By @Larry):<br> https://covid19nz.live
Contact
If you are using this API, please join this discussion board. Keep updated for any significant changes!! <br> https://www.facebook.com/groups/2944338405655888
<br><br> WeChat Group:<br> <img src="https://i.ibb.co/nBLCKVH/qr.jpg" width="30%">
https://isjeff.com hello@isjeff.com
Co-work with:
@Big Tree: https://github.com/lamharrison <br> @Jimmy Lu: https://github.com/lujiammy <br> @Vincent Zhang: https://github.com/VincentNevermore <br> @commathree: https://github.com/commmathree <br>