Skip to main content
POST
Returns a compound’s computed molecular descriptors by PubChem CID or InChIKey, from the US National Center for Biotechnology Information. Includes IUPAC name, formula, InChIKey, molecular weight, exact mass, XLogP, polar surface area, hydrogen bond donor and acceptor counts, rotatable bonds, heavy atoms, formal charge and complexity. These are computed from the structure, not measurements.

Authentication

Requires x402 payment in the payment-signature header.

Request Body

integer
The compound identifier (CID), for example 2244. From 1 to 999999999.
string
The standard InChIKey of the compound, for example BSYNRYMUTXBXSQ-UHFFFAOYSA-N. Exactly 27 characters. An InChIKey is 14 capitals, a hyphen, 10 capitals, a hyphen and one capital.

Response (200 OK)

Top-level envelope: success (boolean) and data (object). All fields below are nested under data.
string
Durable job ID for audit and lookup
string
Job status: completed
string
Always compound_properties
object
The answer, described under Result below
object
Where the answer came from and when
string
The public body the data comes from. Always US National Center for Biotechnology Information (PubChem).
string
public when the data comes from a public body, commercial otherwise
string
When the lookup was made, as an ISO 8601 UTC time
string | null
When the source says the fact was last updated, or null when the source gives no date

Result

Nested under data.result.
object | null
The computed descriptors, or null when the source knows no compound with that identifier.
number
The compound identifier (CID).
string | null
The IUPAC name the source computed. null when the source gives no value.
string | null
The molecular formula, for example C9H8O4. null when the source gives no value.
string | null
The standard InChIKey. null when the source gives no value.
number | null
Molecular weight in g/mol. null when the source gives no value.
number | null
Exact (monoisotopic) mass in Da. null when the source gives no value.
number | null
Computed octanol-water partition coefficient (XLogP). null when the source gives no value.
number | null
Topological polar surface area in square angstroms. null when the source gives no value.
number | null
Number of hydrogen bond donors. null when the source gives no value.
number | null
Number of hydrogen bond acceptors. null when the source gives no value.
number | null
Number of rotatable bonds. null when the source gives no value.
number | null
Number of non-hydrogen atoms. null when the source gives no value.
number | null
Formal charge of the structure. null when the source gives no value.
number | null
The source’s structural complexity score. null when the source gives no value.
string
The compound page at the source.
See Pricing for this tool’s price. A wallet (x402) call receives it in the 402 quote before anything is charged; a call paid from prepaid credits is charged when the API accepts the request and answers 200.

Notes

  • Molecular weight is in g/mol, exact mass in Da and topological polar surface area in square angstroms. A link to the compound page is included.
  • Use it to characterise a compound in a literature review, a screening library or a regulatory file.
  • Give exactly one of cid and inchikey.
  • compound is null when the source knows no compound with that identifier.
  • Synonyms, depositor records, and any synthesis or preparation data are not returned.
  • Results return inline. The finished job stays available at /v1/requests/{request_id}