Get a virus data report by taxon
Changed onGet a virus data report by taxon. By default, in paged JSON format, but also available in tabular (accept: text/tab-separated-values) or JSON Lines (accept: application/x-ndjson) formats.
Request
- Base URLhttps://api.ncbi.nlm.nih.gov/datasets/v2
- AuthAPI key in header api-key
Path parameters
NCBI Taxonomy ID or name (common or scientific) at any taxonomic rank
Query parameters
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.
Return complete virus reports or nucleotide accessions only
Specify which fields to include in the tabular report
The maximum number of virus data reports to return. Default is 20 and maximum is 1000. If the number of results exceeds the page size, page_token can be used to retrieve the remaining results.
A page token is returned when the results count exceeds page size. Use this token along with previous request parameters to retrieve the next page of results. When page_token is empty, all results have been retrieved.
Response
A successful response
Changes
- breaking
for the
queryrequest parameterreturned_content, default valueCOMPLETEwas added - info
the
response's property default valueUNKNOWNwas added for the status (media type: application/json) - info
the
response's property default valueUNKNOWNwas added for the status (media type: application/x-ndjson) - info
the
response's property default valuenonewas added for the status (media type: application/json) - info
the
response's property default valuenonewas added for the status (media type: application/x-ndjson) - info
the
response's property default valuePURPOSE_OF_SAMPLING_UNKNOWNwas added for the status (media type: application/json) - info
the
response's property default valuePURPOSE_OF_SAMPLING_UNKNOWNwas added for the status (media type: application/x-ndjson)
- breaking
- breaking
for the
queryrequest parameterreturned_content, default valueCOMPLETEwas removed - info
added the optional property
//to the response with the status (media type: application/json) - info
added the optional property
//to the response with the status (media type: application/x-ndjson) - info
the
response's property default valueUNKNOWNwas removed for the status (media type: application/json) - info
the
response's property default valueUNKNOWNwas removed for the status (media type: application/x-ndjson) - info
the
response's property default valuenonewas removed for the status (media type: application/json) - info
the
response's property default valuenonewas removed for the status (media type: application/x-ndjson) - info
the
response's property default valuePURPOSE_OF_SAMPLING_UNKNOWNwas removed for the status (media type: application/json) - info
the
response's property default valuePURPOSE_OF_SAMPLING_UNKNOWNwas removed for the status (media type: application/x-ndjson)
- breaking