> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/getting-started/epa-facilities.md).

# EPA facility compliance in Duaer

In Duaer: US EPA ECHO: regulated facilities with compliance status, significant violations, and inspections. One successful search uses 1 credit.
## What you get

Duaer EPA facility compliance searches active facilities in EPA ECHO by state, city, ZIP, or name, most violations first.

Pick Duaer Data → EPA facility compliance in the node creator, or open the [data market](/getting-started/data-market.md). Related: [Regulations.gov documents](/getting-started/regulations.md), [Greenhouse gas levels](/getting-started/greenhouse-gases.md).

## When to use it

- List facilities with significant violations in a city.
- Check the compliance record of a refinery.

## When not to use it

- Air quality and weather. Use [Weather forecast](/getting-started/weather.md).
- Federal rules. Use [Regulations.gov documents](/getting-started/regulations.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → EPA facility compliance.
2. Fill State (such as CA). Optional: City (such as Oakland), ZIP, Facility Name.
3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

## Call the API

- GET https://api.duaer.com/v1/data/epa-facilities?state=CA&city=Oakland
- Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

## Call skill

Same text as Copy skill.

```
---
name: duaer-epa-facilities
description: >-
  Duaer EPA facility compliance. US EPA ECHO: regulated facilities with compliance status, significant violations, and inspections.
  One successful search uses 1 Duaer credit.
---

# Duaer EPA facility compliance

Duaer EPA facility compliance searches active facilities in EPA ECHO by state, city, ZIP, or name, most violations first.

## When to use

- List facilities with significant violations in a city.
- Check the compliance record of a refinery.

## When not to use

- Air quality and weather. Use https://skills.duaer.com/weather.md.
- Federal rules. Use https://skills.duaer.com/regulations.md.

## Call

`GET https://api.duaer.com/v1/data/epa-facilities?state=CA&city=Oakland`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `state` or `zip`.

- `state` — Two-letter code such as CA.
- `city` — Optional. City name such as Oakland.
- `zip` — Optional. Five-digit ZIP code instead of or with the state.
- `name` — Optional. Words in the facility name.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/epa-facilities?state=CA&city=Oakland` — Oakland facilities, most violations first.
- `GET https://api.duaer.com/v1/data/epa-facilities?state=TX&name=refinery` — Texas refineries.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `registryId`, `name`, `street`, `city`, `state`, `zip` — facility.
- `complianceStatus`, `significantViolation` — current status.
- `quartersInNonCompliance`, `inspections`, `lastInspection` — record over three years.
- `programs`, `latitude`, `longitude` — EPA programs and location.

A broad state search can take several seconds.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/regulations.md — Duaer Regulations.gov documents
- https://skills.duaer.com/greenhouse-gases.md — Duaer Greenhouse gas levels

```
## Questions

### How many credits does a EPA facility compliance search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

### What is a significant violation in Duaer EPA facility compliance?

A high-priority violation as EPA defines it, usually a large release or long non-compliance.

## Related

- [Regulations.gov documents in Duaer](https://doc.duaer.com/getting-started/regulations.md)
- [Greenhouse gas levels in Duaer](https://doc.duaer.com/getting-started/greenhouse-gases.md)

