# Metformin FDA Adverse Event Extractor

**Use case:** 

Extract serious US metformin adverse event reports from openFDA with patient, drug, reaction, and source fields.

## Input

```json
{
  "searchTerms": [
    "metformin"
  ],
  "country": "US",
  "dateFrom": "2024-01-01",
  "seriousness": "serious",
  "sort": "receivedate:desc",
  "maxItems": 100,
  "pageSize": 100
}
```

## Output

```json
{
  "safetyReportId": {
    "label": "Safety report ID"
  },
  "receivedDate": {
    "label": "Received date"
  },
  "serious": {
    "label": "Serious"
  },
  "primarySourceCountry": {
    "label": "Primary source country"
  },
  "occurCountry": {
    "label": "Occurrence country"
  },
  "reporterCountry": {
    "label": "Reporter country"
  },
  "patientSex": {
    "label": "Patient sex"
  },
  "drugNames": {
    "label": "Drug names"
  },
  "reactionTerms": {
    "label": "Reaction terms"
  },
  "reportType": {
    "label": "Report type"
  },
  "companyNumber": {
    "label": "Company number"
  },
  "drugs": {
    "label": "Drug details"
  },
  "reactions": {
    "label": "Reaction details"
  },
  "openfdaDisclaimer": {
    "label": "FDA disclaimer"
  },
  "sourceUrl": {
    "label": "Source API URL"
  },
  "scrapedAt": {
    "label": "Scraped at"
  },
  "rawRecord": {
    "label": "Raw openFDA record"
  }
}
```

## About this Actor

This example demonstrates how to use [openFDA Drug Adverse Event Scraper](https://apify.com/automation-lab/openfda-drug-adverse-event-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/openfda-drug-adverse-event-scraper) to learn more, explore other use cases, and run it yourself.