# EPA California Facility Compliance Scraper

**Use case:** 

Pull California regulated facilities from EPA ECHO with compliance status, violations, inspections and penalties.

## Input

```json
{
  "maxItems": 50,
  "withDetails": true,
  "state": "CA",
  "activeOnly": false,
  "majorOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "facilityName": {
    "label": "Facility",
    "format": "text"
  },
  "city": {
    "label": "City",
    "format": "text"
  },
  "state": {
    "label": "State",
    "format": "text"
  },
  "zip": {
    "label": "ZIP",
    "format": "text"
  },
  "registryId": {
    "label": "FRS Registry ID",
    "format": "text"
  },
  "naics": {
    "label": "NAICS",
    "format": "text"
  },
  "complianceStatus": {
    "label": "Compliance Status",
    "format": "text"
  },
  "inspectionsLast5yr": {
    "label": "Inspections (5yr)",
    "format": "number"
  },
  "violationsCurrent": {
    "label": "Programs in Violation",
    "format": "number"
  },
  "formalActionsLast5yr": {
    "label": "Formal Actions (5yr)",
    "format": "number"
  },
  "totalPenaltiesUsd": {
    "label": "Total Penalties (USD)",
    "format": "number"
  },
  "lastInspectionDate": {
    "label": "Last Inspection",
    "format": "date"
  },
  "dfrUrl": {
    "label": "DFR",
    "format": "link"
  },
  "observedAt": {
    "label": "Scraped",
    "format": "date"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [EPA ECHO Facility Compliance Scraper](https://apify.com/scrapers_lat/epa-echo-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapers_lat/epa-echo-scraper) to learn more, explore other use cases, and run it yourself.