| name | chembl-drug |
| description | Query the ChEMBL REST API for drug-target interactions, bioactivity data, ADMET properties, and approved drug information. Use when the user needs drug mechanism of action, binding affinity data, target information, or pharmacokinetic properties. NOT for basic compound lookup (use pubchem-compound), NOT for gene-disease associations (use open-targets), NOT for protein 3D structures (use pdb-structure). |
| metadata | {"openclaw":{"emoji":"💊","requires":{"bins":["curl"]}}} |
ChEMBL Drug & Bioactivity Lookup
Query the ChEMBL REST API to access curated drug-target interaction data, bioactivity measurements, drug mechanisms of action, and ADMET properties from the European Bioinformatics Institute.
API Base URL
https://www.ebi.ac.uk/chembl/api/data
All endpoints accept .json suffix and return JSON by default. Use format=json as a query parameter alternatively.
API Endpoints
Molecule Lookup
Retrieve molecule details by ChEMBL ID or search by name:
curl -s "https://www.ebi.ac.uk/chembl/api/data/molecule/CHEMBL25.json" | head -80
curl -s "https://www.ebi.ac.uk/chembl/api/data/molecule/search.json?q=imatinib" | head -80
curl -s "https://www.ebi.ac.uk/chembl/api/data/molecule.json?molecule_structures__canonical_smiles=CC(=O)Oc1ccccc1C(=O)O" | head -60
Target Lookup
Retrieve drug target information:
curl -s "https://www.ebi.ac.uk/chembl/api/data/target/CHEMBL2034.json" | head -60
curl -s "https://www.ebi.ac.uk/chembl/api/data/target/search.json?q=EGFR" | head -80
curl -s "https://www.ebi.ac.uk/chembl/api/data/target.json?target_components__accession=P00533" | head -60
Bioactivity Data
Retrieve binding affinity, IC50, Ki, and other activity measurements:
curl -s "https://www.ebi.ac.uk/chembl/api/data/activity.json?molecule_chembl_id=CHEMBL25&limit=20" | head -100
curl -s "https://www.ebi.ac.uk/chembl/api/data/activity.json?target_chembl_id=CHEMBL2034&limit=20" | head -100
curl -s "https://www.ebi.ac.uk/chembl/api/data/activity.json?molecule_chembl_id=CHEMBL941&standard_type=IC50&limit=10" | head -80
curl -s "https://www.ebi.ac.uk/chembl/api/data/activity.json?target_chembl_id=CHEMBL2034&pchembl_value__gte=6&limit=20" | head -80
Drug Mechanisms of Action
curl -s "https://www.ebi.ac.uk/chembl/api/data/mechanism.json?molecule_chembl_id=CHEMBL941" | head -60
curl -s "https://www.ebi.ac.uk/chembl/api/data/mechanism.json?target_chembl_id=CHEMBL2034" | head -80
Approved Drugs
Filter for approved drugs and clinical candidates:
curl -s "https://www.ebi.ac.uk/chembl/api/data/molecule.json?max_phase=4&limit=20" | head -80
curl -s "https://www.ebi.ac.uk/chembl/api/data/mechanism.json?target_chembl_id=CHEMBL2034" | head -60
curl -s "https://www.ebi.ac.uk/chembl/api/data/molecule.json?max_phase=4&molecule_type=Small%20molecule&limit=20" | head -60
ADMET and Drug Properties
curl -s "https://www.ebi.ac.uk/chembl/api/data/molecule/CHEMBL25.json" | python3 -c "import sys,json; [print(f'{k}: {v}') for k,v in json.load(sys.stdin).get('molecule_properties',{}).items()]"
curl -s "https://www.ebi.ac.uk/chembl/api/data/drug_indication.json?molecule_chembl_id=CHEMBL941&limit=10" | head -60
Common Queries
curl -s "https://www.ebi.ac.uk/chembl/api/data/mechanism.json?target_chembl_id=CHEMBL1862" | head -80
curl -s "https://www.ebi.ac.uk/chembl/api/data/molecule/search.json?q=metformin&limit=5" | head -40
Best Practices
- Always include
limit parameter to control result size; default may return thousands of records.
- Use
offset with limit for pagination through large result sets.
- Filter bioactivity by
pchembl_value__gte=5 (10 uM) or pchembl_value__gte=6 (1 uM) for meaningful hits.
- Use
max_phase to filter clinical status: 4 = approved, 3 = Phase III, 2 = Phase II, 1 = Phase I.
- Prefer ChEMBL IDs over name searches for precise lookups; name searches are fuzzy.
- Parse
molecule_properties for pre-computed Lipinski descriptors, PSA, and ALogP.
- Rate limit to 1 request per second to avoid throttling from EBI servers.
Data Integrity Rule
NEVER fabricate database results from training data. Every protein ID, gene name, compound property, pathway ID, structure detail, and metadata MUST come from an actual API response in this conversation. If the API returns no results, errors, or partial data, report exactly what happened. Do not "fill in" missing data from memory or make up identifiers.