Batch Fetch Multiple Genes
mygene.genes.batchRetrieve annotation data for up to 1000 NCBI Entrez or Ensembl gene IDs in one request, returning symbols, coordinates, pathways, and related fields to enrich gene lists.
Instructions
Retrieve annotation data for up to 1000 genes in a single request by providing a comma-separated list of NCBI Entrez Gene IDs or Ensembl gene IDs. Returns the same fields as mygene.genes.info for each gene: symbol, name, gene type, taxon, summary, Ensembl IDs, UniProt accession, genomic coordinates, and pathway memberships. Ideal for enriching gene lists from RNA-seq experiments, GWAS results, or drug target panels. Mix of NCBI Entrez and Ensembl IDs is supported in the same request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Comma-separated list of NCBI Entrez Gene IDs or Ensembl gene IDs to retrieve in one request (e.g. "1017,1018,1019" for CDK2/CDK3/CDK4, or "ENSG00000123374,ENSG00000012048"). Maximum 1000 IDs per call. | |
| fields | No | Comma-separated fields to return for each gene. Default: symbol, name, taxid, entrezgene, type_of_gene, summary, ensembl, uniprot, alias, genomic_pos, pathway. Limit fields to reduce response size for large batches. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |