# WARN Layoff Notices Tracker (TX, CA) (`signalloom/warn-layoff-notices`) Actor

New and changed WARN layoff and plant-closure notices from official state sources (Texas, California): employer, site, employees affected, notice and effective dates. Employer-level data, new-notice alerts. Unofficial; not affiliated with or endorsed by Texas, California or their agencies.

- **URL**: https://apify.com/signalloom/warn-layoff-notices.md
- **Developed by:** [Signalloom](https://apify.com/signalloom) (community)
- **Categories:** Jobs, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 layoff notices

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/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

## WARN Layoff Notices Tracker (TX, CA)

### What does WARN Layoff Notices do?

Finds **new and changed WARN layoff and plant-closure notices** in official state publications and tells you what appeared since your last run. WARN (Worker Adjustment and Retraining Notification) notices are the advance warnings large employers must file before mass layoffs or closures. They are an early signal for recruiters, staffing and outplacement firms, lenders, local-government and economic-development teams, and investors.

States built in: **Texas** and **California**. Each run reads only a short look-back window (14 days by default, 90 at most) and compares it with the previous run.

> **New York is not covered.** Since 1 April 2025 the NY Department of Labor posts notices only in a Tableau Public dashboard ([dol.ny.gov/warn-dashboard](https://dol.ny.gov/warn-dashboard)); the older per-notice pages stop in March 2025. Tableau Public's CSV export for that view returned a 404 / bot-challenge page to automated requests, and this Actor does not try to get around that. See "States that were checked" below.

### Who is it for?

- **Recruiters, staffing and outplacement firms** who want to reach affected workforces or employers early
- **Lenders, insurers, suppliers and local economic-development teams** watching distressed employers
- **Investors, analysts and journalists** tracking closures and layoffs in these states
- **Developers and AI agents** who need structured, employer-level layoff notices from official sources

### Example output

One row per notice. Real example from a test run in `snapshot` mode (the `sourceNotes` text is shortened here):

```json
{
  "changeType": "snapshot",
  "changeReason": "snapshot row",
  "isBaseline": false,
  "detectedAt": "2026-11-16T02:33:19.134Z",
  "eventDate": "2026-11-09",
  "noticeId": "CA-47ee34cdc9",
  "state": "CA",
  "company": "Wright Tree Service of the West, Inc. (430 Sherwin Creek Rd)",
  "location": "430 Sherwin Creek Rd Mammoth Lakes CA 93546",
  "city": "Mammoth Lakes",
  "county": "Mono",
  "zip": "93546",
  "employeesAffected": 12,
  "noticeDate": "2026-11-09",
  "effectiveDate": "2026-11-09",
  "receivedDate": "2026-11-09",
  "noticeType": "Closure Permanent",
  "closureOrLayoff": "Closure",
  "industry": "56 Administrative and Support and Waste Management and Remediation",
  "notes": null,
  "sourceDataset": "edd.ca.gov/warn_report1.xlsx",
  "sourceUrl": "https://edd.ca.gov/en/jobs_and_training/Layoff_Services_WARN",
  "changedFields": null,
  "previousValues": null,
  "sourceNotes": "Source: California Employment Development Department (EDD), daily WARN Report ... Unofficial; not affiliated with the State of California."
}
```

### Sources and terms

| State | Source | Format | Terms note |
|---|---|---|---|
| Texas | [WARN Notices on data.texas.gov](https://data.texas.gov/d/8w53-c4f6) (`8w53-c4f6`), published by the Texas Workforce Commission | Open-data API (JSON) | No license field is set on the dataset. The portal's robots.txt declares `Crawl-delay: 1`. Verify the portal terms before publishing. |
| California | [EDD WARN page](https://edd.ca.gov/en/jobs_and_training/Layoff_Services_WARN) → `warn_report1.xlsx` ("Detailed WARN Report" sheet), updated every Tuesday and Thursday | Excel file | No license stated. EDD's Conditions of Use apply. robots.txt allows the file. The workbook is one small file (about 70 KB) that is filtered to your window after download. |

All requests are plain public GETs. The Actor checks `robots.txt` before the first request to each host, waits **at least 1 second** between requests and retries 429 / 5xx errors with back-off. WARN notices are public records, but neither source grants a reuse license in so many words, and neither gives any warranty; check the terms yourself before reselling the data. The Actor is unofficial and is not affiliated with any state. Nothing here is legal advice.

### What data can it extract?

| Field | Description |
|---|---|
| `changeType` | `new`, `changed` (only when *Only new* is off), `baseline` (first run) or `snapshot` |
| `state`, `company` | State that published the notice; the employer / site name as published |
| `location`, `city`, `county`, `zip` | The affected site as published. Texas: city and county only. California: street address, city, county, ZIP |
| `employeesAffected` | The number affected (leading number of the published value) |
| `noticeDate`, `effectiveDate`, `receivedDate` | Notice date; layoff / closure effective date; date the state processed the notice (TX, CA) |
| `noticeType`, `closureOrLayoff` | Type as published (California) and a Closure / Layoff flag derived from it. Texas publishes no type |
| `industry` | California industry name |
| `notes` | Texas workforce area |
| `noticeId` | An id made by this Actor (state + company + notice date + location). The states publish no notice number |
| `changedFields`, `previousValues` | For `changed` rows: what changed and the old values |
| `sourceDataset`, `sourceUrl`, `sourceNotes` | Where the row came from, with attribution and the no-warranty note |

**Not available:** neither source publishes the *reason* for a layoff, so there is no reason field. California publishes no contact data beyond the site address.

### How it works

1. Each run reads notices dated in the last `lookbackDays` days for each selected state, then applies your filters.
2. Records are compared with the state saved by the previous run in a **named key-value store** (`SNAPSHOT_V1` in `stateStoreName`).
3. **The first run for a state (or a run after its filters change) is a baseline.** With the default `emitBaselineRows` the window's notices are output as `baseline` rows.
4. Later runs output **new** notices. Turn **Only new notices** off to also output **changed** ones (for example a corrected employee count or effective date). A notice is identified by company + notice date + location, so an amended notice that carries a *new* notice date shows up as a new notice.
5. Notices that age out of the window are not events. Keep `lookbackDays` at least as long as the gap between runs.

The `RUN_SUMMARY` record lists, per state: rows fetched and kept, the **newest notice date in the source** (`newestSourceDate`, useful to spot a stale source; Texas costs one extra small request for this), diff statistics and any error. If one state fails, the others still run and the failed state keeps its previous saved state.

### Input

| Field | Meaning |
|---|---|
| `states` | `TX`, `CA`. Default: both (prefilled `CA` only, because Texas is stale). |
| `lookbackDays` | 1-90, default 14. |
| `minEmployees` | 0 = no minimum. Notices with no stated number are dropped when a minimum is set. |
| `closuresOnly` | Keep notices whose type says closure. Texas notices are dropped when on (no type published). |
| `onlyNew`, `outputMode`, `emitBaselineRows`, `maxItems` | See the Input tab. |
| `stateStoreName`, `commitState` | Named store for saved state; untick `commitState` for a dry run. |
| `sourceRowLimit` | Testing only: read at most N rows per state. |

### Pricing

This Actor is designed for pay-per-event pricing. The events are shown on the Pricing tab:

- **actor-start**: once per run
- **notice**: each output row (new, changed, baseline or snapshot row)

A run that finds nothing new is charged only the start event. Set **Maximum cost per run** to cap spend: the Actor stops cleanly at the limit and keeps everything delivered so far. Rows that were held back by the limit are not lost: they stay pending and are reported by the next run.

### Privacy

WARN notices describe employers, not employees. The Actor outputs company names, site addresses and counts only. No employee names, contact people, phone numbers or emails are requested or output (the sources do not publish them in the fields read), and a runtime guard rejects rows carrying personal-data field names. Company names are output as published. WARN notices are filed by employers large enough to be covered by the Act (generally 100 or more employees), so a notice under a private individual's name is very unlikely, but the Actor does not filter names: it cannot tell a person from a company reliably, and withholding real company names would hurt the data.

### Limitations

- **Texas is currently stale.** On 2026-11-14 the newest notice in the Texas dataset was dated 2026-06-23 and the dataset was last updated on 2026-07-07, so Texas returns nothing for a short look-back window until TWC updates it. Check `newestSourceDate` in the run summary.
- California's file only holds notices processed since the start of its current report period (July 2026 on 2026-11-14), and it is updated twice a week.
- No notice number is published, so the id is derived; an amendment that changes the company name, notice date or site text appears as a new notice.
- Only two states are covered (Texas and California).

#### States that were checked

| State | Result |
|---|---|
| New York | Current notices only in a Tableau Public dashboard; automated CSV export is blocked. Older pages end March 2025. Not included. |
| Washington | The ESD notice list is a paginated ASP.NET search form (20 rows per page, navigated with form postbacks), not a data download. Not included. |
| Colorado | The CDLE WARN page answered 403 to automated requests. Not included. |
| Others | Not examined. |

### FAQ

**Why does Texas return nothing?**
The Texas dataset is updated by the Workforce Commission only now and then (newest notice 2026-06-23 when last checked). Check `newestSourceDate` in `RUN_SUMMARY`. The prefilled example uses California only.

**Does it cover New York?**
No. New York only publishes current notices in a Tableau dashboard that blocks automated export, and this Actor does not try to get around that.

**What happens on the first run?**
It stores a baseline for each state. With the default *Output rows on the first run* it also outputs the window's notices as `baseline` rows. Later runs output only new (and optionally changed) notices.

**Will I miss notices if I run weekly?**
Not if `lookbackDays` is at least as long as the gap between runs (14 days by default).

**Is it legal to use this data?**
WARN notices are public records, but neither source grants a reuse license in so many words. Check each source's terms before reselling the data.

### Tests

`npm test` runs the unit tests (throttling, robots.txt, diff logic, parsing of the Excel and HTML sources, filters, and full runs against fake sources). Local runs use `apify run` and cost nothing.

# Actor input Schema

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

Which state sources to read: TX = Texas Workforce Commission, CA = California EDD.

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

Read notices dated in the last N days (1-90). Keep it at least as long as the gap between your runs.

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

Keep only notices affecting at least this many employees. 0 = no minimum. Notices with no stated number are dropped when a minimum is set.

## `closuresOnly` (type: `boolean`):

Keep only notices whose type says closure (for example 'Plant Closure' or 'Closure Permanent'). Texas does not publish a type, so Texas notices are dropped when this is on.

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

On (default): output only notices that were not in the previous run's state. Off: also output notices whose published fields changed (for example a corrected employee count).

## `outputMode` (type: `string`):

'changes' = compare with the previous run (the first run stores a baseline). 'snapshot' = output everything in the look-back window; never touches the stored state.

## `emitBaselineRows` (type: `boolean`):

On the first run (or after the filters change) nothing can be compared yet. On (default): output the window's notices as 'baseline' rows. Off: only store the baseline.

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

Cap on rows pushed to the dataset (0 = no cap).

## `stateStoreName` (type: `string`):

Named key-value store that holds the previous run's state. The default run store is erased with each run, so a named store is needed for change detection (it is created on first use).

## `commitState` (type: `boolean`):

Untick for a dry run that leaves the stored state untouched.

## `sourceRowLimit` (type: `integer`):

0 = read the whole look-back window. Set a small number only for tests; part of the state signature, so changing it starts a new baseline.

## `requestDelayMs` (type: `integer`):

Pause between requests. Minimum 1000.

## Actor input object example

```json
{
  "states": [
    "CA"
  ],
  "lookbackDays": 30,
  "minEmployees": 0,
  "closuresOnly": false,
  "onlyNew": true,
  "outputMode": "changes",
  "emitBaselineRows": true,
  "maxItems": 50,
  "stateStoreName": "warn-notices-state",
  "commitState": true,
  "sourceRowLimit": 0,
  "requestDelayMs": 1000
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset with the new / changed / baseline / snapshot rows

## `summary` (type: `string`):

Counts, filters, per-source status and whether this was a baseline run

# 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": [
        "CA"
    ],
    "lookbackDays": 30,
    "minEmployees": 0,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("signalloom/warn-layoff-notices").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": ["CA"],
    "lookbackDays": 30,
    "minEmployees": 0,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("signalloom/warn-layoff-notices").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 '{
  "states": [
    "CA"
  ],
  "lookbackDays": 30,
  "minEmployees": 0,
  "maxItems": 50
}' |
apify call signalloom/warn-layoff-notices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,signalloom/warn-layoff-notices"
        }
    }
}
```

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/vb9ifpINoEb9Lzwdj/builds/CiSmz7uW8DtPsylSw/openapi.json
