Virus

Get a SARS-CoV-2 protein data package by protein name

Changed on

Download a SARS-CoV-2 protein data package including sequence, annotation, BioSample data and a detailed data report by protein name.

get/virus/taxon/sars2/protein/{proteins}/download

Request

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

Path parameters

proteinsstring[] required

One or more SARS-CoV-2 protein names

Query parameters

refseq_onlyboolean

If true, limit results to RefSeq genomes.

annotated_onlyboolean

If true, limit results to annotated genomes.

released_sincestring date-time
updated_sincestring date-time
hoststring

Limit to genomes isolated from the specified host species (NCBI Taxonomy ID, common or scientific name).

pangolin_classificationstring

Limit to SARS-CoV-2 genomes with the specified Pango lineage.

geo_locationstring

Limit to genomes collected from the specififed geographic location.

usa_statestring

Limit to genomes collected from the specified U.S. state (two-letter abbreviation).

complete_onlyboolean

Limit to genomes designated as complete, as defined by the submitter.

include_sequenceV2ViralSequenceType[]

Specify which sequence files to include in the data package.

aux_reportV2VirusDatasetReportType[]

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.

filenamestring

Output file name.

Response

A successful response

Changes

    • breaking

      removed the enum value BIOSAMPLE from the property items/ of the query request parameter include_sequence

    • breaking

      removed the media type application/json for the response with the status

    • info

      added the new optional query request parameter pangolin_classification

    • info

      added the new optional query request parameter usa_state

    • info

      added the media type text/plain for the response with the status