Git Product home page Git Product logo

covid19-rader-for-japan-api's Introduction

COVID-19 Rader for Japan Web API

🦠 Web API to get COVID-19(coronavirus) information of each prefecture in Japan

Features

  • 🔁 Update data every 2 hours
  • 🚀 Provide REST API
  • 🇯🇵 Get info of each prefecture in Japan

Project using this API

if your project is not listed here,let us know!

Covid19-rader-for-japan

https://covid19-rader-for-japan.com

Getting Started

$ git clone https://github.com/RuiHirano/covid19-rader-for-japan-api.git
$ cd covid19-rader
$ git submodule init
$ git submodule update
$ cd src
$ go run main.go

You can get information at http://localhost:5000/api/v2/....

Usage

  1. DailyPositiveByPref Data
  2. Daitailf Data
  3. DailyDetailByPref Data
  4. DailyCallcenter Data
  5. News Data
  6. Summary Data
  7. WorldSummary Data

1. DailyPositiveByPref Data

Dataset

https://github.com/swsoyee/2019-ncov-japan/blob/master/50_Data/byDate.csv

Endpont: https://covid19-rader-for-japan.appspot.com/api/v2/daily/positive_by_pref

// $ curl https://covid19-rader-for-japan.appspot.com/api/v2/daily/positive_by_pref
// or at local
$ curl https://localhost:5000/api/v2/daily/positive_by_pref

Response:

[
    {
        "date":"20200330",          // 日付
        "hokkaido":"",              // 北海道における死亡者数
        "aomori":"",
        "iwate":"",
        ...
        "tokyo":"1",
        "kanagawa":"1",
        "niigata":"",
        "oita":"",
        "charter":"",
        "quarantine_officer":"",
        "cruise":"1"
    },
  ...
]

2. DailyDeathByPref Data

Dataset

https://github.com/swsoyee/2019-ncov-japan/blob/master/50_Data/death.csv

Endpont: https://covid19-rader-for-japan.appspot.com/api/v2/daily/death_by_pref

// $ curl https://covid19-rader-for-japan.appspot.com/api/v2/daily/death_by_pref
// or at local
$ curl https://localhost:5000/api/v2/daily/death_by_pref

Response:

[
    {
        "date":"20200330",          // 日付
        "hokkaido":"",              // 北海道における死亡者数
        "aomori":"",
        "iwate":"",
        ...
        "tokyo":"1",
        "kanagawa":"1",
        "niigata":"",
        "oita":"",
        "charter":"",
        "quarantine_officer":"",    // 検疫官の死亡者数
        "cruise":"1"                // クルーズ船での死亡者数
    },
  ...
]

3. DailyDetailByPref Data

Dataset

https://github.com/swsoyee/2019-ncov-japan/blob/master/50_Data/covid19_jp.csv

Endpont: https://covid19-rader-for-japan.appspot.com/api/v2/daily/detail_by_pref

// $ curl https://covid19-rader-for-japan.appspot.com/api/v2/daily/detail_by_pref
// or at local
$ curl https://localhost:5000/api/v2/daily/detail_by_pref

Response:

[
    {
        "date":"20200206",                      // 日付
        "tests":"698",                          // 検査数
        "confirmed":"25",                       // 確認済み
        "deaths":"0",                           // 死亡者数
        "recovered":"4",                        // 回復者数
        "hosp":"18",                            // 入院者数
        "vent":"",                              // 
        "icu":"",                               // 
        "severe":"0",                           // 重症者数
        "population":"126216142",               // 人口
        "administrative_area_level":"1",        // 管理エリアレベル
        "administrative_area_level_1":"Japan",  // 
        "administrative_area_level_2":"",       // 
        "jis_code":""                           // JISコード
    },

  ...
]

4. DailyCallCenter Data

Dataset

https://github.com/swsoyee/2019-ncov-japan/blob/master/50_Data/MHLW/callCenter.csv

Endpont: https://covid19-rader-for-japan.appspot.com/api/v2/daily/callcenter

// $ curl https://covid19-rader-for-japan.appspot.com/api/v2/daily/callcenter
// or at local
$ curl https://localhost:5000/api/v2/daily/callcenter

Response:

[
    {
        "date":"20200128",     // 日付
        "call":"99",           // 電話問合せ件数
        "fax":"",              // fax件数
        "mail":"",             // mail件数
        "line":"3"             // 
    },
    {
        "date":"20200129",
        "call":"250",
        "fax":"",
        "mail":"",
        "line":"3"
    },
  ...
]

5. DailyNews Data

