Covid-19 India API

Free to Use
62 C
Measured Score 0 50 100 Speed 21/30 Consistency 13/20 Security 20/20 Browser access 0/15 Transparency 8/15 TESTED 2026-08-10

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.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://data.covid19india.org/v4/min/data.min.json
Result
HTTP 200 · application/json · 257,540 bytes · compressed
Response time
130 ms (median of 3) · fastest 113 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
Browser CORS
No Access-Control-Allow-Origin header — call it from a server, not the browser
Served by
hcdn
Recorded
2026-08-10

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

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

Captured Response

Captured from a real request to https://data.covid19india.org/v4/min/data.min.json on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "AN": {
    "delta": {
      "tested": 1376,
      "vaccinated1": 3,
      "vaccinated2": 13
    },
    "delta21_14": {
      "confirmed": 9
    },
    "delta7": {
      "confirmed": 3,
      "recovered": 5,
      "tested": 8936,
      "vaccinated1": 884,
      "vaccinated2": 10640
    },
    "districts": {
      "Nicobars": {
        "…": "(3 more fields)"
      },
      "North and Middle Andaman": {
        "…": "(4 more fields)"
      },
      "South Andaman": {
        "…": "(4 more fields)"
      },
      "Unknown": {
        "…": "(3 more fields)"
      }
    },
    "meta": {
      "date": "2021-10-31",
      "last_updated": "2021-11-01T11:03:10+05:30",
      "population": 397000,
      "tested": {
        "…": "(2 more fields)"
      },
      "vaccinated": {
        "…": "(1 more fields)"
      }
    },
    "total": {
      "confirmed": 7651,
      "deceased": 129,
      "recovered": 7518,
      "tested": 598033,
      "vaccinated1": 294001,
      "vaccinated2": 200157
    }
  },
  "AP": {
    "delta": {
      "confirmed": 385,
      "deceased": 4,
      "recovered": 675,
      "tested": 39848,
      "vaccinated1": 20497,
      "vaccinated2": 24137
    },
    "delta21_14": {
      "confirmed": 3220
    },
    "delta7": {
      "confirmed": 2873,
      "deceased": 30,
      "recovered": 3590,
      "tested": 254532,
      "vaccinated1": 1223010,
      "vaccinated2": 1
…

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://data.covid19india.org/v4/min/data.min.json";
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.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 21/30
Consistency 13/20
Security 20/20
Browser access 0/15
Transparency 8/15
Endpoint Response Time 130ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Health
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →