Skip to main content
POST
/
api
/
pubchem
/
compounds
/pubchem/compounds
curl --request POST \
  --url https://api.anysite.io/api/pubchem/compounds \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "compound": "<string>",
  "timeout": 300
}
'
[
  {
    "id": 123,
    "url": "<string>",
    "@type": "@pubchem_compound",
    "title": "<string>",
    "iupac_name": "<string>",
    "molecular_formula": "<string>",
    "molecular_weight": "<string>",
    "smiles": "<string>",
    "connectivity_smiles": "<string>",
    "inchi": "<string>",
    "inchi_key": "<string>",
    "xlogp": 123,
    "tpsa": 123,
    "complexity": 123,
    "charge": 123,
    "exact_mass": "<string>",
    "monoisotopic_mass": "<string>",
    "h_bond_donor_count": 123,
    "h_bond_acceptor_count": 123,
    "rotatable_bond_count": 123,
    "heavy_atom_count": 123,
    "covalent_unit_count": 123,
    "atom_stereo_count": 123,
    "defined_atom_stereo_count": 123,
    "undefined_atom_stereo_count": 123,
    "bond_stereo_count": 123,
    "defined_bond_stereo_count": 123,
    "volume_3d": 123,
    "conformer_count_3d": 123,
    "literature_count": 123,
    "patent_count": 123,
    "patent_family_count": 123,
    "annotation_type_count": 123,
    "description": "<string>",
    "description_source": "<string>",
    "description_url": "<string>",
    "synonyms": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
compound
string
required

PubChem Compound ID (CID) or compound URL

Minimum string length: 1
Examples:

"2244"

"https://pubchem.ncbi.nlm.nih.gov/compound/2244"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
integer
required
url
string
required
@type
string
default:@pubchem_compound
title
string | null
iupac_name
string | null
molecular_formula
string | null
molecular_weight
string | null
smiles
string | null
connectivity_smiles
string | null
inchi
string | null
inchi_key
string | null
xlogp
number | null
tpsa
number | null
complexity
number | null
charge
integer | null
exact_mass
string | null
monoisotopic_mass
string | null
h_bond_donor_count
integer | null
h_bond_acceptor_count
integer | null
rotatable_bond_count
integer | null
heavy_atom_count
integer | null
covalent_unit_count
integer | null
atom_stereo_count
integer | null
defined_atom_stereo_count
integer | null
undefined_atom_stereo_count
integer | null
bond_stereo_count
integer | null
defined_bond_stereo_count
integer | null
volume_3d
number | null
conformer_count_3d
integer | null
literature_count
integer | null
patent_count
integer | null
patent_family_count
integer | null
annotation_type_count
integer | null
description
string | null
description_source
string | null
description_url
string | null
synonyms
string[]