Get Bioactivity
pubchem_get_bioactivityRetrieve bioactivity profile for a PubChem compound, including assay outcomes, target identifiers, and quantitative values. Filter by activity outcome or specific molecular target.
Instructions
Get a compound's bioactivity profile: which assays tested it, activity outcomes (Active/Inactive/Inconclusive), target identifiers (NCBI Gene ID, UniProt/GenBank accession), and quantitative values (IC50, EC50, Ki, etc.). Filter by outcome and/or a specific molecular target (NCBI Gene ID or protein accession) to focus the profile — e.g. "is this compound active against target T?".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. | |
| outcomeFilter | No | Filter by activity outcome. "active" shows only assays where the compound showed activity — most useful for understanding biological profile. Default: "all". | all |
| targetGeneId | No | Filter to assays against this NCBI Gene ID. Obtain Gene IDs from pubchem_search_assays or the targetGeneId field of an unfiltered result here. Combine with outcomeFilter="active" to answer "is this compound active against target T?". | |
| targetAccession | No | Filter to assays against this target protein accession (UniProt/GenBank), e.g. "P35354". Obtain accessions from pubchem_search_assays or the targetAccession field of an unfiltered result here. | |
| maxResults | No | Max assay results to return (1-100). Well-studied compounds have thousands of records. Default: 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID. | |
| totalAssays | Yes | Total unique assays for this compound. | |
| activeCount | Yes | Assays with "Active" outcome. | |
| inactiveCount | Yes | Assays with "Inactive" outcome. | |
| results | Yes | Assay results matching the filter. | |
| outcomeFilter | Yes | Outcome filter applied: active, inactive, or all. | |
| targetFilter | No | Target filter applied (gene ID and/or protein accession), when set. | |
| filteredCount | Yes | Assays matching the outcome and target filters, before the maxResults cap. | |
| returnedCount | Yes | Assays returned after the maxResults cap. | |
| truncated | No | True when results were capped at maxResults — more matching assays exist. | |
| shown | No | Assays returned after the maxResults cap. | |
| cap | No | The maxResults cap that was applied. | |
| notice | No | Recovery guidance when the filter yields no results or the compound has no bioactivity data. |