# fittings PubChem Compound Lookup

> fittings PubChem Compound Lookup is a paid API for AI agents from fittings.sh, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Returns structure and computed physicochemical properties (formula, molecular weight, InChI, logP, TPSA, H-bond counts) for a chemical compound identified by name, CAS number, PubChem CID, or SMILES.

## Facts

- Endpoint: GET https://fittings.sh/v1/chem/pubchem-compound
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-pubchem-compound-lookup-403be1fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d2nYZc3IrIbJjOANln9a2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fittings-pubchem-compound-lookup-403be1fa
```

Example prompt: What are the molecular weight, logP, TPSA, and H-bond donor/acceptor counts for ibuprofen? You can look it up by its CAS number 15687-27-1.

## When to prefer this

Use this endpoint when you need fast, structured physicochemical property data for a known compound identified by name, CAS number, PubChem CID, or SMILES — especially for drug-likeness checks, cheminformatics pipelines, or any workflow needing logP, TPSA, or H-bond counts without spinning up a local chemistry toolkit. Prefer this over raw PubChem API calls for its simplicity, consistent JSON schema, and pay-per-call pricing with no API key management.

## Known failure modes

- Compound name not found in PubChem — returns an error or empty result
- Invalid SMILES string causes a parse failure
- Ambiguous compound name matching multiple records may return the most common entry
- CAS number not indexed in PubChem returns no result
- Missing all query parameters (name, cid, smiles) results in a 400-style validation error

## How this service works

Structure and computed properties for a compound by name, CAS number, PubChem CID or SMILES: formula, weight, InChI, logP, TPSA and H-bond counts.

## Output

Returns a JSON object containing the compound's molecular formula, molecular weight, canonical SMILES, InChI, InChIKey, logP (XLogP3), topological polar surface area (TPSA), H-bond donor count, H-bond acceptor count, and PubChem CID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "cid": {
       "type": "number",
       "description": "PubChem compound id"
      },
      "name": {
       "type": "string",
       "description": "Compound name or CAS number, e.g. aspirin or 50-78-2"
      },
      "smiles": {
       "type": "string",
       "description": "SMILES string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-pubchem-compound-lookup-403be1fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
