# Psychoactive Compound Data Extractor from PubChem

**Use case:** 

Retrieve detailed data for psychoactive compounds like caffeine, nicotine, and morphine. Get molecular properties, synonyms, and chemical identifiers.

## Input

```json
{
  "mode": "byName",
  "names": [
    "caffeine",
    "nicotine",
    "morphine",
    "codeine",
    "theobromine",
    "cocaine",
    "amphetamine",
    "MDMA",
    "psilocybin",
    "ketamine"
  ],
  "maxResults": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "cid": {
    "label": "CID",
    "format": "string"
  },
  "name": {
    "label": "Name",
    "format": "string"
  },
  "molecularFormula": {
    "label": "Molecular Formula",
    "format": "string"
  },
  "molecularWeight": {
    "label": "Molecular Weight",
    "format": "number"
  },
  "canonicalSMILES": {
    "label": "SMILES",
    "format": "string"
  },
  "inchiKey": {
    "label": "InChIKey",
    "format": "string"
  },
  "iupacName": {
    "label": "IUPAC Name",
    "format": "string"
  },
  "xlogp": {
    "label": "XLogP",
    "format": "number"
  },
  "exactMass": {
    "label": "Exact Mass",
    "format": "number"
  },
  "tpsa": {
    "label": "TPSA",
    "format": "number"
  },
  "hBondDonorCount": {
    "label": "H-Bond Donors",
    "format": "number"
  },
  "hBondAcceptorCount": {
    "label": "H-Bond Acceptors",
    "format": "number"
  },
  "rotatableBondCount": {
    "label": "Rotatable Bonds",
    "format": "number"
  },
  "heavyAtomCount": {
    "label": "Heavy Atoms",
    "format": "number"
  },
  "charge": {
    "label": "Charge",
    "format": "number"
  },
  "complexity": {
    "label": "Complexity",
    "format": "number"
  },
  "synonyms": {
    "label": "Synonyms",
    "format": "string"
  },
  "pubchemUrl": {
    "label": "PubChem URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [PubChem Scraper — Compounds, Properties & SMILES](https://apify.com/logiover/pubchem-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/logiover/pubchem-scraper) to learn more, explore other use cases, and run it yourself.