78 lines
1.5 KiB
Markdown
78 lines
1.5 KiB
Markdown
---
|
|
title: "PharmGKB (Clinical Pharmacogenomics)"
|
|
task: ""
|
|
lineage_type: import
|
|
upstream_source: https://github.com/K-Dense-AI/scientific-agent-skills/blob/9c9bd2e9/skills/database-lookup/references/clinpgx.md
|
|
upstream_sha: 9c9bd2e9
|
|
imported_at: 2026-06-26
|
|
prompt_class: prompt
|
|
upstream_changes: accepted
|
|
author: upstream
|
|
validated: false
|
|
---
|
|
|
|
# PharmGKB (Clinical Pharmacogenomics)
|
|
|
|
## Base URL
|
|
```
|
|
https://api.pharmgkb.org/v1/data/
|
|
```
|
|
|
|
## Auth
|
|
No API key required for read-only access.
|
|
|
|
## Key Endpoints
|
|
|
|
### General search
|
|
```
|
|
GET https://api.pharmgkb.org/v1/search?q={term}&page=0&size=10
|
|
```
|
|
|
|
### Gene data
|
|
```
|
|
GET /gene?symbol={symbol}
|
|
```
|
|
Example: `/gene?symbol=CYP2D6`
|
|
|
|
Response includes: id, symbol, chromosome, hasGuideline, hasClinicalAnnotation, cpicGene
|
|
|
|
### Drug data
|
|
```
|
|
GET /drug?name={name}
|
|
```
|
|
Example: `/drug?name=warfarin`
|
|
|
|
Response includes: id, name, genericNames, tradeNames, rxNormId, atcCodes
|
|
|
|
### Clinical annotations (drug-gene interactions)
|
|
```
|
|
GET /clinicalAnnotation?gene={symbol}&drug={name}&level={level}
|
|
```
|
|
|
|
Evidence levels: `1A`, `1B`, `2A`, `2B`, `3`, `4`
|
|
|
|
Example:
|
|
```
|
|
/clinicalAnnotation?gene=CYP2C19&drug=clopidogrel&level=1A
|
|
```
|
|
|
|
Response includes: level, gene, drug, phenotype, significance, variants, url
|
|
|
|
### CPIC/DPWG guidelines
|
|
```
|
|
GET /guideline?gene={symbol}&drug={name}&source=CPIC
|
|
```
|
|
|
|
### Pharmacokinetic pathways
|
|
```
|
|
GET /pathway?drug={name}
|
|
```
|
|
|
|
### Drug labels (FDA, EMA)
|
|
```
|
|
GET /drugLabel?drug={name}&source=FDA
|
|
```
|
|
|
|
## Rate Limits
|
|
No hard published limit. Be reasonable. Bulk data via PharmGKB download page.
|