UnifyAPI
← Back to catalog

mychem.search

mock data$0.001 / call

Search Chemical Compounds

Search the MyChem.info database of 197M+ annotated chemical compounds using a flexible query syntax. Query by: common name (e.g. "aspirin"), IUPAC name (e.g. "acetylsalicylic acid"), InChIKey (e.g. "BSYNRYMUTXBXSQ-UHFFFAOYSA-N"), molecular formula (e.g. "C9H8O4"), ChEMBL ID (e.g. "CHEMBL25"), PubChem CID (e.g. "pubchem.cid:2244"), DrugBank ID (e.g. "DB00945"), or field-scoped queries (e.g. "drugbank.groups:approved AND chembl.max_phase:4"). Each result includes chemical names across databases (ChEBI, ChEMBL, DrugBank, PharmGKB), structural properties (molecular formula, weight, XLogP, H-bond donors/acceptors, TPSA, rotatable bonds), drug development phase, ATC classification codes, and approval status. Integrates DrugBank, ChEMBL, ChEBI, PubChem, PharmGKB, SIDER, DrugCentral, NDC, and 16+ annotation sources.

Science & Researchprovider: Mychem#mychem#science

Input schema

qrequired

Chemical search query. Supports: common name (e.g. "aspirin"), IUPAC name (e.g. "acetylsalicylic acid"), InChIKey (e.g. "BSYNRYMUTXBXSQ-UHFFFAOYSA-N"), molecular formula (e.g. "C9H8O4"), ChEMBL ID (e.g. "CHEMBL25"), PubChem CID (e.g. "pubchem.cid:2244"), DrugBank ID (e.g. "DB00945"), or field-scoped queries (e.g. "chebi.name:ibuprofen", "drugbank.groups:approved", "chembl.max_phase:4"). Supports Lucene boolean operators AND/OR/NOT.

string
size

Maximum number of chemical results to return (1–50, default 10).

integer
fields

Comma-separated annotation fields to return per hit. Default: chebi.name, chebi.definition, chebi.formula, chebi.mass, chembl.pref_name, chembl.max_phase, chembl.molecule_properties, pubchem.cid, pubchem.molecular_formula, pubchem.molecular_weight, pubchem.xlogp, drugbank.name, drugbank.groups, pharmgkb.name. Use "all" for every source.

string
scopes

Comma-separated fields to search within. Default: searches all text fields. Examples: "chebi.name,chembl.pref_name,drugbank.name" to search only common names, or "chebi.inchikey" to search by exact InChIKey structure.

string

Call via REST

curl -X POST https://unifyapi.pro/api/call/mychem.search \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"q":"<q>","size":10,"fields":"<fields>","scopes":"<scopes>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.