MyChem.info documentation¶
Introduction¶
MyChem.info provides simple-to-use REST web services to query/retrieve chemical and drug annotation data. It’s designed with an emphasis on simplicity and performance.
Quick start¶
MyChem.info provides two simple web services: one for querying chemical compound or drug objects and the other for chemical/drug annotation retrieval by common IDs (e.g. inchikey, chebiID, pubchem ID etc.). Both return results in JSON format.
Chemical/drug query service¶
URL¶
http://mychem.info/v1/query
Examples¶
http://mychem.info/v1/query?q=imatinib
http://mychem.info/v1/query?q=_exists_:chebi
http://mychem.info/v1/query?q=_exists_:drugcentral.bioactivity.uniprot.uniprot_id&fields=drugcentral.bioactivity.uniprot
Hint
View nicely formatted JSON result in your browser with this handy add-on: JSON formatter for Chrome or JSONView for Firefox.
To learn more¶
- You can read the full description of our query syntax here.
- Try it live on interactive API page.
- Batch queries? Yes, you can. do it with a POST request.
Chemical/drug annotation service¶
URL¶
http://mychem.info/v1/chem/<chem_id>
<chem_id>
can be any one of the following common chemical/drug identifiers:
Examples¶
http://mychem.info/v1/chem/KTUFNOKKBVMGRW-UHFFFAOYSA-N
http://mychem.info/v1/chem/CHEBI:45783?fields=chebi
http://mychem.info/v1/chem/CHEMBL941?fields=chembl
http://mychem.info/v1/chem/BKJ8M8G5HI?fields=unii
To learn more¶
- You can read the full description of our query syntax here.
- Try it live on interactive API page.
- Yes, batch queries via POST request as well.