# openFDA Opioid Adverse Event Scraper

**Use case:** 

Scrape FDA adverse event reports for opioids like oxycodone from openFDA. Get reactions, outcomes, dates and demographics for safety monitoring.

## Input

```json
{
  "maxItems": 50,
  "dataset": "events",
  "searchQuery": "oxycodone",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "safetyReportId": {
    "label": "Report ID",
    "format": "text"
  },
  "reportType": {
    "label": "Report Type",
    "format": "text"
  },
  "serious": {
    "label": "Serious",
    "format": "boolean"
  },
  "receiveDate": {
    "label": "Received",
    "format": "date"
  },
  "primarySourceCountry": {
    "label": "Country",
    "format": "text"
  },
  "patientSex": {
    "label": "Sex",
    "format": "text"
  },
  "patientAge": {
    "label": "Age",
    "format": "text"
  },
  "reactions": {
    "label": "Reactions",
    "format": "array"
  },
  "drugs": {
    "label": "Drugs",
    "format": "array"
  },
  "observedAt": {
    "label": "Scraped",
    "format": "date"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [openFDA Drug Events & Recalls Scraper](https://apify.com/scrapers_lat/openfda-drug-events-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapers_lat/openfda-drug-events-scraper) to learn more, explore other use cases, and run it yourself.