GET /data/gene/{id}/ontologyTerms

pharmgkb.org:pharmgkb-api

Summary: Retrieve the Ontology Terms for a Gene using the ClinPGx ID
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)

TitleTypeURLAction
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

Latency

Status Codes

TimeStatusLatencySize
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

WhenOldNew
2026-03-23 09:49:31.092941 268394de5808 1e722246398f
2026-03-23 10:43:22.641864 1e722246398f 9bdb4ac28e48