Overview
LAPIS (Lightweight API for Sequences) provides open access to SARS-CoV-2 genomic sequence data collected from public databases worldwide. It lets you query, filter, and aggregate thousands of viral genome sequences without any authentication. This is ideal for researchers and developers building COVID-19 genomic surveillance tools.
Beginner Tip
Use the /sample/aggregated endpoint with simple filters like country or date to explore the data before diving into raw sequence queries.
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.
{
"status": "success",
"data": {
"result": "Data from LAPIS",
"description": "SARS-CoV-2 genomic sequences from public sources",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
count Number of sequences matching the query filters. date Sample collection date in YYYY-MM-DD format. country Country where the sample was collected. pangoLineage Pango lineage designation of the viral variant (e.g., BA.2, XBB.1.5). division Sub-national region or state where the sample was collected. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://lapis.cov-spectrum.org/open/v2/sample/aggregated?country=USA&dateTo=2022-01-01&fields=date,country";
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
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.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
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 Tracking Project
⭐ Beginner's PickThe Covid Tracking Project API provides historical US Covid-19 data including tests, hospitalizations, and deaths at the state and national level.
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.
Infermedica
Infermedica is an AI-powered health API that analyzes symptom descriptions in plain text and suggests possible conditions or next steps.