Dataset

https://github.com/swsoyee/2019-ncov-japan/blob/master/50_Data/mhlw_houdou.csv

Endpont: https://covid19-rader-for-japan.appspot.com/api/v2/news

// $ curl https://covid19-rader-for-japan.appspot.com/api/v2/news
// or at local
$ curl https://localhost:5000/api/v2/news

Response:

[
    {                                                      
        "date":"20200116",                                              // 日付
        "title":"新型コロナウイルスに関連した肺炎の患者の発生について(1例目)",  // タイトル
        "link":"https://www.mhlw.go.jp/stf/newpage_08906.html",         // URL
        "pre":"神奈川",                                                  // 都道府県名
        "resident":"日本"                                               // 国名
    },
    {
        "date":"20200124",
        "title":"新型コロナウイルスに関連した肺炎の患者の発生について(2例目)",
        "link":"https://www.mhlw.go.jp/stf/newpage_09079.html",
        "pre":"神奈川",
        "resident":"日本"
    },
...
]

6. Summary Data

Dataset

https://github.com/swsoyee/2019-ncov-japan/blob/master/50_Data/MHLW/summary.csv

Endpont: https://covid19-rader-for-japan.appspot.com/api/v2/summary

// $ curl https://covid19-rader-for-japan.appspot.com/api/v2/summary
// or at local
$ curl https://localhost:5000/api/v2/summary

Response:

[
    {
        "date":"20200205",          // 日付
        "prefecture":"クルーズ船",    // 都道府県
        "positives":"10",           // 陽性者数
        "pcrs":"31",                // 検査人数
        "hospitals":"",             // 入院者数
        "severes":"",               // 重症者数
        "discharges":"",            // 退院者数
        "deaths":"0",               // 死亡者数
        "checking":"",              // 確認中
        "class":"3"                 // 分類
    },
...
]

7. World Summary Data

Dataset

https://github.com/swsoyee/2019-ncov-japan/blob/master/FIND/worldSummary.csv

Endpont: https://covid19-rader-for-japan.appspot.com/api/v2/world_summary

// $ curl https://covid19-rader-for-japan.appspot.com/api/v2/world_summary
// or at local
$ curl https://localhost:5000/api/v2/world_summary

Response:

[
    {
        "date":"20200224",          // 日付
        "update":"34",              // 
        "cases":"1",                // 件数
        "new_cases":"1",            // 新規件数
        "deaths":"0",               // 死亡者数
        "country":"Afghanistan",    // 国名
        "last_update":"",           // 
        "population":"38928000",    // 人口
        "casesPer100k":"0",         // 10万人あたりの件数割合
        "new_tests":"",             // 新規検査人数
        "tests_cumulative":"",      // 累計検査人数
        "testsPer100k":"",          // 10万人あたりの検査人数割合
        "positiveRate":""           // 陽性者率
    },

...
]

Data Sources

How to contribute

Rule of branch

Please pull-request to development branch only. Don't pull-request to master and staging branch.

If you send pull-request, please follow the roles below.

  1. function addition: feature/#{ISSUE_ID}-#{branch_title_name}
  2. hotfix: hotfix/#{ISSUE_ID}-#{branch_title_name}

Basic branch

purpose branch remarks
Development development base branch. Basically send a Pull Request here
Staging staging For final confirmation before production. Non-admin pull requests are forbidden
Production master Non-admin pull requests are forbidden

Contributers

inductor mattn Yoshiteru Nagata otokunaga

covid19-rader-for-japan-api's People

Contributors

mattn avatar rstokunaga avatar ruihirano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

covid19-rader-for-japan-api's Issues

api/v1/patientsで取得できるデータにCSVの見出し行が含まれてます

{"id":"コード,発表日,ソース,都道府県,居住地,年齢,性別,属性,県内No.,渡航・接触歴,詳細(渡航先、接触者、関与クラスター),ID,確定診断日,発症日,"症状(0:無症状,1:軽症・中等症,2:重症(ICU、人工呼吸器),3:検査時無症状)",死亡/退院日,コメント,"転帰(1:退院,2:死亡)",転帰ソース,コメント_1,推定感染日","date":"","prefecture":"","residence":"","age":"","sex":"","attribute":"","prefecture_number":"","travel_or_contact":"","detail":"","src":"","onset":"","symptom":"","death_or_discharge_date":"","comment1":"","comment2":"","outcome":"","outcome_src":""},

上記のようなデータが現在APIで取得したデータに含まれてしまっているようです。
上記修正のためのPR作成して送らせてもらいました。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.