ConstThe compound's CID
The description and its source, or undefined if none is available
await getCompoundDescription(180);
// Returns: { title: "Acetone", description: "Acetone is a manufactured chemical...",
// source: "NCI Thesaurus", url: "https://..." }
export const getCompoundDescription: (cid: PubChemCID) => Promise<PubChemDescription | undefined> =
withTtlCache(getCompoundDescriptionUncached, {
namespace: 'descriptionByCid',
});
Fetches a short human-readable description of a compound (with its source) by CID via PUG-REST. Useful for surfacing a plain-language blurb in the product detail view. Cached for three days.