1.5 KiB
1.5 KiB
title, task, lineage_type, upstream_source, upstream_sha, imported_at, prompt_class, upstream_changes, author, validated
| title | task | lineage_type | upstream_source | upstream_sha | imported_at | prompt_class | upstream_changes | author | validated |
|---|---|---|---|---|---|---|---|---|---|
| PharmGKB (Clinical Pharmacogenomics) | import | https://github.com/K-Dense-AI/scientific-agent-skills/blob/9c9bd2e9/skills/database-lookup/references/clinpgx.md | 9c9bd2e9 | 2026-06-26 | prompt | accepted | upstream | 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.