# MSHA Mine ID Safety History Extractor

**Use case:** 

Extract public MSHA records by mine ID, including inspections, accidents, violations, penalties, and operators.

## Input

```json
{
  "datasetTypes": [
    "mines",
    "inspections",
    "violations",
    "accidents",
    "assessments"
  ],
  "state": "WV",
  "mineId": "0103381",
  "startDate": "2024-01-01",
  "maxItems": 200
}
```

## Output

```json
{
  "datasetType": {
    "label": "Dataset type"
  },
  "mineId": {
    "label": "Mine ID"
  },
  "mineName": {
    "label": "Mine name"
  },
  "operatorName": {
    "label": "Operator"
  },
  "controllerName": {
    "label": "Controller"
  },
  "state": {
    "label": "State"
  },
  "county": {
    "label": "County"
  },
  "coalMetalInd": {
    "label": "Coal/metal"
  },
  "mineType": {
    "label": "Mine type"
  },
  "mineStatus": {
    "label": "Mine status"
  },
  "commodity": {
    "label": "Commodity"
  },
  "eventNo": {
    "label": "Event number"
  },
  "inspectionBeginDate": {
    "label": "Inspection begin"
  },
  "inspectionEndDate": {
    "label": "Inspection end"
  },
  "violationNo": {
    "label": "Violation number"
  },
  "violationIssueDate": {
    "label": "Violation issue date"
  },
  "citationType": {
    "label": "Citation type"
  },
  "regulation": {
    "label": "Regulation"
  },
  "significantSubstantial": {
    "label": "S&S"
  },
  "proposedPenalty": {
    "label": "Proposed penalty"
  },
  "amountDue": {
    "label": "Amount due"
  },
  "amountPaid": {
    "label": "Amount paid"
  },
  "accidentDocumentNo": {
    "label": "Accident document"
  },
  "accidentDate": {
    "label": "Accident date"
  },
  "accidentType": {
    "label": "Accident type"
  },
  "degreeInjury": {
    "label": "Degree of injury"
  },
  "injuries": {
    "label": "Injuries"
  },
  "narrative": {
    "label": "Narrative"
  },
  "assessmentCaseNo": {
    "label": "Assessment case"
  },
  "assessmentStatus": {
    "label": "Assessment status"
  },
  "currentAssessmentAmount": {
    "label": "Current assessment"
  },
  "occurrenceDate": {
    "label": "Occurrence date"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "link"
  },
  "scrapedAt": {
    "label": "Scraped at"
  }
}
```

## About this Actor

This example demonstrates how to use [MSHA Mine Safety Scraper](https://apify.com/automation-lab/msha-mine-safety-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/msha-mine-safety-scraper) to learn more, explore other use cases, and run it yourself.