GET /efetch.fcgi
Summary: Fetch full gene records
Operation ID: fetchGeneRecord
Auth: none
Operation ID: fetchGeneRecord
Auth: none
Description
Retrieves full records in the requested format.
Parameters (6)
WebEnv
(string, query, optional)
Web environment string for history server
db
(string, query, required, default: gene)
Database
Constraints: {'enum': ['gene']}
id
(string, query, optional)
Gene ID(s) - comma-separated list
query_key
(string, query, optional)
Query key for history server
retmode
(string, query, optional, default: text)
Return mode
Constraints: {'enum': ['text', 'xml', 'json']}
rettype
(string, query, optional)
Retrieval type
Examples (3)
| Title | Type | URL | Action |
|---|---|---|---|
| Fetch TP53 gene record in text format | curl |
https://www.ncbi.nlm.nih.gov/gene/efetch.fcgi?db=gene&id=7157&retmode=text |
|
| Fetch KRAS gene record in XML format | curl |
https://www.ncbi.nlm.nih.gov/gene/efetch.fcgi?db=gene&id=3845&retmode=xml |
|
| Fetch VEGFA gene with gene_table return type | curl |
https://www.ncbi.nlm.nih.gov/gene/efetch.fcgi?db=gene&id=7422&retmode=text&rettype=gene_table |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 10:28:45.540475 | 404 | 441ms | |
| 2026-03-23 10:19:00.863195 | 404 | 428ms | |
| 2026-03-23 09:39:38.501852 | 404 | 472ms |