# env-facility

> env-facility is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-11).

Returns a comprehensive environmental due-diligence report for a US facility, fusing EPA compliance status, enforcement history, penalties, toxic releases, and greenhouse gas data into a single JSON verdict with a 0–100 environmental-risk score.

## Facts

- Endpoint: GET https://payai.agentstools.dev/env/facility?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/env-facility-536d5704
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DY5-wFhlq5fWxIST4zq8u

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability env-facility-536d5704
```

Example prompt: Pull the EPA environmental risk report for the 3M facility at 225 Bush Lake Road, Eden Prairie, MN — I need their compliance status, any enforcement actions or penalties, toxic releases, and the overall environmental risk score.

## When to prefer this

Choose this endpoint when you need a single, pre-fused environmental intelligence report for a specific US facility without manually querying EPA ECHO, TRI, and GHGRP separately. Ideal for due diligence workflows (M&A, real estate, supply chain), regulatory compliance audits, and environmental risk scoring where a numeric 0–100 score and cited sources are required in one call. Prefer over manual EPA portal lookups when speed and structured output matter.

## Known failure modes

- No matching facility found for the given name, address, or coordinates — returns empty result or 404
- Ambiguous company name matching multiple facilities — may return best-guess match or require state/radius narrowing
- Coordinates outside the US or radius exceeding 25 miles — returns validation error
- EPA data gaps for very small or recently registered facilities — partial data with lower confidence score
- Rate limit or payment failure (x402) — returns 402 Payment Required

## How this service works

US facility environmental due-diligence: one cited JSON verdict fusing EPA compliance status, enforcement history, penalties, toxic releases and reported greenhouse gases, with a 0 to 100 environmental-risk score, for a company name, EPA FRS registry id, address, or coordinates.

## Output

A structured JSON object containing: the facility's EPA FRS registry details, current compliance status (e.g. in violation or compliant), a full enforcement action history with dates and case summaries, cumulative penalty amounts, Toxics Release Inventory (TRI) chemical release data, EPA GHGRP greenhouse gas emission figures, and a synthesized environmental risk score from 0 (low risk) to 100 (high risk), with source citations for each data point.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude [-90,90] (with lon)"
      },
      "lon": {
       "type": "number",
       "description": "Longitude [-180,180] (with lat)"
      },
      "name": {
       "type": "string",
       "description": "Company or facility name"
      },
      "state": {
       "type": "string",
       "description": "2-letter US state (narrows a name search)"
      },
      "radius": {
       "type": "number",
       "description": "Search radius in miles (default 5, max 25)"
      },
      "address": {
       "type": "string",
       "description": "US street address (auto-geocoded)"
      },
      "registry_id": {
       "type": "string",
       "description": "EPA FRS Registry ID"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/env-facility-536d5704/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
