Covid-19 Live Data API

⭐ Beginner's Pick Health / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)

Overview

The Covid-19 Live Data API provides global and country-level COVID-19 statistics including confirmed cases, deaths, and recoveries, sourced from Johns Hopkins University CSSE data. It wraps the raw data into a clean REST API with JSON responses and requires no authentication. It is a beginner-friendly choice for building dashboards or data projects.

💡

Beginner Tip

Use the /countries endpoint to get the full list of supported country slugs before querying individual country stats to avoid 404 errors from typos.

Available Data

country name and code
population
capital city
region and subregion
flag image URL
case counts and statistics

Example Response

JSON Response
{
  "name": "Japan",
  "capital": "Tokyo",
  "population": 125800000,
  "region": "Asia",
  "languages": [
    "Japanese"
  ],
  "flag": "https://flagcdn.com/jp.svg",
  "currencies": [
    {
      "code": "JPY",
      "name": "Japanese yen"
    }
  ]
}

Field Reference

countryRegion The country or region name.
confirmed Total confirmed COVID-19 cases.
deaths Total COVID-19 deaths.
recovered Total recovered COVID-19 cases.
lastUpdate Timestamp of when this entry was last refreshed.

Implementation Example

const url = "https://github.com/mathdroid/covid-19-api";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

404 for country name Country slugs must exactly match what the API expects (e.g., 'south-korea' not 'South Korea').
First call /countries to retrieve the list and use the exact name strings as path parameters.
Data not updating The upstream JHU CSSE data source was retired in 2023, so case counts are frozen at that point.
Use this API for historical reference; for current statistics, look for actively maintained alternatives.
Network timeout The community-hosted server may occasionally be slow or down.
Implement retry logic with exponential backoff and cache successful responses locally for resilience.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 20/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 71ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Health
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →