/api/v1/lookupResolve any identifier to a substance and return every regulatory listing on record. Accepts a name, CAS number, EC number, InChIKey, SMILES or PubChem CID; the type is detected. Names tolerate misspellings. An unambiguous query answers with resolved: true. An ambiguous name answers with resolved: false, a ranked candidates array and best, the key of the closest match; look that candidate up by its InChIKey or CAS number. No match answers 404 NOT_FOUND.
[PARAMETERS]
[REQUEST]
curl -H "X-API-Key: YOUR_KEY" \
"https://www.chemply.io/api/v1/lookup?q=formaldehyde"[RESPONSE]
{
"resolved": true,
"match_type": "name",
"molecule": {
"id": "107848",
"inchikey": "WSFSSNUMVMOOMR-UHFFFAOYSA-N",
"smiles": "C=O",
"canonical_smiles": null,
"inchi": null,
"molecular_weight": 30.03
},
"cas_number": "50-00-0",
"names": ["Formaldehyde", "Methanal", "..."],
"identifiers": [
{ "source_type": "pubchem_cid", "identifier": "712" }
],
"compliance": [
{
"framework_code": "reach_annex_xvii",
"framework_name": "REACH Restrictions (Annex XVII)",
"jurisdiction": "EU",
"status": "restricted",
"risk_level": "high",
"raw_data": {
"source": "ECHA REACH Annex XVII (Restrictions)",
"entry_no": "77",
"ec_number": "200-001-8",
"cas_number": "50-00-0",
"chemical_name": "Formaldehyde"
}
}
],
"substance": {
"id": 49274,
"identity": "cas:50-00-0",
"kind": "discrete",
"display_name": "Formaldehyde",
"primary_cas": "50-00-0"
}
}