GET /data/gene/{id}/ontologyTerms
Summary: Retrieve the Ontology Terms for a Gene using the ClinPGx ID
Operation ID: —
Auth: none
Operation ID: —
Auth: none
Parameters (2)
id
(string, path, required)
the Gene's ClinPGx accession identifier
view
(string, query, optional)
How much data to retrieve on the object
Constraints: {'enum': ['min', 'base', 'max']}
Examples (3)
| Title | Type | URL | Action |
|---|---|---|---|
| Get ontology terms for CYP2D6 gene | curl |
https://api.pharmgkb.org/data/gene/PA166170699/ontologyTerms |
|
| Get ontology terms for CYP2C19 gene with full view | curl |
https://api.pharmgkb.org/data/gene/PA124/ontologyTerms?view=full |
|
| Get ontology terms for CYP3A4 gene with minimal view | curl |
https://api.pharmgkb.org/data/gene/PA130/ontologyTerms?view=minimal |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 10:43:22.641864 | 200 | 824ms | |
| 2026-03-23 09:49:31.092941 | 200 | 845ms | |
| 2026-03-23 09:45:21.456469 | 404 | 837ms |
Response Changes
| When | Old | New |
|---|---|---|
| 2026-03-23 09:49:31.092941 | 268394de5808 |
1e722246398f |
| 2026-03-23 10:43:22.641864 | 1e722246398f |
9bdb4ac28e48 |