LAPIS API

Health / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)

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

LAPIS data via REST API

Example Response

JSON 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

Request
const url = "https://cov-spectrum.ethz.ch/public";
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

Empty result set Filter values may be misspelled or the combination returns no matching sequences
Check spelling of country names (e.g., "United States" vs "USA") and verify date formats are YYYY-MM-DD.
400 Bad Request Invalid query parameter name or unsupported field combination
Refer to the LAPIS documentation for supported filter fields and valid values.
Slow response / timeout Large unfiltered queries on millions of sequences can be slow
Always add at least one filter (e.g., date range or country) to reduce the result size.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

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

Related Tags

Similar APIs

View All →