PharmGKB API
This is the RESTful API for accessing data stored in ClinPGx. All responses are in JSON format and can be retrieved as either JSON or <a href="http://www.w3.org/TR/json-ld/">JSON-LD</a> linked data format.
Base URL:
Auth: unknown
Endpoints: 33
Reachable: yes
CORS: unknown
Last checked: 2026-03-14 22:15:11.728082
https://api.pharmgkb.org/Auth: unknown
Endpoints: 33
Reachable: yes
CORS: unknown
Last checked: 2026-03-14 22:15:11.728082
Links
SDKs:
- PharmGKB Perl Binding (perl)
- PharmGKB Python API (python)
- PharmGKB TypeScript Client (typescript)
1053ms
Avg latency (7d)91
Probes (7d)Latency (7d)
Success Rate (7d)
Topics
Endpoints
| Method | Path | Summary | Auth | Last Status | Latency |
|---|---|---|---|---|---|
GET |
/data/chemical | Query Chemical objects | none | 200 | 831ms |
GET |
/data/chemical/{id} | Retrieve a Chemical using the ClinPGx ID | none | 200 | 828ms |
GET |
/data/clinicalAnnotation | Query Clinical Annotations | none | 200 | 2140ms |
GET |
/data/clinicalAnnotation/{id} | Retrieve a Clinical Annotation using the ID | none | — | — |
GET |
/data/connection | Query connections (aka relationships) between two objects, referred to as 'object 1' and 'object2' | none | 200 | 650ms |
GET |
/data/dataAnnotation | Query Data Annotations | none | 404 | 990ms |
GET |
/data/disease | Query Disease objects | none | 404 | 829ms |
GET |
/data/disease/{id} | Retrieve a Disease using the ClinPGx ID | none | 404 | 825ms |
GET |
/data/gene | Query Gene objects | none | 200 | 830ms |
GET |
/data/gene/{id} | Retrieve a Gene using the ClinPGx ID | none | 200 | 832ms |
GET |
/data/gene/{id}/crossReferences | Retrieve the Cross References for a Gene using the ClinPGx ID | none | 200 | 822ms |
GET |
/data/gene/{id}/ontologyTerms | Retrieve the Ontology Terms for a Gene using the ClinPGx ID | none | 200 | 824ms |
GET |
/data/guidelineAnnotation | Query GuidelineAnnotations | none | 200 | 1219ms |
GET |
/data/guidelineAnnotation/{id} | Retrieve a GuidelineAnnotation using the ClinPGx ID | none | 404 | 822ms |
GET |
/data/label | Query DrugLabels | none | 200 | 866ms |
GET |
/data/label/{id} | Retrieve a Drug Label using the ClinPGx ID | none | — | — |
GET |
/data/literature | Query Literature objects | none | 404 | 813ms |
GET |
/data/literature/{id} | Retrieve a Literature object using the ID | none | 404 | 827ms |
GET |
/data/ontologyTerm | Query Ontology Terms | none | 200 | 1596ms |
GET |
/data/pathway | Query Pathway objects | none | 200 | 824ms |
GET |
/data/pathway/{id} | Retrieve Pathway object using the ClinPGx ID | none | 200 | 832ms |
GET |
/data/variant/ | Query a Variant using the ClinPGx ID | none | 200 | 848ms |
GET |
/data/variant/{id} | Retrieve a Variant using the ClinPGx ID | none | 200 | 836ms |
GET |
/data/variantAnnotation | Query VariantAnnotations | none | 200 | 1300ms |
GET |
/data/variantAnnotation/{id} | Retrieve a VariantAnnotation using the ID | none | 200 | 579ms |
GET |
/data/vip/{id} | Retrieve a VIP annotation using the ID | none | 400 | 833ms |
GET |
/infobutton | ClinPGx implementation of InfoButton service | none | 404 | 840ms |
GET |
/report/connectedObjects/{id}/{type} | Query all objects connected to {id} of <code>{type}</code> and list all types of connections between them | none | 404 | 669ms |
GET |
/report/crossReference | — | none | 404 | 821ms |
GET |
/report/literatureId/{pmid} | Submit a PMID and find the Literature ID for it | none | 404 | 667ms |
GET |
/report/pair/{firstObjId}/{secondObjId}/{resultType} | Retrieve all <code>{type}</code> objects that connect <code>{id1}</code> and <code>{id2}</code> | none | 404 | 672ms |
GET |
/report/stats | Get all the statistics for object counts in ClinPGx | none | 404 | 663ms |
GET |
/report/variantFrequency | Get all variant frequency data for a given variant fingerprint | none | 404 | 658ms |