Get Compound Cross-References
pubchem_get_compound_xrefsRetrieve external database cross-references for a PubChem compound, including PubMed citations, patent IDs, gene associations, registry numbers, and taxonomy IDs. Results are capped per type with total counts reported.
Instructions
Get external database cross-references for a compound: PubMed citations, patent IDs, gene/protein associations, registry numbers, and taxonomy IDs. Results are capped per type with total counts reported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. | |
| xrefTypes | Yes | Cross-reference types to retrieve. String IDs: RegistryID (DSSTox/EPA registry numbers), RN (CAS numbers), PatentID. Numeric IDs: PubMedID, GeneID (NCBI Gene), ProteinGI (legacy NCBI Protein GI), TaxonomyID. | |
| maxPerType | No | Max IDs to return per xref type (1-500). A compound may have thousands of PubMed references. Total count always reported. Default: 50. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | PubChem Compound ID. | |
| xrefs | Yes | Cross-references grouped by type. |