Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

National Center for Biotechnology Information (NCBI) 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.

National Center for Biotechnology Information (NCBI) Virus API is one of 14 APIs that National Center for Biotechnology Information (NCBI) publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Virus. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and rate-limit docs.

This API exposes 19 operations across 19 paths, and defines 51 schemas. It is described by OpenAPI 3.0.1, at version v2.

Requests are made against a single base URL, https://api.ncbi.nlm.nih.gov/datasets/v2.

19 operations 19 paths 51 schemas 12 GET7 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
v2
Base URL
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

National Center for Biotechnology Information (NCBI) Virus API declares 2 security schemes for authenticating requests. An API key is passed in the query as api_key (ApiKeyAuth). An API key is passed in the header as api-key (ApiKeyAuthHeader). By default, every request must be authenticated.

Paths & Operations 19

Across 19 paths, the API surfaces 19 operations — 12 GET, 7 POST. Each is listed below with its method, path, parameters, and response codes.

Virus 19

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 gen…

GET
/virus/taxon/{taxon}/genome
Get a download summary of a virus genome data package by taxon
virus_genome_summary 13 params → default200
POST
/virus/genome
Get a download summary of a virus genome data package
virus_genome_summary_by_post body → default200
GET
/virus/taxon/sars2/protein/{proteins}
Get a download summary of a SARS-CoV-2 protein data package by protein name
sars2_protein_summary 12 params → default200
POST
/virus/taxon/sars2/protein
Get a download summary of a SARS-CoV-2 protein data package by protein name
sars2_protein_summary_by_post body → default200
GET
/virus/taxon/{taxon}/genome/tabledeprecated
Get virus genome metadata in a tabular format
virus_genome_table 15 params → default200
GET
/virus/taxon/sars2/protein/{proteins}/table
Get SARS-CoV-2 protein metadata in a tabular format by protein name
sars2_protein_table 12 params → default200
GET
/virus/taxon/{taxon}/dataset_report
Get a virus data report by taxon
virus_reports_by_taxon 14 params → default200
GET
/virus/accession/{accessions}/dataset_report
Get a virus data report by nucleotide accession
virus_reports_by_acessions 14 params → default200
POST
/virus
Get a virus data report
virus_reports_by_post body → default200
GET
/virus/taxon/{taxon}/annotation_report
Get a virus annotation report by taxon
virus_annotation_reports_by_taxon 13 params → default200
GET
/virus/accession/{accessions}/annotation_report
Get a virus annotation report by nucleotide accession
virus_annotation_reports_by_acessions 13 params → default200
POST
/virus/annotation_report
Get a virus annotation report
virus_annotation_reports_by_post body → default200
GET
/virus/accession/{accessions}/check
Check the validity of a virus genome nucleotide accession
virus_accession_availability 1 param → default200
POST
/virus/check
Check the validity of a virus genome nucleotide accession
virus_accession_availability_post body → default200
GET
/virus/taxon/{taxon}/genome/download
Get a virus genome data package by taxon
virus_genome_download 14 params → default200
GET
/virus/accession/{accessions}/genome/download
Get a virus genome data package by nucleotide accession
virus_genome_download_accession 15 params → default200
POST
/virus/genome/download
Get a virus genome data package
virus_genome_download_post 1 param body → default200
GET
/virus/taxon/sars2/protein/{proteins}/download
Get a SARS-CoV-2 protein data package by protein name
sars2_protein_download 13 params → default200
POST
/virus/taxon/sars2/protein/download
Get a SARS-CoV-2 protein data package
sars2_protein_download_post 1 param body → default200

Schemas 51

The contract defines 51 schemas that model the data the API accepts and returns. The most detailed are v2reportsVirusAssembly (27 properties), v2VirusDatasetRequest (17 properties), v2Sars2ProteinDatasetRequest (14 properties), v2VirusAnnotationFilter (12 properties). Each schema is shown below with its type and property counts.

v2reportsInfraspecificNames
object
6 properties
v2reportsConservedDomain
object
3 properties
v2reportsVirusDataReportPage
object
3 properties
v2reportsPurposeOfSampling
string
v2DownloadSummaryDehydrated
object
4 properties
v2reportsWarning
object
5 properties
v2reportsOrientation
string
v2reportsVirusAssemblyCollectionLocation
object
3 properties
v2reportsWarningReplacedId
object
2 properties
v2DownloadSummaryFileSummary
object
2 properties
v2VirusAvailability
object
3 properties
v2reportsErrorGeneErrorCode
string
v2reportsVirusAssemblySubmitterInfo
object
3 properties
v2reportsOrganism
object
8 properties
v2TableFormat
string
v2reportsVirusGene
object
4 properties
v2DownloadSummaryAvailableFiles
object
9 properties
v2VirusDatasetRequest
object
17 properties
v2reportsVirusAssemblyCompleteness
string
v2VirusDatasetReportType
string
v2DownloadSummary
object
8 properties
v2VirusDataReportRequestContentType
string
v2reportsErrorAssemblyErrorCode
string
v2TabularOutput
object
1 property
v2ViralSequenceType
string
v2reportsRange
object
5 properties
v2reportsErrorVirusErrorCode
string
v2Sars2ProteinDatasetRequest
object
14 properties
v2reportsErrorTaxonomyErrorCode
string
v2reportsVirusPeptideUniProtId
object
2 properties
v2reportsVirusPeptideViralPeptideCompleteness
string
rpcStatus
object
3 properties
v2reportsError
object
8 properties
v2VirusDataReportRequest
object
6 properties
v2reportsVirusAnnotationReport
object
3 properties
v2reportsVirusAssembly
object
27 properties
v2reportsVirusPeptide
object
10 properties
v2DownloadSummaryHydrated
object
3 properties
v2VirusAnnotationFilter
object
12 properties
v2reportsIsolate
object
3 properties
v2reportsLineageOrganism
object
2 properties
v2reportsVirusAnnotationReportPage
object
3 properties
v2reportsMessage
object
2 properties
v2VirusAvailabilityRequest
object
1 property
v2reportsWarningGeneWarningCode
string
v2reportsErrorOrganelleErrorCode
string
v2VirusTableField
string
v2reportsSeqRangeSetFasta
object
5 properties
protobufAny
object
2 properties
v2VirusDatasetFilter
object
12 properties
v2VirusAnnotationReportRequest
object
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ncbi-virus-api-openapi.yml Raw ↑

Other APIs National Center for Biotechnology Information (NCBI) publishes across the network.

NCBI Entrez E-utilities API
NCBI BLAST URL API
PubChem PUG REST API
PMC Open Access API (OA Service)
PMC ID Converter API
PMC OAI-PMH Service
National Center for Biotechnology Information (NCBI) BioSample API
National Center for Biotechnology Information (NCBI) Gene API
National Center for Biotechnology Information (NCBI) Genome API
National Center for Biotechnology Information (NCBI) Organelle API
National Center for Biotechnology Information (NCBI) Prokaryote API
National Center for Biotechnology Information (NCBI) Taxonomy API