🦠 Web API to get COVID-19(coronavirus) information of each prefecture in Japan
I created this API to help disseminate about the Japanese COVID-19 information. I am updating this API from time to time, so if you have an API you want to add, please let me know!
- 🔁 Update data every 2 hours
- 🚀 Provide REST API
- 🇯🇵 Get info of each prefecture in Japan
- ☕️ Simple data and simple to use
- 📈 Predict for the next 30 days
If your project is not listed here, let us know!
- https://github.com/yakuri/covid19
- https://github.com/yuto51942/COVID-19-notice
- https://github.com/postmanlabs/covid-19-apis
- https://github.com/InumberX/covid-19
- https://github.com/miya/covid19-jp-linebot
You can see the documentation of this API and/or import it as a Postman collection using this link.
Endpoint: https://covid19-japan-web-api.now.sh/api/v1/prefectures
Response
[
{
"id": 1,
"name_ja": "北海道",
"name_en": "Hokkaido",
"lat": 43.46722222,
"lng": 142.8277778,
"cases": 176,
"deaths": 7
},
{
"id": 2,
"name_ja": "青森",
"name_en": "Aomori",
"lat": 40.78027778,
"lng": 140.83194440000003,
"cases": 8,
"deaths": 0
},
...
This API does not include FLIGHT data and SHIPMENT data.
Endpoint: https://covid19-japan-web-api.now.sh/api/v1/total
Response
{
"date": 20200329,
"pcr": 26401,
"positive": 1647,
"symptom": 1352,
"symptomless": 162,
"symptomConfirming": 133,
"hospitalize": 1187,
"mild": 659,
"severe": 59,
"confirming": 323,
"waiting": 13,
"discharge": 408,
"death": 52
}
This API does not include FLIGHT data and SHIPMENT data.
Endpoint: https://covid19-japan-web-api.now.sh/api/v1/total?history=true
Response
[
{
"date": 20200206,
"pcr": 132,
"positive": 16,
"symptom": 16,
"symptomless": 0,
"symptomConfirming": 0,
"hospitalize": 9,
"mild": 0,
"severe": 0,
"confirming": 3,
"waiting": 0,
"discharge": 4,
"death": 0
},
{
"date": 20200207,
"pcr": 151,
"positive": 16,
"symptom": 16,
"symptomless": 0,
"symptomConfirming": 0,
"hospitalize": 12,
"mild": 0,
"severe": 0,
"confirming": 0,
"waiting": 0,
"discharge": 4,
"death": 0
},
...
Predict for the next 30 days about the positive total and the death total.
This API does not include the FLIGHT data and the SHIPMENT data.
Endpoint: https://covid19-japan-web-api.now.sh/api/v1/total?predict=true
Response
[
{
"date": 20200413,
"positive": 6960.103502394343,
"death": 102.8839324261669
},
{
"date": 20200414,
"positive": 7652.287257933034,
"death": 107.84568822992809
},
{
"date": 20200415,
"positive": 8413.308833378682,
"death": 113.04673329952118
},
{
"date": 20200416,
"positive": 9250.01416438296,
"death": 118.49860777416443
},
{
"date": 20200417,
"positive": 10169.930016336322,
"death": 124.21340833627379
},
{
"date": 20200418,
"positive": 11181.33169302858,
"death": 130.2038150517223
},
{
"date": 20200419,
"positive": 12293.317478949984,
"death": 136.4831195045177
},
{
"date": 20200420,
"positive": 13515.89048489476,
"death": 143.06525428832322
},
...
Endpoint: https://covid19-japan-web-api.now.sh/api/v1/positives
Query parameter
- prefecture=東京都 : Filter by prefecture using jp_name
Response
[
{
"code": "",
"announcement_date": "2020/01/28",
"src": "https://www.mhlw.go.jp/stf/newpage_09158.html",
"prefecture": "北海道",
"residence_prefecture": "国外(武漢市)",
"age": "40代",
"gender": "女性",
"attribute": "来日観光客",
"prefecture_number": "北海道1",
"travel_or_contact": "渡航歴",
"detail": "中国(武漢)",
"id": "ID010001",
"diagnosis_date": "2020/01/28",
"onset": "2020/01/26",
"symptom": "1",
"death_or_discharge_date": "",
"comment1": "",
"outcome": "",
"outcome_src": "",
"comment2": "",
"estimated_infection_date": "2020/01/16"
},
{
"code": "",
"announcement_date": "2020/02/14",
"src": "http://www.pref.hokkaido.lg.jp/hf/kth/kak/hasseijoukyou.htm",
"prefecture": "北海道",
"residence_prefecture": "札幌市",
"age": "50代",
"gender": "男性",
"attribute": "来日観光客",
"prefecture_number": "北海道2",
"travel_or_contact": "",
"detail": "",
"id": "ID010002",
"diagnosis_date": "2020/02/14",
"onset": "2020/01/31",
"symptom": "1",
"death_or_discharge_date": "",
"comment1": "",
"outcome": "",
"outcome_src": "",
"comment2": "",
"estimated_infection_date": "2020/01/24"
},
...
This is a statistic of the positives API and does not include data that is not publicly available.
Endpoint: https://covid19-japan-web-api.now.sh/api/v1/statistics
Response
[
{
"name_ja": "北海道",
"name_en": "Hokkaido",
"total_count": 239,
"male": {
"count": 137,
"generations_count": {
"00s": 6,
"10s": 1,
"20s": 5,
"30s": 8,
"40s": 19,
"50s": 35,
"60s": 27,
"70s": 19,
"80s": 14,
"90s": 2,
"100s": 0,
"unknown": 1
}
},
"female": {
"count": 100,
"generations_count": {
"00s": 1,
"10s": 1,
"20s": 14,
"30s": 10,
"40s": 12,
"50s": 17,
"60s": 15,
"70s": 16,
"80s": 8,
"90s": 4,
"100s": 0,
"unknown": 2
}
},
"unkown_gender": {
"count": 2,
"generations_count": {
"00s": 0,
"10s": 0,
"20s": 0,
"30s": 0,
"40s": 0,
"50s": 0,
"60s": 0,
"70s": 0,
"80s": 0,
"90s": 0,
"100s": 0,
"unknown": 2
}
}
},
...
- Please use flake8 as Lint
- Please don't add /data directory to your commit
- Please PullRequest to master because gitflow is not currently used
Made with contributors-img.
This data was collected by volunteers and may be incorrect. Please refer to the reports of public organizations correctly.