A variety of databases include "purchasability" (e.g., ZINC) and can be filtered as such. Or you can download just the purchasable compounds.
I'm curious if there are methods or web APIs to ZINC or eMolecules or similar databases or commercial vendors to get an estimated purchase price from a SMILES string.
To be honest, I don't need an exact price quote. I just want to know a rough magnitude like USD\$ per gram, e.g. \$1 vs. \$10 vs. \$100 vs. \$1000. In other words, can I filter out aspirin or caffeine which are inexpensive, versus taxol or some complex compound that's much more expensive?
I've seen some indication that ZINC once had a purchase price and it's possible to find on the website, for example at this page.