Covid Tracking Project API

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

Overview

The Covid Tracking Project API provides historical US Covid-19 data including tests, hospitalizations, and deaths at the state and national level. It is completely free with no API key required and returns data in JSON or CSV format. This is a great beginner API for practicing data analysis, building charts, or learning to work with time-series health data.

💡

Beginner Tip

Note that the Covid Tracking Project stopped collecting data on March 7, 2021 — this API is a historical archive and will not return new data, making it ideal for data analysis exercises without worrying about live data freshness.

Available Data

track name and artist
album metadata
audio preview URLs
popularity score
genre classification
case counts and statistics

Example Response

JSON Response
{
  "name": "Bohemian Rhapsody",
  "artist": "Queen",
  "album": "A Night at the Opera",
  "duration_ms": 354000,
  "popularity": 92,
  "preview_url": "https://p.scdn.co/mp3-preview/..."
}

Field Reference

date Date in YYYYMMDD integer format (e.g. 20210307 for March 7, 2021).
states Number of US states and territories that reported data on this date.
positive Cumulative total of confirmed positive Covid-19 cases.
hospitalizedCurrently Number of people currently hospitalized with Covid-19 on this date.
death Cumulative total of deaths attributed to Covid-19.
totalTestResults Cumulative total of Covid-19 tests conducted.

Implementation Example

const url = "https://covidtracking.com/data/api/version-2";
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

Data appears frozen at March 2021 The Covid Tracking Project officially ended data collection on March 7, 2021.
This is expected behavior — the API is a historical dataset. For current data, use the CDC or state health department APIs.
404 Not Found for state endpoint The two-letter state code may be incorrect or uppercased differently than expected.
Use lowercase two-letter state codes in the URL, for example /v2/states/ca/daily.json for California.
Null values in response fields Some states did not report certain metrics (like ICU counts) consistently throughout the pandemic.
Handle null values in your code with fallback logic, as not all fields are guaranteed to be populated for every date.

Matrix Score Breakdown

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

Fully tested on Apr 5, 2026

Technical Specifications

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

Similar APIs

View All →