{"api":{"id":"api_7f16af8dbc1d37ca91cae8cd","slug":"pubchem-compounds","name":"Chemical Compound Properties API","description":"PubChem identity and properties for each compound name, CAS number, CID, InChIKey or SMILES you give: CID, name, CAS number, formula, molecular weight, exact mass, IUPAC name, SMILES, InChI, InChIKey, XLogP, polar surface area, charge and atom and bond counts. One clean row per compound.","kind":"ready_made","visibility":"public","domain":"pubchem.ncbi.nlm.nih.gov","source_url":"https://pubchem.ncbi.nlm.nih.gov/docs/pug-rest","category":"science","record_type":"generic","active_version":"1.0","units_per_1k":2000,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":21,"created_at":"2026-12-06T03:33:09.246Z","updated_at":"2026-12-06T03:33:09.246Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"query","type":"string","description":"The name, CAS number, CID, InChIKey or SMILES as you gave it.","required":true,"coverage":1,"example":"caffeine"},{"name":"cid","type":"string","description":"PubChem compound id (CID), such as 2519.","required":true,"coverage":1,"example":"2519"},{"name":"url","type":"url","description":"The compound's page on PubChem.","required":false,"coverage":1,"example":"https://pubchem.ncbi.nlm.nih.gov/compound/2519"},{"name":"title","type":"string","description":"PubChem's name for the compound, such as Caffeine.","required":false,"coverage":1,"example":"Caffeine"},{"name":"cas_number","type":"string","description":"CAS Registry Number most often cited for the compound, such as 58-08-2; empty when include_cas is off or PubChem has none.","required":false,"coverage":1,"example":"58-08-2"},{"name":"molecular_formula","type":"string","description":"Molecular formula in Hill order, such as C8H10N4O2.","required":false,"coverage":1,"example":"C8H10N4O2"},{"name":"molecular_weight","type":"number","description":"Molecular weight in grams per mole.","required":false,"coverage":1,"example":194.19},{"name":"exact_mass","type":"number","description":"Exact mass in daltons of the most common isotopes.","required":false,"coverage":1,"example":194.08037557},{"name":"iupac_name","type":"string","description":"Systematic IUPAC name as PubChem computes it.","required":false,"coverage":1,"example":"1,3,7-trimethylpurine-2,6-dione"},{"name":"smiles","type":"string","description":"SMILES with stereochemistry and isotopes.","required":false,"coverage":1,"example":"CN1C=NC2=C1C(=O)N(C(=O)N2C)C"},{"name":"connectivity_smiles","type":"string","description":"SMILES of the bonds only, without stereochemistry or isotopes.","required":false,"coverage":1,"example":"CN1C=NC2=C1C(=O)N(C(=O)N2C)C"},{"name":"inchi","type":"string","description":"Standard InChI identifier.","required":false,"coverage":1,"example":"InChI=1S/C8H10N4O2/c1-10-4-9-6-5(10)7(13)12(3)8(14)11(6)2/h4H,1-3H3"},{"name":"inchikey","type":"string","description":"Standard InChIKey, the 27-character hashed InChI, such as RYYVLZVUVIJVGH-UHFFFAOYSA-N.","required":false,"coverage":1,"example":"RYYVLZVUVIJVGH-UHFFFAOYSA-N"},{"name":"xlogp","type":"number","description":"Computed octanol-water partition coefficient (XLogP3): higher means more fat-soluble.","required":false,"coverage":1,"example":-0.1},{"name":"tpsa","type":"number","description":"Topological polar surface area in square angstroms.","required":false,"coverage":1,"example":58.4},{"name":"complexity","type":"number","description":"PubChem's structural complexity score.","required":false,"coverage":1,"example":293},{"name":"charge","type":"integer","description":"Total formal charge.","required":false,"coverage":1,"example":0},{"name":"h_bond_donor_count","type":"integer","description":"Number of hydrogen bond donors.","required":false,"coverage":1,"example":0},{"name":"h_bond_acceptor_count","type":"integer","description":"Number of hydrogen bond acceptors.","required":false,"coverage":1,"example":3},{"name":"rotatable_bond_count","type":"integer","description":"Number of rotatable bonds.","required":false,"coverage":1,"example":0},{"name":"heavy_atom_count","type":"integer","description":"Number of atoms other than hydrogen.","required":false,"coverage":1,"example":14}],"inputs":[{"name":"names","type":"array","description":"Compounds to look up, one per item: names (caffeine), CAS numbers (58-08-2), PubChem CIDs (2519) or InChIKeys. Up to 1,000 per run, together with smiles.","example":["caffeine","50-78-2","2519"]},{"name":"smiles","type":"array","description":"Compounds given as SMILES structures, one per item, such as CC(=O)OC1=CC=CC=C1C(=O)O for aspirin.","example":["CCO"]},{"name":"include_cas","type":"boolean","description":"Also look up each compound's CAS Registry Number. It takes one more request per compound, so turn it off for faster runs.","default":true,"example":true}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"cas_number":{"description":"CAS Registry Number most often cited for the compound, such as 58-08-2; empty when include_cas is off or PubChem has none.","type":"string"},"charge":{"description":"Total formal charge.","type":"integer"},"cid":{"description":"PubChem compound id (CID), such as 2519.","type":"string"},"complexity":{"description":"PubChem's structural complexity score.","type":"number"},"connectivity_smiles":{"description":"SMILES of the bonds only, without stereochemistry or isotopes.","type":"string"},"exact_mass":{"description":"Exact mass in daltons of the most common isotopes.","type":"number"},"h_bond_acceptor_count":{"description":"Number of hydrogen bond acceptors.","type":"integer"},"h_bond_donor_count":{"description":"Number of hydrogen bond donors.","type":"integer"},"heavy_atom_count":{"description":"Number of atoms other than hydrogen.","type":"integer"},"inchi":{"description":"Standard InChI identifier.","type":"string"},"inchikey":{"description":"Standard InChIKey, the 27-character hashed InChI, such as RYYVLZVUVIJVGH-UHFFFAOYSA-N.","type":"string"},"iupac_name":{"description":"Systematic IUPAC name as PubChem computes it.","type":"string"},"molecular_formula":{"description":"Molecular formula in Hill order, such as C8H10N4O2.","type":"string"},"molecular_weight":{"description":"Molecular weight in grams per mole.","type":"number"},"query":{"description":"The name, CAS number, CID, InChIKey or SMILES as you gave it.","type":"string"},"rotatable_bond_count":{"description":"Number of rotatable bonds.","type":"integer"},"smiles":{"description":"SMILES with stereochemistry and isotopes.","type":"string"},"title":{"description":"PubChem's name for the compound, such as Caffeine.","type":"string"},"tpsa":{"description":"Topological polar surface area in square angstroms.","type":"number"},"url":{"description":"The compound's page on PubChem.","format":"uri","type":"string"},"xlogp":{"description":"Computed octanol-water partition coefficient (XLogP3): higher means more fat-soluble.","type":"number"}},"required":["query","cid"],"title":"Chemical Compound Properties API","type":"object"},"samples":[{"query":"caffeine","cid":"2519","url":"https://pubchem.ncbi.nlm.nih.gov/compound/2519","title":"Caffeine","cas_number":"58-08-2","molecular_formula":"C8H10N4O2","molecular_weight":194.19,"exact_mass":194.08037557,"iupac_name":"1,3,7-trimethylpurine-2,6-dione","smiles":"CN1C=NC2=C1C(=O)N(C(=O)N2C)C","connectivity_smiles":"CN1C=NC2=C1C(=O)N(C(=O)N2C)C","inchi":"InChI=1S/C8H10N4O2/c1-10-4-9-6-5(10)7(13)12(3)8(14)11(6)2/h4H,1-3H3","inchikey":"RYYVLZVUVIJVGH-UHFFFAOYSA-N","xlogp":-0.1,"tpsa":58.4,"complexity":293,"charge":0,"h_bond_donor_count":0,"h_bond_acceptor_count":3,"rotatable_bond_count":0,"heavy_atom_count":14},{"query":"50-00-0","cid":"712","url":"https://pubchem.ncbi.nlm.nih.gov/compound/712","title":"Formaldehyde","cas_number":"50-00-0","molecular_formula":"CH2O","molecular_weight":30.026,"exact_mass":30.010564683,"iupac_name":"formaldehyde","smiles":"C=O","connectivity_smiles":"C=O","inchi":"InChI=1S/CH2O/c1-2/h1H2","inchikey":"WSFSSNUMVMOOMR-UHFFFAOYSA-N","xlogp":1.2,"tpsa":17.1,"complexity":2,"charge":0,"h_bond_donor_count":0,"h_bond_acceptor_count":1,"rotatable_bond_count":0,"heavy_atom_count":2},{"query":"2244","cid":"2244","url":"https://pubchem.ncbi.nlm.nih.gov/compound/2244","title":"Aspirin","cas_number":"50-78-2","molecular_formula":"C9H8O4","molecular_weight":180.16,"exact_mass":180.04225873,"iupac_name":"2-acetyloxybenzoic acid","smiles":"CC(=O)OC1=CC=CC=C1C(=O)O","connectivity_smiles":"CC(=O)OC1=CC=CC=C1C(=O)O","inchi":"InChI=1S/C9H8O4/c1-6(10)13-8-5-3-2-4-7(8)9(11)12/h2-5H,1H3,(H,11,12)","inchikey":"BSYNRYMUTXBXSQ-UHFFFAOYSA-N","xlogp":1.2,"tpsa":63.6,"complexity":212,"charge":0,"h_bond_donor_count":1,"h_bond_acceptor_count":4,"rotatable_bond_count":3,"heavy_atom_count":13}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"cas_number":1,"charge":1,"cid":1,"complexity":1,"connectivity_smiles":1,"exact_mass":1,"h_bond_acceptor_count":1,"h_bond_donor_count":1,"heavy_atom_count":1,"inchi":1,"inchikey":1,"iupac_name":1,"molecular_formula":1,"molecular_weight":1,"query":1,"rotatable_bond_count":1,"smiles":1,"title":1,"tpsa":1,"url":1,"xlogp":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_7f16af8dbc1d37ca91cae8cd/run","openapi":"https://pullrow.dev/v1/apis/api_7f16af8dbc1d37ca91cae8cd/openapi.json","contract":"https://pullrow.dev/v1/apis/api_7f16af8dbc1d37ca91cae8cd/contract.json","page":"https://pullrow.dev/catalog/pubchem-compounds"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":2,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Data from PubChem at the U.S. National Library of Medicine, mostly in the public domain. XLogP, polar surface area, complexity and the atom and bond counts are PubChem's own calculations, not measured values. NLM does not endorse this API.","A name, CAS number or structure PubChem cannot match returns no row, so compare query with your list to find them. Names are matched as whole names, case aside, not as partial words; misspellings and some trade names do not match.","A name usually matches one compound; the few that match several come back as one row each. Digits alone are read as a PubChem CID.","cas_number is the CAS Registry Number that PubChem's sources cite most often for the compound, checked by its check digit. PubChem is not the official CAS registry, and salts, mixtures and newer compounds often have none.","Up to 1,000 lookups per run. PubChem allows at most five requests a second, so requests go one at a time and long lists take a while: each name or structure takes one request and its CAS number another. CIDs are read 100 at a time.","For a salt, hydrate or mixture the formula and weights cover the whole PubChem record, every part included."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"query","label":"Search words","description":"The name, CAS number, CID, InChIKey or SMILES as you gave it.","group":"Technical","shown":false,"written":false},{"name":"cid","label":"Cid","description":"PubChem compound id (CID), such as 2519.","group":"Technical","shown":false,"written":false},{"name":"url","label":"Link","description":"The compound's page on PubChem.","group":"Links","shown":true,"written":false},{"name":"title","label":"Title","description":"PubChem's name for the compound, such as Caffeine.","group":"Basics","shown":true,"written":false},{"name":"cas_number","label":"Cas number","description":"CAS Registry Number most often cited for the compound, such as 58-08-2; empty when include_cas is off or PubChem has none.","group":"Basics","shown":true,"written":false},{"name":"molecular_formula","label":"Molecular formula","description":"Molecular formula in Hill order, such as C8H10N4O2.","group":"Basics","shown":true,"written":false},{"name":"molecular_weight","label":"Molecular weight","description":"Molecular weight in grams per mole.","group":"Basics","shown":true,"written":false},{"name":"exact_mass","label":"Exact mass","description":"Exact mass in daltons of the most common isotopes.","group":"Basics","shown":true,"written":false},{"name":"iupac_name","label":"Iupac name","description":"Systematic IUPAC name as PubChem computes it.","group":"Basics","shown":true,"written":false},{"name":"smiles","label":"Smiles","description":"SMILES with stereochemistry and isotopes.","group":"Basics","shown":true,"written":false},{"name":"connectivity_smiles","label":"Connectivity smiles","description":"SMILES of the bonds only, without stereochemistry or isotopes.","group":"Basics","shown":true,"written":false},{"name":"inchi","label":"Inchi","description":"Standard InChI identifier.","group":"Basics","shown":true,"written":false},{"name":"inchikey","label":"Inchikey","description":"Standard InChIKey, the 27-character hashed InChI, such as RYYVLZVUVIJVGH-UHFFFAOYSA-N.","group":"Basics","shown":true,"written":false},{"name":"xlogp","label":"Xlogp","description":"Computed octanol-water partition coefficient (XLogP3): higher means more fat-soluble.","group":"Basics","shown":true,"written":false},{"name":"tpsa","label":"Tpsa","description":"Topological polar surface area in square angstroms.","group":"Basics","shown":true,"written":false},{"name":"complexity","label":"Complexity","description":"PubChem's structural complexity score.","group":"Basics","shown":true,"written":false},{"name":"charge","label":"Total formal charge","description":"","group":"Basics","shown":true,"written":false},{"name":"h_bond_donor_count","label":"H bond donor count","description":"Number of hydrogen bond donors.","group":"Basics","shown":true,"written":false},{"name":"h_bond_acceptor_count","label":"H bond acceptor count","description":"Number of hydrogen bond acceptors.","group":"Basics","shown":true,"written":false},{"name":"rotatable_bond_count","label":"Rotatable bond count","description":"Number of rotatable bonds.","group":"Basics","shown":true,"written":false},{"name":"heavy_atom_count","label":"Heavy atom count","description":"Number of atoms other than hydrogen.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"names","label":"Names","help":"Compounds to look up, one per item: names (caffeine), CAS numbers (58-08-2), PubChem CIDs (2519) or InChIKeys. Up to 1,000 per run, together with smiles.","example":"caffeine, 50-78-2, 2519","written":false},{"name":"smiles","label":"Smiles","help":"Compounds given as SMILES structures, one per item, such as CC(=O)OC1=CC=CC=C1C(=O)O for aspirin.","example":"CCO","written":false},{"name":"include_cas","label":"Include cas","help":"Also look up each compound's CAS Registry Number. It takes one more request per compound, so turn it off for faster runs.","example":"true","written":false}]}},"incidents":[]}