/pubchem/compounds/search
Search PubChem compounds by name, SMILES, or InChIKey
Price: 1 credit per 50 results
💡 AI Hint: Search compounds on PubChem. Provide a chemical name, a SMILES string, or an InChIKey in ‘query’ and set ‘namespace’ accordingly. For name queries, set ‘match’ to ‘exact’ for the single best match or ‘word’ to find all compounds whose name contains the query word. Returns matching compounds with full chemical data (formula, weight, SMILES, InChI/InChIKey, computed descriptors, description, synonyms).
⚠️ Common errors: 412: No matching compound found
Authorizations
API token from the dashboard
Headers
Body
Search query — a chemical name, SMILES string, or InChIKey
1"aspirin"
"CC(=O)OC1=CC=CC=C1C(=O)O"
"BSYNRYMUTXBXSQ-UHFFFAOYSA-N"
Max result count
x >= 1Max scrapping execution timeout (in seconds)
20 <= x <= 1500Type of the query value
name, smiles, inchikey Name matching mode (applies only when namespace is 'name'): 'exact' returns the single best-matching compound, 'word' returns all compounds whose name contains the query word
exact, word Response
Successful Response