/worldometers

Unofficial API from worldometers.info to get coronavirus real-time data

Primary LanguagePythonMIT LicenseMIT

Worldometers 🦠

Unofficial API from worldometers.info to get coronavirus real-time data

PyPI version PyPI version PyPI version

Features | Usage | Installation | License | Contact | My Portfolio

Features

  • 🔁 Data update every minute
  • 🌎 Get information on every country in the world
  • ⌛ API fast with < 200ms
  • ☕️ Simple data and simple to use
  • 🔗 Available on RapidAPI

Usage

GET /coronavirus/all

Get all data in real time about coronavirus ranked by country and world from worldometers

Endpoint : https://worldometer.herokuapp.com/api/coronavirus/all/

Response
{
  "data": [
    {
      "Active Cases": "7,501,542",
      "Country": "World",
      "Critical": "63,266",
      "Deaths/1M pop": "126.4",
      "New Cases": "+220,608",
      "New Deaths": "+3,943",
      "New Recovered": "+149,408",
      "Population": "",
      "Region": "All",
      "Tests/1M pop": "",
      "Total Cases": "32,306,913",
      "Total Cases/1M pop": "4,145",
      "Total Deaths": "985,224",
      "Total Recovered": "23,820,147",
      "Total Tests": "",
      "place": ""
    },
    {
      "Active Cases": "2,539,168",
      "Country": "USA",
      "Critical": "14,090",
      "Deaths/1M pop": "625",
      "New Cases": "+20,681",
      "New Deaths": "+489",
      "New Recovered": "+15,077",
      "Population": "331,452,210",
      "Region": "NorthAmerica",
      "Tests/1M pop": "305,237",
      "Total Cases": "7,160,234",
      "Total Cases/1M pop": "21,603",
      "Total Deaths": "207,082",
      "Total Recovered": "4,413,984",
      "Total Tests": "101,171,573",
      "place": "1"
    },
    {...}
  ],
  "last_update": "2020-09-24 19:00:44"
}

GET /coronavirus/world

Get all data in real time about coronavirus of the world from worldometers

Endpoint : https://worldometer.herokuapp.com/api/coronavirus/world/

Response
{
  "data": {
    "Active Cases": "7,494,048",
    "Country": "World",
    "Critical": "63,266",
    "Deaths/1M pop": "126.4",
    "New Cases": "+212,867",
    "New Deaths": "+3,696",
    "New Recovered": "+149,408",
    "Population": "",
    "Region": "All",
    "Tests/1M pop": "",
    "Total Cases": "32,299,172",
    "Total Cases/1M pop": "4,144",
    "Total Deaths": "984,977",
    "Total Recovered": "23,820,147",
    "Total Tests": "",
    "place": ""
  },
  "last_update": "2020-09-24 18:49:43"
}

GET /coronavirus/country/{country}

Get all data in real time about coronavirus from one country from worldometers

Endpoint : https://worldometer.herokuapp.com/api/coronavirus/country/{country}

Response
{
  "data": {
    "Active Cases": "371,313",
    "Country": "France",
    "Critical": "1,048",
    "Deaths/1M pop": "483",
    "New Cases": "+16,096",
    "New Deaths": "+52",
    "New Recovered": "+875",
    "Population": "65,307,193",
    "Region": "Europe",
    "Tests/1M pop": "153,664",
    "Total Cases": "497,237",
    "Total Cases/1M pop": "7,614",
    "Total Deaths": "31,511",
    "Total Recovered": "94,413",
    "Total Tests": "10,035,395",
    "place": "11"
  },
  "last_update": "2020-09-24 19:00:44"
}

Installation

# Clone the repository
$ git clone https://github.com/ronanren/worldometers

# Go to the folder
$ cd worldometers

# Install all dependencies
$ pip install -r requirements.txt

# Start web server
$ python run.py

License

MIT

Contact

Twitter : @Ronanren