Virus

Get a virus genome data package

Changed on

Download a virus genome data package including sequence, annotation, BioSample data and a detailed data report by nucleotide accession.

post/virus/genome/download

Request

  • Base URL
    https://api.ncbi.nlm.nih.gov/datasets/v2
  • Auth
    API key in header api-key

Query parameters

filenamestring

Output file name.

Request body

accessionsstring[]
taxonstring
taxonsstring[]
refseq_onlyboolean
annotated_onlyboolean
released_sincestring date-time
updated_sincestring date-time
hoststring
pangolin_classificationstring
geo_locationstring
usa_statestring
complete_onlyboolean
table_fieldsV2VirusTableField[]
include_sequenceV2ViralSequenceType[]
aux_reportV2VirusDatasetReportType[]
format'tsv' | 'csv' | 'jsonl'
use_psgboolean

Response

A successful response

Changes

    • breaking

      removed the enum value BIOSAMPLE of the request property /

    • info

      the request property default value DATASET_REPORT was added

    • info

      the request property default value GENOME was added

    • info

      the request property default value unspecified was added

    • info

      the request property default value tsv was added