Skill Tracer
Skills › Scientific Agent Skills › database-lookup › clinpgx.md

clinpgx.md

26 lines · skills/database-lookup/references/clinpgx.md at 5f2bc03

Open on GitHub
1# ClinPGx (PharmGKB) API
2
3Base: `https://api.clinpgx.org/v1`. Public read access, JSON, at most **2 requests/second**.
4The old `api.pharmgkb.org` hostname was shut down July 20, 2026.
5See the [service notice](https://api.clinpgx.org/) and
6[current OpenAPI schema](https://api.clinpgx.org/openapi.json).
7
8| GET path | Purpose |
9|---|---|
10| `/data/gene?symbol=CYP2D6` | Resolve gene to PA accession |
11| `/data/chemical?name=warfarin` | Resolve drug/chemical |
12| `/data/summaryAnnotation?location.genes.symbol=CYP2C19&relatedChemicals.name=clopidogrel&levelOfEvidence.term=1A` | Clinical summary annotations |
13| `/data/guidelineAnnotation?source=CPIC&relatedGenes.accessionId={PA_ID}` | Prescribing guideline annotations |
14| `/data/pathway?name={name}` | Pathways by name |
15| `/data/label?relatedChemicals.name=warfarin&source=FDA` | Drug-label annotations |
17Each resource also supports `/{id}` lookup. `view` controls returned detail;
18use the enum for that resource in the schema. Inspect the JSON envelope and
19`data` field; these endpoints do not share a documented `page`/`size` search API.
20Do not substitute invented `/drug`, `/clinicalAnnotation`, `/guideline`,
21`/drugLabel` or general `/search` routes.
23Resolve PA identifiers before joining resources. Keep annotation evidence level,
24gene, allele/diplotype, phenotype, population and guideline source/version.
25A pharmacogenomic association alone is not an individualized dosing recommendation.
26Bulk exports and reuse are governed by ClinPGx's data-use policy (CC BY-SA 4.0).

ClinPGx (PharmGKB) API

Base: https://api.clinpgx.org/v1. Public read access, JSON, at most 2 requests/second. The old api.pharmgkb.org hostname was shut down July 20, 2026. See the service notice and current OpenAPI schema.

GET pathPurpose
/data/gene?symbol=CYP2D6Resolve gene to PA accession
/data/chemical?name=warfarinResolve drug/chemical
/data/summaryAnnotation?location.genes.symbol=CYP2C19&relatedChemicals.name=clopidogrel&levelOfEvidence.term=1AClinical summary annotations
/data/guidelineAnnotation?source=CPIC&relatedGenes.accessionId={PA_ID}Prescribing guideline annotations
/data/pathway?name={name}Pathways by name
/data/label?relatedChemicals.name=warfarin&source=FDADrug-label annotations

Each resource also supports /{id} lookup. view controls returned detail; use the enum for that resource in the schema. Inspect the JSON envelope and data field; these endpoints do not share a documented page/size search API. Do not substitute invented /drug, /clinicalAnnotation, /guideline, /drugLabel or general /search routes.

Resolve PA identifiers before joining resources. Keep annotation evidence level, gene, allele/diplotype, phenotype, population and guideline source/version. A pharmacogenomic association alone is not an individualized dosing recommendation. Bulk exports and reuse are governed by ClinPGx's data-use policy (CC BY-SA 4.0).

Raw lines 1 to 26