Get a virus genome data package by nucleotide accession
Changed onDownload a virus genome data package including sequence, annotation, BioSample data and a detailed data report by nucleotide accession.
Request
- Base URLhttps://api.ncbi.nlm.nih.gov/datasets/v2
- AuthAPI key in header api-key
Path parameters
One or more nucleotide sequence accessions
Query parameters
NCBI Taxonomy IDs or names (common or scientific) at any taxonomic rank
If true, limit results to RefSeq genomes.
If true, limit results to annotated genomes.
Limit to genomes isolated from the specified host species (NCBI Taxonomy ID, common or scientific name).
Limit to SARS-CoV-2 genomes from the specified Pango lineage.
Limit to genomes collected from the specified geographic location.
Limit to genomes collected from the specified U.S. state (two-letter abbreviation).
Limit to genomes designated as complete, as defined by the submitter.
Specify which sequence files to include in the data package.
Specify which report files to include in the data package. The virus data report is always included, and its inclusion is not affected by this parameter.
Experimental approach to retrieving sequence data.
Output file name.
Response
A successful response
Changes
- breaking
removed the enum value
BIOSAMPLEfrom the propertyitems/of thequeryrequest parameterinclude_sequence
- breaking
- breaking
removed the media type
application/jsonfor the response with the status - info
added the new optional
queryrequest parametertaxons - info
added the new optional
queryrequest parameterusa_state - info
added the media type
text/plainfor the response with the status
- breaking