This
OLCC programming example
page demonstrates getting a 2D drawing from
PubChem using Jmol scripting.
Press the "test" button to evaluate the Jmol Script in the textarea below.
Feel free to modify the structure or Jmol Script and press test again.
// Note that we use the SMILES representation of the model here. var smiles = {*}.find("SMILES") var url = "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/smiles/" + smiles + "/PNG"; image @url