# WARN Layoff Monitor — New Mass-Layoff & Closure Alerts (`scrapersdelight/warn-layoff-monitor`) Actor

Monitor public WARN Act filings for new mass-layoff & plant-closure notices across US states (TX, IN — more coming). Company, location, employees affected, notice & effective dates. A delta feed for recruiters, sales & M\&A — alerts via Slack, email or webhook. $4 per 1,000 notices.

- **URL**: https://apify.com/scrapersdelight/warn-layoff-monitor.md
- **Developed by:** [Scrapers Delight](https://apify.com/scrapersdelight) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 per record returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 📉 WARN Layoff Monitor — New Mass-Layoff & Closure Alerts

**Catch mass layoffs and plant closures the moment they're filed. Under the federal WARN Act, employers must publicly notice large layoffs and closures in advance — and states publish them. This actor polls those public feeds, returns company, location, employees affected, and notice/effective dates, and runs on a schedule to alert you to NEW notices via Slack, email, or webhook.**

No login, no anti-bot — every source is a public state record.

---

### Why WARN notices are a signal

A new WARN filing is a trigger event for several buyers:

- 🧑‍💼 **Recruiters / staffing** — qualified talent is about to hit the market in a known location.
- 🤝 **Sales / competitive** — a competitor (or a competitor's customer) is in distress.
- 🏦 **M&A / distressed-asset / restructuring** — early signal of a company under pressure.
- 🧰 **Outplacement / benefits / services** — the affected employer is an active buyer.

WARN data is sold by paid aggregators; this actor builds the same feed from the **public** state sources, priced pay-per-event.

---

### States & sources (validated)

| State | Source | Format |
|-------|--------|--------|
| **TX** | Texas TWC WARN dataset (Socrata) | clean JSON |
| **IN** | Indiana DWD "Current WARN Notices" | HTML table |

> More states (CA, OH, NY, WA…) are on the roadmap — the actor uses per-state adapters so coverage grows without breaking your runs. *(CA EDD publishes a biweekly Excel report; it's next.)*

---

### Output (one record per notice)

`state` · `source` · `company` · `city` · `county` · `employees_affected` · `notice_date` ·
`effective_date` · `layoff_type` (LO/CL where available) · `industry` · `naics` · `wda` ·
`record_id` · `source_url` · `is_new` · `scraped_at`

Export to JSON, CSV, Excel, HTML, or RSS — or pull via the Apify API into your CRM, Clay, n8n, or ATS.

---

### How to use it

1. Click **Try for free**.
2. Pick your **states** and a **lookback window** (default 30 days).
3. *(Optional)* set **Min employees affected**, a **keyword**, or **layoff type**.
4. Click **Start**, then open the **Dataset** tab.
5. **For a live feed:** turn on **Monitor mode**, add a **Schedule** (e.g. daily), and a **Slack/email/webhook**.

#### Quick start
```json
{ "states": ["TX", "IN"], "lookbackDays": 30, "minEmployees": 50 }
````

#### Daily monitor

```json
{ "states": ["TX", "IN"], "monitorMode": true, "alertOnNewNotice": true, "slackWebhookUrl": "https://hooks.slack.com/services/…" }
```

***

### Pricing (pay-per-event)

| Event | What it covers | Suggested price |
|-------|----------------|-----------------|
| `lot-scraped` | each notice returned | ~$3–4 / 1,000 |
| `monitor-run-completed` | each scheduled watch run | ~$0.05 / run |
| `new-lot-detected` | each newly-appearing notice | ~$0.02 / notice |
| `alert-delivered` | each Slack/email/webhook alert | ~$0.005 / alert |

*(Final prices are set on the actor's pricing page.)*

***

### Notes

- **Public state records** (employer-level) — no consumer personal data. Review each agency's terms; your use is your call.
- **Coverage grows** — adapters are per-state; request a state via an issue.
- **No double-counting** — monitor mode remembers seen notices (per state + filter scope) and emits each once.

# Actor input Schema

## `states` (type: `array`):

Which states' WARN feeds to pull. Supported: TX (Texas TWC), IN (Indiana DWD). More states are being added.

## `dateFrom` (type: `string`):

Notice-date window start. Leave empty to use today minus 'Lookback days'.

## `dateTo` (type: `string`):

Notice-date window end. Leave empty for today.

## `lookbackDays` (type: `integer`):

When no explicit 'Date from' is given, scan notices from the last N days. WARN notices are less frequent than daily filings, so 30 is a good default.

## `minEmployees` (type: `integer`):

Optional. Keep only notices affecting at least this many employees.

## `keyword` (type: `string`):

Optional. Keep only notices whose company, industry, or city contains this text (case-insensitive).

## `layoffTypeFilter` (type: `array`):

Indiana only. Keep only these types: 'LO' (layoff) or 'CL' (closure). Empty = all.

## `socrataAppToken` (type: `string`):

Optional Socrata token for the TX open-data API to raise rate limits. Works fine without one for normal volumes.

## `maxRecords` (type: `integer`):

Hard cap on notices per run (0 = no cap).

## `monitorMode` (type: `boolean`):

Recurring watcher: diff against the prior run (per state+filter scope) and output/alert ONLY new notices. Pair with an Apify Schedule.

## `alertOnNewNotice` (type: `boolean`):

In monitor mode, send an alert for each new WARN notice.

## `webhookUrl` (type: `string`):

POST endpoint for new-notice alerts.

## `slackWebhookUrl` (type: `string`):

Slack incoming-webhook URL.

## `emailRecipients` (type: `array`):

Emails for the new-notice digest (via apify/send-mail).

## `proxyConfiguration` (type: `object`):

Proxy settings. Public state data; datacenter rotation is plenty.

## `diagnose` (type: `boolean`):

Dev only. Pulls one state for the window and logs the first parsed notice, then exits.

## Actor input object example

```json
{
  "states": [
    "TX",
    "IN"
  ],
  "lookbackDays": 30,
  "minEmployees": 0,
  "maxRecords": 0,
  "monitorMode": false,
  "alertOnNewNotice": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "diagnose": false
}
```

# Actor output Schema

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

The dataset of WARN layoff/closure notices (one item per notice).

# 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 = {
    "states": [
        "TX",
        "IN"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapersdelight/warn-layoff-monitor").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 = { "states": [
        "TX",
        "IN",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("scrapersdelight/warn-layoff-monitor").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "states": [
    "TX",
    "IN"
  ]
}' |
apify call scrapersdelight/warn-layoff-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapersdelight/warn-layoff-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "WARN Layoff Monitor — New Mass-Layoff & Closure Alerts",
        "description": "Monitor public WARN Act filings for new mass-layoff & plant-closure notices across US states (TX, IN — more coming). Company, location, employees affected, notice & effective dates. A delta feed for recruiters, sales & M&A — alerts via Slack, email or webhook. $4 per 1,000 notices.",
        "version": "0.1",
        "x-build-id": "7faL4FaF3BPp7b6AC"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapersdelight~warn-layoff-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapersdelight-warn-layoff-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapersdelight~warn-layoff-monitor/runs": {
            "post": {
                "operationId": "runs-sync-scrapersdelight-warn-layoff-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapersdelight~warn-layoff-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-scrapersdelight-warn-layoff-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "states": {
                        "title": "States",
                        "type": "array",
                        "description": "Which states' WARN feeds to pull. Supported: TX (Texas TWC), IN (Indiana DWD). More states are being added.",
                        "default": [
                            "TX",
                            "IN"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "dateFrom": {
                        "title": "Date from (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Notice-date window start. Leave empty to use today minus 'Lookback days'."
                    },
                    "dateTo": {
                        "title": "Date to (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Notice-date window end. Leave empty for today."
                    },
                    "lookbackDays": {
                        "title": "Lookback days",
                        "minimum": 1,
                        "type": "integer",
                        "description": "When no explicit 'Date from' is given, scan notices from the last N days. WARN notices are less frequent than daily filings, so 30 is a good default.",
                        "default": 30
                    },
                    "minEmployees": {
                        "title": "Min employees affected",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Optional. Keep only notices affecting at least this many employees.",
                        "default": 0
                    },
                    "keyword": {
                        "title": "Keyword filter",
                        "type": "string",
                        "description": "Optional. Keep only notices whose company, industry, or city contains this text (case-insensitive)."
                    },
                    "layoffTypeFilter": {
                        "title": "Layoff type filter (IN)",
                        "type": "array",
                        "description": "Indiana only. Keep only these types: 'LO' (layoff) or 'CL' (closure). Empty = all.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "socrataAppToken": {
                        "title": "Socrata app token (optional)",
                        "type": "string",
                        "description": "Optional Socrata token for the TX open-data API to raise rate limits. Works fine without one for normal volumes."
                    },
                    "maxRecords": {
                        "title": "Max records per run",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Hard cap on notices per run (0 = no cap).",
                        "default": 0
                    },
                    "monitorMode": {
                        "title": "Monitor mode (new-notice watcher)",
                        "type": "boolean",
                        "description": "Recurring watcher: diff against the prior run (per state+filter scope) and output/alert ONLY new notices. Pair with an Apify Schedule.",
                        "default": false
                    },
                    "alertOnNewNotice": {
                        "title": "Alert on new notices",
                        "type": "boolean",
                        "description": "In monitor mode, send an alert for each new WARN notice.",
                        "default": true
                    },
                    "webhookUrl": {
                        "title": "Webhook URL",
                        "type": "string",
                        "description": "POST endpoint for new-notice alerts."
                    },
                    "slackWebhookUrl": {
                        "title": "Slack webhook URL",
                        "type": "string",
                        "description": "Slack incoming-webhook URL."
                    },
                    "emailRecipients": {
                        "title": "Email recipients",
                        "type": "array",
                        "description": "Emails for the new-notice digest (via apify/send-mail).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Proxy settings. Public state data; datacenter rotation is plenty.",
                        "default": {
                            "useApifyProxy": true
                        }
                    },
                    "diagnose": {
                        "title": "Diagnostic mode (dev)",
                        "type": "boolean",
                        "description": "Dev only. Pulls one state for the window and logs the first parsed notice, then exits.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
