Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaHealthAvailable now

PubChem: chemical compounds, bioassays, targets and patents · Bioassays

pubchem-ncbi-nlm-nih-gov/compounds/bioassays

Get health and medical data with PubChem: chemical compounds, bioassays, targets and patents · Bioassays from Alexandria through one Spiral API key. Which assays a compound was tested in and what they found, across all PubChem depositors including high-throughput screens ChEMBL does not curate; filter by target for one protein's results. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
cidnumber
1 to …
—

A PubChem CID, instead of compound. Pass exactly one of compound or cid.

kindone of
auto, cid, name, smiles, inchikey, inchi
auto

How to read compound; auto guesses from its shape. Set smiles for short SMILES that read as formulas or names ("CO").

limitnumber
1 to 100
25

Rows per page.

offsetnumber
0 to 100000
0

Rows to skip, from next_offset.

targettext—

Keep rows against this target: a protein accession (UniProt "P00519", RefSeq "NP_005148", GenBank, PDB chain "1IEP_A") or an NCBI Gene ID ("25", "GeneID:25"). Gene symbols are not accepted; look up the Gene ID in gene-ncbi-nlm-nih-gov.

outcomeone of
active, inactive, inconclusive, unspecified, probe, all
active

Keep rows with this outcome.

compoundtext—

The compound: a CID ("5291", "CID 5291"), a name or synonym PubChem knows exactly ("imatinib", "Ozempic", a CAS number "152459-95-5", "CHEMBL941"), an InChIKey, a SMILES, an InChI, or a pubchem.ncbi.nlm.nih.gov/compound/ URL. A name naming several compounds takes PubChem's first and warns with the others.

assay_typeone of
confirmatory, screening, summary, other
—

Keep rows from assays of this type.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "pubchem-ncbi-nlm-nih-gov/compounds/bioassays",
    "input": {
      "compound": "<compound>"
    }
  }'

Frequently asked questions

How much does PubChem: chemical compounds, bioassays, targets and patents · Bioassays cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use PubChem: chemical compounds, bioassays, targets and patents · Bioassays through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "pubchem-ncbi-nlm-nih-gov/compounds/bioassays"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use PubChem: chemical compounds, bioassays, targets and patents · Bioassays?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use PubChem: chemical compounds, bioassays, targets and patents · Bioassays?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.