ChemPal Documentation - v1.6.0
    Preparing search index...

    Variable getCompoundPropertiesConst

    getCompoundProperties: (
        cid: PubChemCID,
    ) => Promise<PubChemProperties | undefined> = ...

    Fetches core physical/chemical properties for a compound (formula, molecular weight, IUPAC name, SMILES, InChI, InChIKey, title) via PUG-REST. These map directly onto ChemPal's product fields, so this is the primary way to enrich a product once its CID is known. Cached for three days.

    Type declaration

    await getCompoundProperties(180);
    // Returns: { cid: 180, molecularFormula: "C3H6O", molecularWeight: "58.08",
    // iupacName: "propan-2-one", smiles: "CC(C)=O", inchiKey: "CSCPPACGZOOCGX-UHFFFAOYSA-N", ... }
    export const getCompoundProperties: (cid: PubChemCID) => Promise<PubChemProperties | undefined> =
    withTtlCache(getCompoundPropertiesUncached, {
    namespace: 'properties',
    });