GET /data/variantAnnotation
Summary: Query VariantAnnotations
Operation ID: —
Auth: none
Operation ID: —
Auth: none
Parameters (3)
location.fingerprint
(string, query, optional)
the fingerprint (most often RSID) of the Variant to get variant annotations for
location.genes.symbol
(string, query, optional)
the symbol of the Gene to get variant annotations for
view
(string, query, optional)
How much data to retrieve on the object
Constraints: {'enum': ['min', 'base', 'max']}
Examples (3)
| Title | Type | URL | Action |
|---|---|---|---|
| Query variant annotations by RSID | curl |
https://api.pharmgkb.org/data/variantAnnotation?location.fingerprint=rs1799853 |
|
| Query variant annotations by gene symbol | curl |
https://api.pharmgkb.org/data/variantAnnotation?location.genes.symbol=CYP2D6 |
|
| Query with minimal view for CYP2C9 variants | curl |
https://api.pharmgkb.org/data/variantAnnotation?location.genes.symbol=CYP2C9&view=min |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 09:47:24.942297 | 200 | 1300ms | |
| 2026-03-23 09:38:46.537742 | 200 | 9414ms | 2.0MB |
| 2026-03-23 09:27:10.935338 | 200 | 4959ms | 2.0MB |
Response Changes
| When | Old | New |
|---|---|---|
| 2026-03-23 09:38:46.537742 | 6196220148f5 |
dc54462f67f5 |
| 2026-03-23 09:47:24.942297 | dc54462f67f5 |
301b94116ef0 |