# EPA NESHAP Asbestos & Demolition 10-Day Leads Scraper (`zinky_atelier/epa-neshap-demolition-leads`) Actor

Extract pre-mobilization EPA NESHAP asbestos abatement and demolition 10-day notices across Missouri DNR, Cook County IL, City of Chicago, and NYC DEP ACP7. Unified B2B lead schema with contractor contacts, mobilization dates, and stateful SEEN_NOTICES delta alerts.

- **URL**: https://apify.com/zinky_atelier/epa-neshap-demolition-leads.md
- **Developed by:** [Travis Burrows](https://apify.com/zinky_atelier) (community)
- **Categories:** Lead generation, Real estate, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.40 / 1,000 epa neshap demolition or abatement notices

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## EPA NESHAP Asbestos & Demolition 10-Day Leads Scraper

Extract real-time **EPA NESHAP 10-day pre-mobilization demolition and asbestos abatement notices** across four major US metro/state Socrata portals—normalized into one unified B2B lead schema with contractor contacts, mobilization countdowns (`daysUntilMobilization`), date-typo sanitization, and stateful `SEEN_NOTICES` delta alerting.

Built for **roll-off dumpster haulers, scrap metal recyclers, heavy equipment rental desks, environmental air-monitoring labs, site-security fencing vendors, and commercial real estate redevelopment teams** who need verified projects *before* crews mobilize on site.

***

### Covered Official Jurisdictions (Zero Proxy Cost)

| Jurisdiction ID | Agency & Portal | Live Socrata Dataset | Typical Lead Data |
| :--- | :--- | :--- | :--- |
| `missouri_dnr` | Missouri Dept. of Natural Resources (`data.mo.gov`) | `vatz-3gek` | Demolition & renovation notices, owner, demolition contractor, **contact person & phone**, ACM type/quantity, start/end dates |
| `cook_county_il` | Cook County Dept. of Environment & Sustainability (`datacatalog.cookcountyil.gov`) | `gpmj-6p9q` | Demolition & asbestos permits, contractor, **building sq ft**, floors, permit status, start/end dates |
| `chicago_doe` | City of Chicago Dept. of Public Health / DOE (`data.cityofchicago.org`) | `qhb4-qx8k` | Demolition Notice of Intent, Asbestos Notifications, combined demo+abatement, applicant/contractor, **lat/lng coordinates** |
| `nyc_dep_acp7` | NYC Dept. of Environmental Protection ACP7 (`data.cityofnewyork.us`) | `vq35-j9qm` | Asbestos abatement TRU filings deduplicated per project, building owner, abatement contractor, **ACM square/linear feet**, borough, lat/lng |

***

### Key Features

- **Unified Pre-Mobilization Lead Schema:** Harmonizes four completely different Socrata schemas into consistent fields (`noticeId`, `jurisdiction`, `workType`, `siteAddress`, `city`, `state`, `zipCode`, `ownerName`, `demolitionContractor`, `abatementContractor`, `contactName`, `contactPhone`, `workStartDate`, `workEndDate`, `daysUntilMobilization`, `buildingSqFt`, `asbestosAmount`, `latitude`, `longitude`, `changeType`).
- **Bogus Future-Year Date Sanitization:** Raw municipal filings regularly include clerk date typos such as `2423`, `3026`, or `9820` that break naive `ORDER BY date DESC` queries. This Actor bounds every SoQL query and post-filters out bogus future years (`> currentYear + 2`).
- **Multi-Row ACP7 Project Aggregation:** NYC DEP ACP7 emits one row per floor/section; this Actor consolidates rows sharing the same `TRU` into a single project lead with combined ACM scope.
- **Balanced Multi-Metro Emission:** Interleaves results round-robin across selected jurisdictions so even small `maxItems` runs return leads from every selected metro.
- **Stateful `SEEN_NOTICES` Delta Tracking:** Enable `onlyNew: true` on daily scheduled runs to skip unchanged notices and emit only brand-new filings (`NEW_NOTICE`) or rescheduled start/status updates (`SCHEDULE_UPDATED`).
- **Fail-Loud Upstream Health Checks:** Detects HTTP 5xx errors and HTML/WAF block pages instead of silently writing empty datasets.

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `jurisdictions` | `string[]` | All 4 portals | Jurisdictions to query: `missouri_dnr`, `cook_county_il`, `chicago_doe`, `nyc_dep_acp7`. |
| `workTypes` | `string` | `"ALL"` | Filter by `ALL`, `DEMOLITION`, or `ABATEMENT_RENOVATION`. |
| `upcomingOnly` | `boolean` | `false` | If `true`, keeps only projects mobilizing today or in the future (`daysUntilMobilization >= 0`), sorted soonest-first. |
| `requirePhone` | `boolean` | `false` | If `true`, emits only leads with a valid normalized US phone number. |
| `city` | `string` | `""` | Optional case-insensitive city or NYC borough filter (e.g. `Chicago`, `Manhattan`, `Joplin`, `Northbrook`). |
| `onlyNew` | `boolean` | `false` | Stateful delta mode using KV Store `SEEN_NOTICES` to emit only `NEW_NOTICE` and `SCHEDULE_UPDATED` records. |
| `maxItems` | `integer` | `25` | Maximum unified notices to emit (`1..5000`). |

#### Example Input

```json
{
  "jurisdictions": [
    "missouri_dnr",
    "cook_county_il",
    "chicago_doe",
    "nyc_dep_acp7"
  ],
  "workTypes": "ALL",
  "upcomingOnly": true,
  "requirePhone": false,
  "city": "",
  "onlyNew": true,
  "maxItems": 100
}
```

***

### Sample Output Record

```json
{
  "noticeId": "missouri_dnr:13371-2026",
  "sourceNoticeNumber": "13371-2026",
  "jurisdiction": "missouri_dnr",
  "jurisdictionLabel": "Missouri DNR (Demolition & Asbestos)",
  "workType": "DEMOLITION",
  "rawWorkType": "DEMOLITION",
  "status": "Paid",
  "siteAddress": "210 E Third St",
  "city": "Cameron",
  "state": "MO",
  "zipCode": "64429",
  "ownerName": "Grubbs Investments",
  "demolitionContractor": "Grubbs Construction",
  "abatementContractor": null,
  "contactName": "John Oaks",
  "contactPhone": "(816) 219-4223",
  "workStartDate": "2026-11-22",
  "workEndDate": "2026-12-07",
  "daysUntilMobilization": 4,
  "buildingSqFt": null,
  "asbestosAmount": null,
  "latitude": null,
  "longitude": null,
  "changeType": "NEW_NOTICE",
  "previousWorkStartDate": null,
  "previousStatus": null,
  "sourceUrl": "https://data.mo.gov/resource/vatz-3gek.json?demo_project=13371-2026",
  "scrapedAt": "2026-11-18T22:15:00.000Z"
}
```

***

### Key-Value Store Artifacts

- `SEEN_NOTICES`: Persistent ledger of every observed `noticeId`, `workStartDate`, `workEndDate`, and `status` (stored in both default KV store and named store `epa-neshap-seen-notices`).
- `RUN_SUMMARY`: Run telemetry including per-jurisdiction row counts, bogus future dates rejected, new vs. rescheduled vs. skipped counts, and `ppeEventsCharged`.

***

### Pay-Per-Event (PPE) Pricing

| Event | Type | Pricing |
| :--- | :--- | :--- |
| `actor-start` | One-time per run | `$0.05` |
| `demolition-notice` | Primary per emitted notice | Tiered: `$0.012` (FREE) down to `$0.0084` (GOLD / PLATINUM / DIAMOND) |

# Actor input Schema

## `jurisdictions` (type: `array`):

Select which live Socrata EPA NESHAP / demolition portals to query. Results are interleaved fairly across selected jurisdictions.

## `workTypes` (type: `string`):

Filter notices to structural demolitions, asbestos abatement/renovation projects, or all NESHAP work types.

## `upcomingOnly` (type: `boolean`):

When enabled, filters strictly to projects whose sanitized mobilization start date is today or in the future (daysUntilMobilization >= 0), ordered soonest-first.

## `requirePhone` (type: `boolean`):

When enabled, emits only notices that include a valid normalized contact telephone number (primarily populated on Missouri DNR filings).

## `city` (type: `string`):

Optional case-insensitive substring match against site city or NYC borough (e.g. 'Chicago', 'Manhattan', 'Joplin', 'Northbrook'). Leave blank for all cities.

## `onlyNew` (type: `boolean`):

Persists seen notice IDs, mobilization start dates, and statuses in Key-Value Store ('SEEN_NOTICES'). When enabled on scheduled runs, skips unchanged notices and emits only brand-new filings ('NEW_NOTICE') or schedule/status revisions ('SCHEDULE_UPDATED').

## `maxItems` (type: `integer`):

Maximum total number of unified pre-mobilization notices to emit in this run across all selected jurisdictions.

## Actor input object example

```json
{
  "jurisdictions": [
    "missouri_dnr",
    "cook_county_il",
    "chicago_doe",
    "nyc_dep_acp7"
  ],
  "workTypes": "ALL",
  "upcomingOnly": false,
  "requirePhone": false,
  "city": "",
  "onlyNew": false,
  "maxItems": 25
}
```

# Actor output Schema

## `notices` (type: `string`):

Dataset of unified demolition and asbestos abatement notices with contractor contacts, mobilization dates, days until mobilization, and delta status.

## `seenNotices` (type: `string`):

Persistent delta state of seen notice IDs, mobilization start dates, and statuses across scheduled runs.

## `runSummary` (type: `string`):

JSON summary of queried jurisdictions, emitted notices, skipped unchanged notices, jurisdiction counts/errors, and PPE event charges.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "jurisdictions": [
        "missouri_dnr",
        "cook_county_il",
        "chicago_doe",
        "nyc_dep_acp7"
    ],
    "workTypes": "ALL",
    "upcomingOnly": false,
    "requirePhone": false,
    "city": "",
    "onlyNew": false,
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinky_atelier/epa-neshap-demolition-leads").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "jurisdictions": [
        "missouri_dnr",
        "cook_county_il",
        "chicago_doe",
        "nyc_dep_acp7",
    ],
    "workTypes": "ALL",
    "upcomingOnly": False,
    "requirePhone": False,
    "city": "",
    "onlyNew": False,
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("zinky_atelier/epa-neshap-demolition-leads").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "jurisdictions": [
    "missouri_dnr",
    "cook_county_il",
    "chicago_doe",
    "nyc_dep_acp7"
  ],
  "workTypes": "ALL",
  "upcomingOnly": false,
  "requirePhone": false,
  "city": "",
  "onlyNew": false,
  "maxItems": 25
}' |
apify call zinky_atelier/epa-neshap-demolition-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinky_atelier/epa-neshap-demolition-leads"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/jbgy9NkDlcJkLJdCL/builds/M50Y0VvHsoUYHsbBb/openapi.json
