Creates a new Pubchem instance for querying compound information
The chemical compound name or identifier to search for
Retrieves the first matching compound name from PubChem's autocomplete API
Promise resolving to the first matching compound name
Retrieves the CID (Compound ID) for the compound by first getting the compound name and then looking up its CID
Promise resolving to the Compound ID (CID)
Queries PubChem's SDQ (Structure Data Query) agent to retrieve detailed molecular properties
Promise resolving to the SDQ response containing detailed compound data
Retrieves the simple compound name from the SDQ agent query results
Promise resolving to the compound name
Retrieves the compound name from the SDQ agent query results
Promise resolving to the compound name
A utility class for interacting with the PubChem API to retrieve chemical compound information.
This class provides methods to search for compounds, retrieve their CID (Compound ID), and query detailed molecular properties using PubChem's SDQ (Structure Data Query) agent.
Example