Skip to content
This repository has been archived by the owner on Dec 6, 2020. It is now read-only.
/ covid19API Public archive

get covid19 stats in Algeria using ministry of health api

Notifications You must be signed in to change notification settings

bilobom/covid19API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Descreption

gets covid19 stats in Algeria using ministry of health api

Demo:

find a demo on herrokuapp here

Dependencies

$ express

Install

$ git clone https://ghttps://github.com/bilobom/covid19API.git
$ cd covid19API
$ yarn install

Running the project

$ yarn start

API refrence:

/api/total

returns an object in the shape :

    {
        active: 1030,
        recovered: 62,
        dead: 130,
        total: 1222
    }
    

/api/province/9

returns an object in the shape :

    {
        province: {
            codeName: 9,
            french: "BLIDA",
            arabic: " البليدة"
        },
        deaths: 9,
        recovered: 27,
        activeCases: 140,
        totalConfirmedCases: 176,
        females: 92,
        males: 84,
        lastUpdated: "2020-03-25T23:00:00.000Z",
        ageStatistics: [
            {
                from: 0,
                to: 5,
                count: 2
            },
            {
                from: 5,
                to: 15,
                count: 0
            },
            {
                from: 15,
                to: 25,
                count: 11
            },
            {
                from: 25,
                to: 35,
                count: 24
            },
            {
                from: 35,
                to: 45,
                count: 22
            },
            {
                from: 45,
                to: 60,
                count: 39
            },
            {
                from: 60,
                to: 70,
                count: 36
            },
            {
                from: 70,
                to: 100,
                count: 35
            }
        ]
    }

/api/province/all

returns an array of objects in the shape :

    [
        {
            province: {
                codeName: 9,
                french: "BLIDA",
                arabic: " البليدة"
            },
            deaths: 9,
            recovered: 27,
            activeCases: 140,
            totalConfirmedCases: 176,
            females: 92,
            males: 84,
            lastUpdated: "2020-03-25T23:00:00.000Z",
            ageStatistics: [
                {
                    from: 0,
                    to: 5,
                    count: 2
                },
                {
                    from: 5,
                    to: 15,
                    count: 0
                },
                {
                    from: 15,
                    to: 25,
                    count: 11
                },
                {
                    from: 25,
                    to: 35,
                    count: 24
                },
                {
                    from: 35,
                    to: 45,
                    count: 22
                },
                {
                    from: 45,
                    to: 60,
                    count: 39
                },
                {
                    from: 60,
                    to: 70,
                    count: 36
                },
                {
                    from: 70,
                    to: 100,
                    count: 35
                }
            ]
        }, ...
    ]

About

get covid19 stats in Algeria using ministry of health api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published