PubChem API

When we discover a new molecule that might one day be developed into a drug, it’s helpful to know if other scientists have discovered that that same molecule is useful elsewhere. This project involves creating a TypeScript function that:

  1. As input, accepts a molecule represented as a smiles string.
  2. Makes an AJAX call to the PubChem servers to download information about that molecule. This link and this link should be helpful. We’re especially interested in learning if the molecule was active in any bioassays (perhaps here)?
  3. The function encodes that data and returns it as a JSON.