Skip to main content
POST
Returns the federal environmental compliance record, from the US Environmental Protection Agency, of the facilities matching a company or facility name: compliance status, significant violations, quarters in violation, inspections, enforcement actions and penalties over five years. A match is by the words of the name, not verified ownership: tell facilities apart by address and registry id.

Authentication

Requires x402 payment in the payment-signature header.

Request Body

string
required
Whole words of one facility name, in any order and without commas, for example TESLA MOTORS; a part of a word matches nothing. 3 to 100 characters. A name carries no comma: the source reads a comma as a separator between alternative names.
string
US state or territory postal code that limits the search to facilities in that state. A state is its two-letter postal code, for example CA.
integer
How many facilities to return. From 1 to 25. Defaults to 10.

Response (200 OK)

Top-level envelope: success (boolean) and data (object). All fields below are nested under data.
string
Durable job ID for audit and lookup
string
Job status: completed
string
Always company_environmental_compliance
object
The answer, described under Result below
object
Where the answer came from and when
boolean
true when the answer was served from OneShot’s store of earlier lookups (or its own copy of a public dataset), false when the source was asked for this call
string
When the record was obtained from its source, as an ISO 8601 UTC time; equals evidence.retrieved_at
string
The public body the data comes from. Always US Environmental Protection Agency.
string
public when the data comes from a public body, commercial otherwise
string
When the lookup was made, as an ISO 8601 UTC time
string | null
When the source says the fact was last updated, or null when the source gives no date

Result

Nested under data.result.
number
How many facilities the search matched to the name, including any beyond limit; a count of matches, not of facilities verified to belong to the named company.
number | null
Penalties from formal enforcement actions in the last five years, in US dollars, summed over every facility the search matched, whether or not it belongs to the named company. null when the source gives no value.
object[]
The matching facilities, in the order the source lists them, at most limit.
string | null
The facility name as the source records it. null when the source gives no value.
string | null
Street address. null when the source gives no value.
string | null
City. null when the source gives no value.
string | null
Two-letter state code. null when the source gives no value.
string | null
ZIP code. null when the source gives no value.
string | null
The identifier the source gives the facility across every program. null when the source gives no value.
string[]
The NAICS industry codes recorded for the facility.
string | null
The overall compliance status the source records, for example Significant Violation, Violation Identified or No Violation Identified. null when the source gives no value.
boolean | null
True when the source currently designates the facility a high priority violator under the Clean Air Act, in significant noncompliance under the Clean Water Act or the hazardous waste program, or a serious violator under the Safe Drinking Water Act. null when the source gives no value.
integer | null
How many of the last twelve quarters the facility had a violation identified, was in noncompliance, or was a significant or high priority violator. null when the source gives no value.
integer | null
Compliance monitoring activities at the facility in the last five years. null when the source gives no value.
string | null
When the most recent compliance monitoring activity took place, YYYY-MM-DD. null when the source gives no value.
integer | null
Formal enforcement actions taken against the facility in the last five years. null when the source gives no value.
number | null
Penalties assessed against the facility in the last five years, in US dollars. null when the source gives no value.
string | null
When the most recent penalty was assessed, YYYY-MM-DD. null when the source gives no value.
See Pricing for this tool’s price. A wallet (x402) call receives it in the 402 quote before anything is charged; a call paid from prepaid credits is charged when the API accepts the request and answers 200.

Notes

  • Optionally narrow to one US state with state.
  • For each facility: its address and registry id, its overall compliance status, whether it is currently a significant violator, how many of the last twelve quarters it was in violation, its inspections, formal enforcement actions and penalties over the last five years, and when it was last inspected and last penalised. The result also gives how many facilities matched in all and their penalties summed.
  • Use it to check a supplier, a site or a counterparty against federal air, water, hazardous waste and drinking water programs.
  • Covers US facilities regulated under federal environmental programs.
  • The source matches every whole word of the name, in any order, against the current and alternate names a facility carries across its programs: a part of a word matches nothing, a search for Tesla also returns a facility on Tesla Road, and a facility matched under an alternate name may show a name without one of the words.
  • The totals count every facility the search matched, not facilities verified to belong to the named company.
  • total_facilities is 0 and facilities is empty when no facility name carries every word. A count or date is null when the source does not record it.
  • Results return inline. The finished job stays available at /v1/requests/{request_id}