Gene

Get a gene data package by GeneID

Changed on

Download a gene data package including sequence, annotation and data reports, as a compressed zip archive, by GeneID.

get/gene/id/{gene_ids}/download

Request

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

Path parameters

gene_idsinteger[] required

One or more NCBI GeneIDs

Query parameters

include_annotation_typeV2Fasta[]

Specify which sequence files to include in the data package.

accession_filterstring[]

Limit the contents of the sequence files and tabular product report to the specified RNA and protein accessions

aux_reportV2GeneDatasetRequestGeneDatasetReportType[]

Specify additional report files to include in the data package. The gene data report is always included, and its inclusion is not affected by this parameter.

tabular_reportsV2GeneDatasetRequestGeneDatasetReportType[]

Specify which tabular report files to include in the data package.

filenamestring

Output file name.

Response

A successful response

Changes

    • warning

      deleted the query request parameter fasta_filter

    • warning

      deleted the query request parameter table_fields

    • warning

      deleted the query request parameter table_report_type

    • breaking

      for the query request parameter table_report_type, default value DATASET_REPORT was added