ConstThe compound's CID
The compound's properties, or undefined if the CID is unknown
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',
});
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.