PubChem · Example Payload

Get Compound By Cid

Retrieve compound properties for aspirin (CID 2244) using the PubChem PUG REST API.

ChemistryChemical CompoundsDrug DiscoveryBioassayLife SciencesNCBIBioinformatics

Get Compound By Cid is an example object payload from PubChem, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titledescriptionrequestresponse

Example Payload

Raw ↑
{
  "title": "Get Compound by CID",
  "description": "Retrieve compound properties for aspirin (CID 2244) using the PubChem PUG REST API.",
  "request": {
    "method": "GET",
    "url": "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2244/property/MolecularFormula,MolecularWeight,CanonicalSMILES,InChIKey,IUPACName/JSON",
    "headers": {
      "Accept": "application/json"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "PropertyTable": {
        "Properties": [
          {
            "CID": 2244,
            "MolecularFormula": "C9H8O4",
            "MolecularWeight": "180.16",
            "CanonicalSMILES": "CC(=O)OC1=CC=CC=C1C(=O)O",
            "InChIKey": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N",
            "IUPACName": "2-acetyloxybenzoic acid"
          }
        ]
      }
    }
  }
}