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.
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://api.covidtracking.com/v2/us/daily.json?limit=5
- Result
- HTTP 200 · application/json · 424,149 bytes · compressed
- Response time
- 36 ms (median of 3) · fastest 32 ms
- Transport
- TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
- Browser CORS
- Allowed — Access-Control-Allow-Origin: *
- Served by
- cloudflare
- 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.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded 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
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://api.covidtracking.com/v2/us/daily.json?limit=5";
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.
{
"error": true,
"message": "Data not found. Note that state codes in URLs should be lower case, for example, /api/v1/states/ca/info.json instead of /api/v1/states/CA/info.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.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Coronavirus
This Coronavirus API provides the latest global Covid-19 case counts, deaths, and recoveries aggregated from public health sources.
Coronavirus in the UK
The Coronavirus in the UK API provides official UK Government data on Covid-19 cases, deaths, and vaccinations broken down by region and nation.
Covid-19
⭐ Beginner's PickThe Covid-19 API by M-Media Group provides daily case counts, deaths, and recoveries for every country in the world.
Covid-19 Datenhub
The Covid-19 Datenhub is a German ArcGIS-based platform that provides maps, datasets, and applications related to the Covid-19 pandemic.
Infermedica
Infermedica is an AI-powered health API that analyzes symptom descriptions in plain text and suggests possible conditions or next steps.