Covid-19 India API

Free to Use Varies (check documentation)

Overview

The Covid-19 India API provides detailed statistics on COVID-19 cases, recoveries, deaths, and vaccinations broken down by Indian state and district. Data was sourced from official government reports and volunteer-collected datasets. It is a useful reference for data journalism, academic research, or building India-specific public health visualizations.

💡

Beginner Tip

This API is maintained by volunteers and the data collection has largely stopped as the pandemic wound down; treat it as a historical archive rather than a live data source.

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

total.confirmed Total cumulative confirmed COVID-19 cases for the region.
total.deceased Total cumulative deaths attributed to COVID-19.
total.recovered Total cumulative recovered cases.
total.vaccinated1 Total individuals who received at least one vaccine dose.
delta.confirmed New confirmed cases reported in the last 24-hour reporting cycle.

Implementation Example

const url = "https://data.covid19india.org/";
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 Not Found on some endpoints The project has been archived and some endpoint paths have been removed or renamed.
Check the official GitHub repository (https://github.com/covid19india/api) for the current list of available JSON file URLs.
CORS errors in browser Certain data files may not include CORS headers allowing cross-origin requests.
Fetch the data server-side (Node.js, Python, etc.) and serve it to your frontend, or use a CORS proxy during development.
Unexpected data gaps Some states or districts have incomplete reporting for certain date ranges.
Add null/undefined checks when iterating over district-level data, as not all keys will be present for every entry.

Matrix Score Breakdown

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

Fully tested on Apr 5, 2026

Technical Specifications

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

Similar APIs

View All →