covid19
JSON time-series of coronavirus cases (confirmed, deaths and recovered) per country - updated daily
Top Related Projects
Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE
Data on COVID-19 (coronavirus) cases, deaths, hospitalizations, tests • All countries • Updated daily by Our World in Data
COVID-19 App
Coronavirus tracker app for iOS & macOS with maps & charts
Tracking the impact of COVID-19 in India
Quick Overview
The pomber/covid19 repository is a JSON time-series of coronavirus cases by country, updated daily. It provides a simple and accessible way to track the progression of COVID-19 cases across different countries over time, making it useful for data analysis, visualization, and research purposes.
Pros
- Regularly updated with daily data
- Easy-to-use JSON format
- Covers a wide range of countries
- Data sourced from reliable sources (Johns Hopkins University Center for Systems Science and Engineering)
Cons
- Limited to confirmed cases, deaths, and recovered numbers
- May not include detailed regional or city-level data
- Potential for delays in data updates depending on source reporting
- Does not include additional contextual information (e.g., testing rates, population demographics)
Code Examples
// Fetch the latest COVID-19 data
fetch("https://pomber.github.io/covid19/timeseries.json")
.then(response => response.json())
.then(data => {
console.log(data["US"]);
});
# Plot COVID-19 cases for a specific country
import requests
import matplotlib.pyplot as plt
data = requests.get("https://pomber.github.io/covid19/timeseries.json").json()
country_data = data["Italy"]
dates = [entry["date"] for entry in country_data]
confirmed_cases = [entry["confirmed"] for entry in country_data]
plt.plot(dates, confirmed_cases)
plt.title("COVID-19 Confirmed Cases in Italy")
plt.xlabel("Date")
plt.ylabel("Confirmed Cases")
plt.show()
# Calculate daily new cases for a country
library(jsonlite)
library(dplyr)
data <- fromJSON("https://pomber.github.io/covid19/timeseries.json")
uk_data <- data$UK %>%
mutate(new_cases = confirmed - lag(confirmed, default = first(confirmed)))
print(uk_data)
Getting Started
To use the COVID-19 data in your project:
- Make a GET request to
https://pomber.github.io/covid19/timeseries.json
- Parse the JSON response
- Access country data using country names as keys
Example in JavaScript:
async function getCOVIDData() {
const response = await fetch("https://pomber.github.io/covid19/timeseries.json");
const data = await response.json();
return data;
}
getCOVIDData().then(data => {
const usData = data["US"];
console.log("Latest US data:", usData[usData.length - 1]);
});
Competitor Comparisons
Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE
Pros of COVID-19
- More comprehensive dataset, including global and US-specific data
- Regularly updated by Johns Hopkins University, a trusted source
- Includes additional data points like recovered cases and testing rates
Cons of COVID-19
- Raw data format requires more processing for immediate use
- Larger file sizes due to comprehensive nature
- May be overwhelming for users seeking simple, straightforward data
Code Comparison
COVID-19 data format (CSV):
Province/State,Country/Region,Lat,Long,Date,Confirmed,Deaths,Recovered
New York,US,40.7128,-74.0060,2023-04-15,1234567,98765,1111111
covid19 data format (JSON):
{
"US": [
{
"date": "2023-04-15",
"confirmed": 1234567,
"deaths": 98765,
"recovered": 1111111
}
]
}
The COVID-19 repository provides raw CSV data, while covid19 offers pre-processed JSON data, making it easier to integrate into web applications. However, COVID-19's format allows for more detailed geographical information.
Data on COVID-19 (coronavirus) cases, deaths, hospitalizations, tests • All countries • Updated daily by Our World in Data
Pros of covid-19-data
- More comprehensive dataset, including vaccination data and additional metrics
- Regularly updated with daily frequency
- Includes data visualization tools and pre-made charts
Cons of covid-19-data
- Larger file size and more complex structure
- May require more processing for simple use cases
- Steeper learning curve for data manipulation
Code Comparison
covid-19-data:
import pandas as pd
df = pd.read_csv('https://covid.ourworldindata.org/data/owid-covid-data.csv')
country_data = df[df['location'] == 'United States']
print(country_data[['date', 'total_cases', 'new_cases', 'total_deaths']])
covid19:
import requests
import json
url = 'https://pomber.github.io/covid19/timeseries.json'
response = json.loads(requests.get(url).text)
us_data = response['US']
print(us_data)
The covid-19-data repository offers a more extensive dataset with additional features, making it suitable for complex analyses. However, covid19 provides a simpler JSON structure that may be easier to work with for basic use cases. Both repositories offer valuable COVID-19 data, but users should choose based on their specific needs and data processing capabilities.
COVID-19 App
Pros of app
- Official WHO repository, likely more authoritative and reliable
- Broader scope, covering general health information beyond COVID-19
- Multi-platform support (iOS, Android, Web) for wider accessibility
Cons of app
- Less frequently updated compared to covid19
- More complex codebase, potentially harder for contributors to get started
- Focuses on general health information, may lack detailed COVID-19 statistics
Code Comparison
app (React Native):
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<Text>WHO Health Alert</Text>
</View>
);
}
covid19 (JavaScript):
const fs = require("fs");
const fetch = require("node-fetch");
const ENDPOINT = "https://pomber.github.io/covid19/timeseries.json";
async function getData() {
const response = await fetch(ENDPOINT);
const data = await response.json();
return data;
}
The app repository uses React Native for cross-platform mobile development, while covid19 is a simpler JavaScript project focused on data retrieval and processing. The covid19 repository is more specialized for COVID-19 data, making it easier to use for specific pandemic-related projects, while app provides a more comprehensive health information platform.
Coronavirus tracker app for iOS & macOS with maps & charts
Pros of CoronaTracker
- Provides a native iOS app for tracking COVID-19 data
- Offers a more user-friendly interface with visualizations and charts
- Includes additional features like news updates and prevention tips
Cons of CoronaTracker
- Limited to iOS platform, reducing accessibility for non-Apple users
- May require more frequent updates to maintain app functionality
- Potentially slower data updates compared to the simpler API approach
Code Comparison
CoronaTracker (Swift):
func fetchData() {
let url = URL(string: "https://corona.lmao.ninja/v2/countries")!
URLSession.shared.dataTask(with: url) { (data, response, error) in
// Process and update UI with fetched data
}.resume()
}
covid19 (JavaScript):
const getData = async () => {
const response = await fetch("https://pomber.github.io/covid19/timeseries.json");
const data = await response.json();
return data;
};
The CoronaTracker code snippet shows data fetching for an iOS app, while the covid19 repository provides a simpler JavaScript function to retrieve data from its API. The covid19 approach is more versatile and can be easily integrated into various projects, whereas CoronaTracker's code is specific to iOS development.
Tracking the impact of COVID-19 in India
Pros of covid19india-react
- More comprehensive and detailed data specific to India
- Interactive and user-friendly interface with visualizations
- Regular updates and active community contributions
Cons of covid19india-react
- Limited to India-specific data, not suitable for global statistics
- More complex codebase due to additional features and visualizations
- Potentially higher resource usage due to React framework
Code Comparison
covid19india-react:
const [states, setStates] = useState(null);
const [stateDistrictWiseData, setStateDistrictWiseData] = useState(null);
const [fetched, setFetched] = useState(false);
useEffect(() => {
if (fetched === false) {
getStates();
}
}, [fetched]);
covid19:
const data = await fetchData();
const lastDay = data[data.length - 1];
const prevDay = data[data.length - 2];
return {
date: lastDay.date,
confirmed: lastDay.confirmed,
deaths: lastDay.deaths,
recovered: lastDay.recovered,
newConfirmed: lastDay.confirmed - prevDay.confirmed,
newDeaths: lastDay.deaths - prevDay.deaths,
newRecovered: lastDay.recovered - prevDay.recovered
};
The covid19india-react code snippet shows React hooks for state management and data fetching, while the covid19 code focuses on data processing and calculation of daily changes in statistics.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Transforms the data from CSSEGISandData/COVID-19 into a json file. Available at https://pomber.github.io/covid19/timeseries.json. Updated three times a day using GitHub Actions.
The json contains the number of Coronavirus confirmed cases, deaths, and recovered cases for every country and every day since 2020-1-22:
{
"Thailand": [
{
"date": "2020-1-22",
"confirmed": 2,
"deaths": 0,
"recovered": 0
},
{
"date": "2020-1-23",
"confirmed": 3,
"deaths": 0,
"recovered": 0
},
...
],
...
}
For example, if you want to use it from a web site:
fetch("https://pomber.github.io/covid19/timeseries.json")
.then(response => response.json())
.then(data => {
data["Argentina"].forEach(({ date, confirmed, recovered, deaths }) =>
console.log(`${date} active cases: ${confirmed - recovered - deaths}`)
);
});
Projects using this dataset (+ add yours)
APIs
- COVID-19 Grafana API (repo): JSON API to visualize stats in Grafana
- COVID-19 GraphQL API (repo)
- CovidAPI.info (repo): Lightweight, Superfast REST API built to be consumed by dashboards.
- COVID-19 Ruby Gem
Tutorials
- Build a Coronavirus web site with Next.js (repo) - How to use Next.js to build a static Coronavirus web site
- COVID-19 Datawrapper Widget With Auto Refresh: How to Import JSON Data From This API Into Google Sheets â and Create a COVID-19 Widget With Datawrapper in Less Than 5 Minutes
- The ultimate flutter tutorial for beginners: At the end of this tutorial, you will be able to develop a mobile app that fetches covid19 stats data from the server and display them in various UI widgets.
Visualizations
- Covid19 Visuals (repo): React app with Corona statistics globally and country wise.
- CoronaStats (repo): visualize time series per country
- Coronow (repo): Dashboard about COVID-19 with counters and charts
- Coronavirus-plotter (repo) :Its is web app with globe view to give all current situation with charts and animation effects.
- COVID-19-INDIA-WORLD (repo): COVID-19 Tracker build with svelte
- Plotting COVID-19 (repo): Configurable and shareable COVID-19 country comparison charts.
- YACA (repo): Yet Another Covid-19 App. Make your own graphs of COVID-19 cases. Tweakable options are: 1. select multiple countries, 2. select data (confirmed|deaths|recovered), 3. total cases vs. daily delta, 4. absolute vs. per capita numbers, 5. logarithmic vs. linear Y axis, 6. size of moving average (for daily delta), and 7. start date. Last but not least, it is possible to generate both a permalink of the configuration, and a snapshot image of the graph, handy when sharing to social media.
- COVID-19 World at a Glance! (repo): Dashboard with COVID-19 Visualization of my Country(India), World Spread Comparator and Country level details across the world.
- COVID-19 Global Report (repo): COVID-19 Global Report focus in Brazil and World. Made with Snowflake, Pentaho and Power BI.
- Corona Status Brazil - Mobile Friendly (repo): Covid-19 daily report Brazil in a mobile friendly website.
- COVID-19 Flight Info (repo): Flight and Travel info as well as other stats related to the outbreak.
- The Curve (repo): The Curve
- COVID-19 Notifier (repo): Covid-19 Daily Notifier
- COVID-19 Daily Report (repo): Covid19 Daily Report Visualizer
- Covid19 Visualizer (repo): Covid19 Graphical Visualizer
- EU stats report on COVID-19 (repo): COVID-19 tracker for EU countries
- CoronaStatistics.live (repo): COVID-19 Global Report
- COVID-19 World (repo): COVID-19 Global Report
- COVID-19 Comparator (repo): Coronavirus cases comparator by countries, from chosen date and number of days (PWA)
- Mobile Friendly COVID-19 Report (repo): Coronavirus daily report in a mobile friendly website (PWA)
- COVID-19 Daily Report (repo): Coronavirus daily report, updated hourly
- COVID-19 GLOBAL Report (repo)
- covid-charts (repo): chart widget with Coronavirus stats for specified country
- COVID-19 Global Chart (repo): Chart GeoMap with last status by country.
- COVID-19 Stats (repo): A simple mobile friendly dashboard visualizing the latest stats of the COVID-19 outbreak.
- Corona.log (repo): A simple COVID-19 data checker per region
- COVID-19 How Bad Is It (repo): Live graphs with latest news involving Covid-19,
- COVID-19 Sri Lanka Tracker (repo): Live Updates of COVID-19 Patients in Sri Lanka
- COVID-19 Countries Trends & Comparison (repo): Country comparison of COVID-19 cases, with per-capita and growth views.
- felipec covid-19 (repo): Trajectory of confirmed COVID-19 cases per country after 100 in logarithmic scale and growth factor.
- COVID-19 Global Report (repo): Vue.js app for monitoring the spread of the new coronavirus
- COVID-19 Regional Relative TimeSeries (repo): Normalized regional comparative timeseries.
- COVID-19 Country Travel Bans (repo): An interactive map showing countries with travel restrictions and infection counts.
- COVID-19 Stats and Trends (repo)
- COVID Reports (repo): Coronavirus trends comparison by country
- #daysbehinditaly (repo): Number of days various countries are behind Italy in total COVID-19 cases assuming similar case growth rate
- Covid-19 Project to track the spread of coronavirus (repo): Coronavirus information by country
- Covid-19 Progress Reports by Country (repo): Coronavirus (Fight against) Progress by country
- COVID-19-LK (repo): A Sri Lankan COVID-19 Tracker with a map and dark theme <3
- COVID-19 Tracker (repo): Novel Coronavirus COVID-19 tracking website, made simple and viewer-friendly. Spares users the clutter of long tables and offers easy-to-read charts and graphs for 215 country pages.
- COVID-19 Mauritius Statistics (repo): A simple page with stats about the current COVID-19 situation in the small island of Mauritius.
- Flattening the Curve by Country | COVID-19 ð¦ (repo): A simple dashboard to showcase flattening of the curve by each country affected with COVID-19 - plotted over time.
- World map and country comparison timeline: Select multiple countries on the map for a clean comparison of how the number of cases develop.
- COVID-19 Panel for Digital Signage (repo): Digital Signage-ready and configurable Panel with COVID-19 data.
- COVID-19 Trends (repo): Simple charts showing COVID-19 trends
- Covid-19 Race (repo) A basic html5/css/js webapp to compare the cases from a select few countries.
- COVID-19 India dashboard (repo) - A simple dashboard made with Flask specifically for India with stats of various states and predictions of what's going to happen in the next five days.
- Open COVID19 Map (repo) Open map visualization with alternative data sources, containment scores, testing rate projection, replay mode
- I am Covid -19 ð¦ (repo) - Visualization of the covid-19 dataset using Nuxtjs(vuejs), Graphql and valuable information about getting through the Covid-19 pandemic.
- Simple COVID-19 Tracker (repo): Mobile-friendly and minimal page that displays the current total count of coronavirus cases and deaths in a selected region.
- COVID-19 Report (repo): Coronavirus information by country in a mobile-friendly SPA.
- Visualizing COVID-19 with D3 (repo): A responsive D3-based data visualization that leverages a Sankey diagram to display the breakdown of the worldwide COVID-19 cases.
- Coronavirus-meter (repo): Coronavirus meter provides statistics from cases all around the world. View cases from each country up to two months before. Coronavirus cases, deaths, recovered in statistical numbers from all around the world.
- Telegram COVID-19 Monitoring: Telegram alert everyday with the statistics of COVID-19 in each country.
- Coronavirus Infections (repo): Track Coronavirus infections, deaths, recovers and active cases per country in chart and table.
- Corona in Charts (repo): Corona graphs for each country with total cases, active cases, recovered and fatalities.
- COVID-19 Monitoring And Charting(repo): World COVID-19 Tracking, historical data and overview using NodeJS Server
- COVID-19 Reaction Tracker (repo): Track user reactions across the globe
- COVID-19 Data Visualization Using R Shiny(repo): Data Summary, Data Visualization, World Map and different Analytics plots. Made in r shiny
- covid19-psvita-data: An app for viewing COVID-19 Data and graphs on a Playstation Vita
- COVID-19 Timeline: A Flutter app for tracking COVID-19 data
- COVID-19 in Numbers (repo): Covid-19 stats and charts by country. Made with Blazor.
- Corona-Virus-Numbers: Android and iOS app for visualising COVID-19 graphs developed using Flutter
- covid19liveupdates chatbot: Telegram chatbot & assistant for showing the current situation around the world
- covid-19-Bot: Vkontakte chatbot for showing the current situation around the world.
- covid-19 charts (repo): Yet another app with charts to compare the covid-19 outbreak per different countries.
- Coronavirus Map and Charts (repo): A simple Flask app that shows a map of all COVID-19 cases and charts for each individual country.
- ea-covid19-tracker (repo): keep tracking coronavirus cases around east africa community countries and discussing on platform.
- COVID-19 Spread In India Visualization (repo): How this pandemic spread in India. Visualization on Map
- LWC Component COVID19 : A LWC component that can be embedded into Account and Contact record page, which will show all COVID-19 statistics data based of Account's and Contact's respective country.
- Corona Counter (repo): Simple Corona virus counter ð¦
- Coronavirus WORLD STATISTICS: COVID-19 Stats and Charts
- Cobot-19 (repo): A Discord bot that graphs Covid-19 statistics.
- Covid19 Racing Chart (repo): Racing Chart of the cases/deaths evolution through time.
- Covid19 Visuals (repo): Global Covid19 Statistics, Visualizations (Maps, Charts, Tables) and Facts.
- corona-tracker (repo): 3D & 2D visualization of the number of cases worldwide
- COVID-19 By Country (repo): Comparison of the COVID-19 pandemic by country, weighted by population. Data series aligned by the day that the country reached the 100th case
- COVID-19 Tracker (repo): Progressive web application for tracking countries affected by the COVID-19 pandemic.
- Covids' World (repo: A version of Yakkos World. But with covid livedata. Yeah ._.
- A small COVID-19 dashboard built with Plotly Dash (repo)
- Covid-19 Chart (repo): A simple SPA web app build with Angular and Highcharts.
- covid-vue-chart (repo): A simple web site build with Vue and Axios, Apexcharts.
- COVID-19 Live Tracker (repo): A web app featuring statistics and visualizations of COVID-19 data by country.
- MEXICOVID-19 Active Cases Tracker (repo): A web app tracking Mexican cases and its comparison against other countries.
- COVID-19 Simple Dashboard (repo): Simple COVID-19 dashboard made with React and Tailwindcss
- COVID-19 data (repo): Basic website to view COVID-19 evolution daily around the world.
- Interactive charts.js visualization COVID19 (repo): Daily updated for all countries with population metrics.
- Linked COVID-19 Data (repo): Website to visualise COVID-19 from RDF.
- Interactive eCharts for all countries of the world (repo): Select from a wide range of properties for all countries of the world, data scaled by population.
- LWC Open Source COVID-19 (repo): A Node.js app that leverages Salesforce's Lightning Web Components (LWC) to show world-wide COVID-19 figures.
- COVID-19 Country-wise Infection, Recovery and Death rates (repo): COVID-19 dashboard using ReactJS, Material UI and ChartJS.
- COVID-19-Dashboard(repo): d3.js/Javascript Data visualization project to monitor the spread of COVID-19 built in d3.js and hosted on an AWS EC2. Thanks for the data!
- COVID-19 India Dashoboard (repo) : A comprehensive dashboard on spread of Covid-19 in India with district level data, and how cases in India stack up against other countries. International data from this repo and India-district level data coming from covid19india.org.
- COVID-19 ð· Data Visualizer (repo): A computer graphics project to visualize realtime covid-19 stats using JavaScript libraries - p5.js and grafica.js
- COVID-19 Nepal ð³ðµ(repo): A visualization app for iOS and android build with flutter for the covid stats in Nepal.
- Covid19-MotionMap (repo): A Python script to create a gif geo map (motion map) of Covid19 cases world wide.
- COVID-19 Dashboard (repo): COVID-19 Dashboard created using React and D3. Race Bar Chart, Historical Data and Geographical Map.
- COVID-19 Comparative (repo): Compare confirmed cases between countries around the world.
- covid19app: react native mobile app to monitor covid-19 cases.
- Covid-19 Interactive Dashboard for Bangladesh (repo): Interactive Dashboard of Bangladesh for the Covid-19 Pandemic
- Telegram bot to show COVID-19 visual graphs (repo): Telegram COVID bot is intended to provide visual statistical information about Novel Coronavirus (2019-nCoV)
- Realtime Statistical Updates on state of COVID19 in Uganda (repo): A simple dashboard with realtime statistical updates on state of COVID19 in Uganda
- Visualizing Coronavirus Deaths by Country: Video showing the increase in deaths by country by day.
- Covid-19-chart (repo): Simple graph based representation of COVID-19 cases data.
- covid-trace: Dashboard created in ReactJS with react-chartjs-2, axios and Ant Design.
- Pandemic 19 Monitor (repo): Mobile-responsive COVID-19 Monitoring Dashboard with dark theme functionality and all charts built using D3.js
Analysis
- COVID-19 Trends and Growth Rate: A Python implementation of growth rate and other trend analysis
- Are we dead yet (repo): Live graphs of confirmed, infected and infection rate. Outbreak normalised for comparison.
- epidemic-simulator (repo): Mathematical model using Macroscopic Rate Equations for simulating the future of the epidemic
- Coronavirus Cases, Deaths, and Recoveries by Country (repo) - a blog post with charts that update daily
- COVID-19 Best fit evolution Visualizing the evolution of a best-fit logistic curve over time, showing the difficulty of predicting the number of future cases and deaths
- PowerBI-driven COVID-2019 Tracking: Power BI Desktop dashboard based on JSON data about COVID-2019 spread
- COVID-19 Linear Regression Model (repo): React web application using linear regression to plot trendlines for daily case growth.
- COVID Time Series (repo): Django/Chart.js application plotting time series metrics for countries and the United States (broken down by each state)
- Coronavirus analysis from a Brazilian perspective (repo): Jupyter notebooks, consolidated free datasets for analysis of the world's coronavirus pandemic with a zoom in Brazil and its states.
- COVID-19 Extended Analitical Dashboard: Multi purposes COVID-19 analisys tool which provides various common and specific metrics in a view of 2d/3d charts with configurable options.
- CovidCubadata (repo): Various analysis comparing Cuba with the rest of the world
- Covid-19 Predictor India (Covid-19-Prediction): A web application for forecasting the number of Covid-19 cases in India (cumulative and state-wise).
- Covid-19 Pandemic Status (repo): A simple tool to track global progress in defeating Covid-19, by focusing on the rate of change in death count globally and classifying countries by associated status.
- COVID Data Explorer (repo): An R Shiny app for investigating COVID-19 data.
- COVID-19-AutoML: A Streamlit app and FastAPI for generating and visualising COVID-19 cases predictions using ML
Adding your project to the list
Pull requests adding more projects to this list are welcome, just a few rules:
- Add only open source projects
- Make sure the project cite this repo as a data source (with a link)
- Follow the same order as the rest of the list
- [project-name](your-project-url) ([repo](repo-url)): description
- Try not to add extra blank lines, it breaks the formatting
ð add a new project to the list
License
The code from this repo is MIT licensed.
The data is under CSSEGISandData/COVID-19 terms of use.
Top Related Projects
Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE
Data on COVID-19 (coronavirus) cases, deaths, hospitalizations, tests • All countries • Updated daily by Our World in Data
COVID-19 App
Coronavirus tracker app for iOS & macOS with maps & charts
Tracking the impact of COVID-19 in India
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot