GET /data/ontologyTerm

pharmgkb.org:pharmgkb-api

Summary: Query Ontology Terms
Operation ID:
Auth: none

Parameters (2)

resource (string, query, optional)

the ontology resource to get terms for

Constraints: {'enum': ['biomarkerStatus', 'alleleFunction', 'cpicLevelOfEvidence', 'cpicStatus', 'geneTestLevel', 'guidelineStrength', 'levelsOfEvidence']}

view (string, query, optional)

How much data to retrieve on the object

Constraints: {'enum': ['min', 'base', 'max']}

Examples (3)

TitleTypeURLAction
Query Gene Ontology terms curl https://api.pharmgkb.org/data/ontologyTerm?resource=GO
Query ATC classification with base view curl https://api.pharmgkb.org/data/ontologyTerm?resource=ATC&view=base
Query MeSH terms with full view curl https://api.pharmgkb.org/data/ontologyTerm?resource=MeSH&view=full

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 09:32:39.424660 200 1596ms 1.5MB
2026-03-23 09:15:25.602991 200 3885ms 2.0MB
2026-03-23 09:14:20.253946 200 3790ms 2.0MB

Response Changes

WhenOldNew
2026-03-23 09:15:25.602991 a9ed9079daa8 4da9e8a4fce4
2026-03-23 09:32:39.424660 4da9e8a4fce4 10e805bdb51c