National Institutes of Health (NIH) Virus API

#### Options to download virus genome data, including the associated sequence and metadata. These virus services allow you to get virus genome metadata as a data report or download genome and protein sequence, and metadata, as a virus data package, for virus GenBank genomes.

Operations 19

GET /virus/taxon/{taxon}/genome Get a download summary of a virus genome data package by taxon #
POST /virus/genome Get a download summary of a virus genome data package #
GET /virus/taxon/sars2/protein/{proteins} Get a download summary of a SARS-CoV-2 protein data package by protein name #
POST /virus/taxon/sars2/protein Get a download summary of a SARS-CoV-2 protein data package by protein name #
GET /virus/taxon/{taxon}/genome/table Get virus genome metadata in a tabular format #
GET /virus/taxon/sars2/protein/{proteins}/table Get SARS-CoV-2 protein metadata in a tabular format by protein name #
GET /virus/taxon/{taxon}/dataset_report Get a virus data report by taxon #
GET /virus/accession/{accessions}/dataset_report Get a virus data report by nucleotide accession #
POST /virus Get a virus data report #
GET /virus/taxon/{taxon}/annotation_report Get a virus annotation report by taxon #
GET /virus/accession/{accessions}/annotation_report Get a virus annotation report by nucleotide accession #
POST /virus/annotation_report Get a virus annotation report #
GET /virus/accession/{accessions}/check Check the validity of a virus genome nucleotide accession #
POST /virus/check Check the validity of a virus genome nucleotide accession #
GET /virus/taxon/{taxon}/genome/download Get a virus genome data package by taxon #
GET /virus/accession/{accessions}/genome/download Get a virus genome data package by nucleotide accession #
POST /virus/genome/download Get a virus genome data package #
GET /virus/taxon/sars2/protein/{proteins}/download Get a SARS-CoV-2 protein data package by protein name #
POST /virus/taxon/sars2/protein/download Get a SARS-CoV-2 protein data package #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nih-virus-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nih-virus-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NCBI Datasets Virus API
  version: v2
  description: '### NCBI Datasets is a resource that lets you easily gather data from NCBI.

    The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability.'
servers:
- url: https://api.ncbi.nlm.nih.gov/datasets/v2
security:
- ApiKeyAuthHeader: []
tags:


# --- truncated at 32 KB (103 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/nih/refs/heads/main/openapi/nih-virus-api-openapi.yml