Look up compound properties by SMILES or CID via PubChem PUG REST

domain: pubchem.ncbi.nlm.nih.gov · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Build a PUG REST URL following the input/operation/output pattern: /rest/pug/compound/<input>/<operation>/<output>
  2. For SMILES input, URL-encode the SMILES string and use the 'compound/smiles/<smiles>' input specification (or POST the SMILES in the request body for long strings)
  3. For a known CID, use 'compound/cid/<cid>' as the input specification instead
  4. Request one or more properties via 'property/<PropertyName,PropertyName2,...>' (e.g. MolecularWeight, CanonicalSMILES, InChIKey)
  5. Append an output format such as JSON, CSV, or TXT to the URL and issue a GET (or POST for large inputs)
  6. Parse the returned PropertyTable/Properties array; a CID of 0 or empty result means no match was found

Known gotchas

Related routes

Retrieve chemical identifiers and safety-relevant properties via the PubChem PUG REST API
pubchem.ncbi.nlm.nih.gov · 5 steps · unrated
Retrieve GHS hazard classification data for a chemical via PubChem PUG-View
pubchem.ncbi.nlm.nih.gov · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans