# US WARN Act Layoff Tracker (`shoomaii/us-warn-act-layoffs`) Actor

Live official US WARN Act layoff and closure filings across 7 states (CA, NY, WA, MD, OR, WI, IN) in one unified schema: employer, headcount, notice & effective dates, city/county, layoff type, stock ticker & domain mapping, plus Only-New alerts.

- **URL**: https://apify.com/shoomaii/us-warn-act-layoffs.md
- **Developed by:** [Hyon](https://apify.com/shoomaii) (community)
- **Categories:** Jobs, News
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 warn act layoff notices

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## US WARN Act Layoff Tracker

Track official **US Worker Adjustment and Retraining Notification (WARN) Act** mass-layoff and plant-closure filings across **7 major states** (**CA, NY, WA, MD, OR, WI, IN**) in one clean, unified JSON schema — with automatic **public-company ticker & domain mapping** and **"Only new"** delta alerts.

Every state publishes WARN notices in a totally different format (California EDD Excel workbooks, Washington ESD WebForms tables, Maryland/Oregon/Wisconsin/Indiana/New York labor portals). This Actor reads all 7 official `.gov` feeds directly over plain HTTP — **zero browsers, zero proxies, zero API keys**.

### What you get

- **7 verified official state feeds:** California (EDD XLSX), New York (DOL), Washington (ESD), Maryland (DOL), Oregon (HECC), Wisconsin (DWD), and Indiana (DWD).
- **One normalized schema:** `noticeId`, `state`, `employer`, `employerNormalized`, `ticker`, `domain`, `layoffCount`, `noticeDate` (`YYYY-MM-DD`), `effectiveDate`, `city`, `county`, `layoffType` (`layoff` / `closure` / `relocation` / `temporary`), `industry`, `sourceUrl`.
- **Public-company ticker mapping:** Automatically maps 100+ major US employers (Amazon → `AMZN`, Microsoft → `MSFT`, Intel → `INTC`, Starbucks → `SBUX`, Comcast → `CMCSA`, Genentech → `RHHBY`, etc.) for hedge funds, alt-data pipelines, and B2B recruiting agencies.
- **Only-New delta alerts:** Schedule daily or weekly runs with `onlyNew: true` and concurrent-run locking so you only receive (and pay for) newly filed notices.

### Example inputs

**Daily alert for large public-company layoffs (100+ workers) in CA, WA, and NY:**

```json
{
  "states": ["CA", "WA", "NY", "MD"],
  "minEmployees": 100,
  "onlyPublicCompanies": true,
  "onlyNew": true,
  "trackingKey": "public-co-warn-alerts"
}
```

**Recent 30-day layoffs across all 7 states:**

```json
{
  "states": ["CA", "NY", "WA", "MD", "OR", "WI", "IN"],
  "postedWithinDays": 30,
  "maxNotices": 100
}
```

### Server API & MCP Server (real-time HTTP)

Connect AI agents directly to `/mcp` (`search_warn_layoffs`) or call the REST API:

```bash
curl -s "https://shoomaii--us-warn-act-layoffs.apify.actor/layoffs?states=CA,WA,MD&minEmployees=50&maxNotices=20" \
  -H "Authorization: Bearer $APIFY_TOKEN"
```

# Actor input Schema

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

State WARN Act feeds to read. Leave empty for all 7 supported states (CA, NY, WA, MD, OR, WI, IN).

## `employers` (type: `array`):

Optional list of employer names or stock tickers to match (e.g. Amazon, AMZN, Intel, Starbucks).

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

Only include filings affecting at least N employees (e.g. 50 or 100).

## `postedWithinDays` (type: `integer`):

Only return notices dated within the last N days.

## `layoffTypes` (type: `array`):

Filter by normalized filing type.

## `onlyPublicCompanies` (type: `boolean`):

Return only filings matched to a publicly traded stock ticker.

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

Remember previously emitted WARN filings per tracking list and only return brand-new notices.

## `trackingKey` (type: `string`):

Name of the delta tracking list used when Only new is enabled.

## `maxNotices` (type: `integer`):

Maximum number of filings to return (0 = no limit).

## Actor input object example

```json
{
  "states": [
    "CA",
    "WA",
    "NY",
    "MD"
  ],
  "onlyPublicCompanies": false,
  "onlyNew": false,
  "trackingKey": "default",
  "maxNotices": 100
}
```

# Actor output Schema

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

No description

# 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",
        "WA",
        "NY",
        "MD"
    ],
    "trackingKey": "default"
};

// Run the Actor and wait for it to finish
const run = await client.actor("shoomaii/us-warn-act-layoffs").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",
        "WA",
        "NY",
        "MD",
    ],
    "trackingKey": "default",
}

# Run the Actor and wait for it to finish
run = client.actor("shoomaii/us-warn-act-layoffs").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",
    "WA",
    "NY",
    "MD"
  ],
  "trackingKey": "default"
}' |
apify call shoomaii/us-warn-act-layoffs --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shoomaii/us-warn-act-layoffs"
        }
    }
}
```

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/BAEWU72pmLXLYcQ3Q/builds/JcgCi4sUcvzTPeBCE/openapi.json
