# CalRecycle SWIS Waste & Recycling Facility Permits Scraper (`zinky_atelier/calrecycle-swis-waste-facility-permits`) Actor

Extract California solid waste, recycling, organics composting, transfer station, and landfill permits, proposed projects, operator HQ contacts, inspections, and enforcement actions from CalRecycle SWIS. Built for daily scheduled delta alerts, Clay/CRM enrichment, and MCP agents.

- **URL**: https://apify.com/zinky_atelier/calrecycle-swis-waste-facility-permits.md
- **Developed by:** [Travis Burrows](https://apify.com/zinky_atelier) (community)
- **Categories:** Lead generation, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $14.00 / 1,000 swis facility permit records

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

## CalRecycle SWIS Waste & Recycling Facility Permits Scraper

Extract California **solid waste, recycling, organics composting, transfer/processing station, C\&D recovery, and landfill facility permits** directly from the official **CalRecycle Solid Waste Information System (SWIS)** database.

Built with pure HTTP/JSON + lightweight HTML parsing (`256 MB` RAM, zero headless browser overhead, zero residential proxies required) for **daily scheduled delta monitoring**, **Clay / HubSpot / Salesforce B2B enrichment**, **Make / n8n automations**, and **AI MCP tool calling**.

***

### Why Monitor CalRecycle SWIS Permits & Inspections?

California's SB 1383 organics diversion mandates, municipal recycling expansions, and landfill closures drive continuous capital spending across **3,000+ regulated solid waste and recycling sites** across all 58 California counties.

| Target B2B Workflow | Recommended Filter Setup |
| :--- | :--- |
| **Heavy Equipment, Shredder, Baler, Trommel & Fleet Sales** | `regulatoryStatus: "Proposed"`, `onlyNew: true` — Catch brand-new transfer stations, MRF expansions, and organics composting facilities before construction & equipment procurement close. |
| **Environmental Engineering, Odor/Stormwater & Geosynthetics Firms** | `regulatoryStatus: "Permitted"`, `operationalStatus: "Active"`, `enrichFacilityDetails: true` — Identify facilities with `hasRecentViolation: true` or open `activeEnforcementCount > 0` needing immediate compliance remediation. |
| **Commercial Environmental / Pollution Liability Insurance Brokers** | Query multi-county portfolios (`Los Angeles, Orange, San Bernardino, Riverside`) enriched with `operatorName`, `operatorHqAddress`, `operatorPhone`, `landOwners`, and inspection histories for Clay/CRM outbound. |
| **Organics Hauling, Waste Brokerage & M\&A Roll-Up Scouts** | Search by keyword (`"Compost"`, `"Transfer"`, `"Organics"`) and track status transitions (`Proposed` -> `Permitted`, `Active` -> `Closing`) via stateful `SEEN_FACILITIES` delta tracking. |

***

### Key Capabilities

- **Full 58-County California Coverage:** Filter by one or multiple California counties (`"Los Angeles, Alameda, San Diego"`) or query statewide.
- **Regulatory & Operational Lifecycle Filters:** Target `Proposed` (pre-permit project leads), `Permitted`, `Notification`, `Exempt`, `Unpermitted`, `Planned`, `Active`, `Closing`, or `Closed` sites.
- **Deep Facility Detail Enrichment (`enrichFacilityDetails: true`):**
  - Physical site street address, city, ZIP code, and full formatted address
  - Facility Operator legal name, HQ mailing address, and direct phone number
  - Local Enforcement Agency (LEA) department, address, and phone + CalRecycle staff contact email/phone
  - Permitted SWIS Activities (category, classification, status, public access)
  - Recent LEA/CalRecycle Inspections (dates, inspector, violation & area-of-concern flags)
  - Enforcement Actions (Notice & Order numbers, program, status, compliance deadlines)
- **Stateful `SEEN_FACILITIES` Delta Tracking (`onlyNew: true`):** Remembers seen SWIS numbers and their Regulatory/Operational status across scheduled runs—emitting only `NEW_FACILITY` additions and `STATUS_CHANGED` transitions (e.g., `Proposed` -> `Permitted`) while skipping unchanged records before detail enrichment.

***

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

This Actor uses transparent Apify **Pay-Per-Event** billing. Skipped duplicate records in `onlyNew: true` delta mode are **never** charged.

| Event Name | When It Is Charged | Description |
| :--- | :--- | :--- |
| `actor-start` | Once per run | Covers initial Actor startup and SWIS grid query initialization. |
| `facility-record` | Per emitted dataset item | Charged for each matching facility record written to the output dataset. |
| `facility-detail-enriched` | Per enriched dataset item | Charged only when `enrichFacilityDetails: true` fetches & parses the full SWIS Summary, Sub-Grids, and Details profile. |

***

### Copy-Paste Example Input

```json
{
  "county": "Alameda, Los Angeles",
  "regulatoryStatus": "Proposed",
  "operationalStatus": "",
  "searchQuery": "",
  "enrichFacilityDetails": true,
  "onlyNew": true,
  "maxItems": 50
}
```

### Sample Output Record

```json
{
  "swisNumber": "01-AA-0332",
  "siteId": 5661,
  "facilityName": "California Waste Solutions North Gateway RF",
  "county": "Alameda",
  "state": "CA",
  "regulatoryStatus": "Proposed",
  "operationalStatus": "Planned",
  "enforcementAgency": "Alameda County",
  "detailsEnriched": true,
  "siteStreetAddress": "2308 Wake Avenue",
  "siteCity": "Oakland",
  "siteZipCode": "94607",
  "siteFullAddress": "2308 Wake Avenue, Oakland, CA 94607",
  "operatorName": "California Waste Solutions, Inc.",
  "operatorStreetAddress": "1121 Embarcadero Ste 310",
  "operatorCityStateZip": "Oakland, CA 94606",
  "operatorHqAddress": "1121 Embarcadero Ste 310, Oakland, CA 94606",
  "operatorPhone": "(510) 488-0100",
  "localEnforcementAgency": {
    "agencyName": "County of Alameda",
    "department": "Environmental Health Department",
    "address": "1131 Harbor Bay Pkwy, Alameda, CA 94502-6540",
    "phone": "(510) 567-6790"
  },
  "calRecycleContact": {
    "name": "Alexis DeSchryver",
    "email": "Alexis.DeSchryver@CalRecycle.ca.gov",
    "phone": "(916) 341-6806"
  },
  "activityCount": 1,
  "activities": [
    {
      "activity": "Large Volume Transfer/Processing Facility",
      "category": "Transfer/Processing",
      "classification": "Solid Waste Facility",
      "operationalStatus": "Planned",
      "regulatoryStatus": "Proposed",
      "publicAccess": false
    }
  ],
  "inspectionCount": 0,
  "lastInspectionDate": null,
  "hasRecentViolation": false,
  "recentInspections": [],
  "enforcementActionCount": 0,
  "activeEnforcementCount": 0,
  "enforcementActions": [],
  "documentCount": 21,
  "changeType": "NEW_FACILITY",
  "previousRegulatoryStatus": null,
  "previousOperationalStatus": null,
  "summaryUrl": "https://www2.calrecycle.ca.gov/SolidWaste/Site/Summary/01-AA-0332",
  "scrapedAt": "2026-11-14T04:25:00.000Z"
}
```

***

### Automated Daily Delta Schedule (Clay / Make / n8n / Slack)

1. Save a Task in Apify Console with `onlyNew: true` and `enrichFacilityDetails: true`.
2. Attach a daily or weekly **Apify Schedule** and connect your **Clay**, **Make**, **n8n**, or **Slack** webhook to the default dataset.
3. Run 1 establishes your baseline in `SEEN_FACILITIES`. Subsequent runs automatically skip previously seen unchanged facilities and emit only `NEW_FACILITY` and `STATUS_CHANGED` permits.

***

### How Much Does It Cost? (Tiered Pay-Per-Event Pricing)

Skipped unchanged facilities in `onlyNew: true` mode cost `$0`. Paid Apify plans automatically receive progressive per-record discounts:

| Event | One-Time? | Free Plan | Bronze | Silver | Gold / Enterprise |
| :--- | :---: | :---: | :---: | :---: | :---: |
| `actor-start` | Yes | `$0.02` | `$0.02` | `$0.02` | `$0.02` |
| `facility-record` *(Primary)* | No | `$0.02` | `$0.018` | `$0.016` | `$0.014` |
| `facility-detail-enriched` | No | `$0.01` | `$0.009` | `$0.008` | `$0.007` |

#### Clay, Make, n8n & AI Agent (`mcp.apify.com`) Chaining

- **Clay.com / CRE Due Diligence:** Export operator HQ contacts, LEA agencies, and inspection/enforcement counts in JSON or CSV for environmental insurance and equipment outbound.
- **AI Agents & MCP (`mcp.apify.com`):** Let compliance and market-research agents query California SWIS solid waste, recycling, and composting permits live via MCP.

# Actor input Schema

## `county` (type: `string`):

Filter by one or more California county names (comma-separated, e.g. 'Los Angeles' or 'Alameda, Contra Costa, Orange'). Leave blank to query all 58 California counties.

## `regulatoryStatus` (type: `string`):

Filter by CalRecycle SWIS Regulatory Status. Select 'Proposed' for pre-permit new facility leads or 'Permitted' for licensed operating facilities. Leave blank for all statuses.

## `operationalStatus` (type: `string`):

Filter by Site Operational Status ('Planned', 'Active', 'Inactive', 'Closing', 'Closed', 'Clean Closed', 'Absorbed', 'Abandoned', 'To be Determined'). Leave blank for all operational statuses.

## `searchQuery` (type: `string`):

Optional text search matching Site Name, SWIS Number (e.g. '01-AA-0003'), or facility alias/AKA (e.g. 'Transfer', 'Compost', 'Organics', 'Landfill').

## `enrichFacilityDetails` (type: `boolean`):

Fetches each facility's SWIS Summary & Detail profile to extract physical site address, lat/long coordinates, operator name & HQ address/phone, landowners, Local Enforcement Agency (LEA), permitted activities, recent inspections/violations, and enforcement actions.

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

Tracks seen SWIS numbers and their Regulatory/Operational status in Key-Value Store ('SEEN_FACILITIES'). When enabled on scheduled runs, skips unchanged facilities and emits only brand-new sites ('NEW_FACILITY') or status transitions ('STATUS_CHANGED', e.g. Proposed -> Permitted).

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

Maximum number of facility records to emit in this run.

## Actor input object example

```json
{
  "county": "Alameda",
  "regulatoryStatus": "Proposed",
  "operationalStatus": "",
  "searchQuery": "",
  "enrichFacilityDetails": true,
  "onlyNew": false,
  "maxItems": 25
}
```

# Actor output Schema

## `facilities` (type: `string`):

Dataset of California solid waste, recycling, composting, transfer, and landfill facilities with optional operator, inspection, and enforcement enrichment.

## `seenFacilities` (type: `string`):

Persistent delta state of seen SWIS numbers and regulatory/operational statuses.

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

JSON summary of query filters, total SWIS matching rows, emitted records, skipped seen records, 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 = {
    "county": "Alameda",
    "regulatoryStatus": "Proposed",
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinky_atelier/calrecycle-swis-waste-facility-permits").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 = {
    "county": "Alameda",
    "regulatoryStatus": "Proposed",
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("zinky_atelier/calrecycle-swis-waste-facility-permits").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 '{
  "county": "Alameda",
  "regulatoryStatus": "Proposed",
  "maxItems": 25
}' |
apify call zinky_atelier/calrecycle-swis-waste-facility-permits --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinky_atelier/calrecycle-swis-waste-facility-permits"
        }
    }
}
```

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/ha3n0zl4DuhmFh44d/builds/Npf8vFc8a7b2xkXI0/openapi.json
