{"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},"version":"1.0","contract_hash":"9f1261b7fc166eeffe3c38ce7ae13c9825fe49ed1ff985aff141e1f6f1892928","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:33:09.246Z","activated_at":"2026-12-06T03:33:09.246Z","active":true,"contract_hash":"9f1261b7fc166eeffe3c38ce7ae13c9825fe49ed1ff985aff141e1f6f1892928","fields_count":21}]}