# WARN Layoff Notices API (`pushbuild/warn-layoff-notices`) Actor

Search WARN Act notices of mass layoffs and plant closures filed with US state labor departments: company, location, notice and effective dates, workers affected and notice type, in one schema across 33 states and DC, including Florida, Georgia, Massachusetts, Michigan, North Carolina, Ohio and…

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

## Pricing

$1.00 / 1,000 records

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 API

WARN Act notices of mass layoffs and plant closures, filed with US state labor departments, in one schema: company, city or location, notice date, effective date, workers affected and notice type (layoff or closure, permanent or temporary), plus each state's other published fields under `details`.

33 states and DC: Alaska, Alabama, Arizona, California, Connecticut, Delaware, District of Columbia, Florida (from 2019), Georgia, Hawaii (company and date only), Idaho, Illinois, Indiana, Kansas, Maine, Maryland, Massachusetts (from mid-2021; the state posts a yearly spreadsheet, so recent months can lag), Michigan, Montana, Nebraska, New Jersey, New York, North Carolina (from 2022), Ohio (from 2017), Oklahoma, Pennsylvania, South Carolina, South Dakota, Texas, Utah, Vermont, Virginia, Washington and Wisconsin. About 48,000 notices; history depth depends on the state (California from 2008, Illinois from 1987). Refreshed weekly.

New Jersey, Pennsylvania and Wisconsin publish only the layoff (effective) date, not the date the notice was filed, so their `noticeDate` is empty; filter or bucket them on `effectiveDate`.

New Jersey and Pennsylvania publish only the effective date, so `noticeFrom`/`noticeTo` skip their notices; filter them with `effectiveFrom`/`effectiveTo`.

### Input

- `company`, `states`, `location`, `noticeType`: filters (text contains, two-letter codes).
- `noticeFrom`, `noticeTo`, `effectiveFrom`, `effectiveTo`: dates (YYYY-MM-DD).
- `minEmployees`: at least this many affected workers.
- `sort`: `newest` (default), `largest`, `effective`.
- `groupBy`: `state`, `month`, `year`, `company`, `noticeType` or `location`; returns notices and workers affected per group.
- `maxItems`: up to 5000.

### Example

```json
{"states": ["CA"], "minEmployees": 500, "noticeFrom": "2026-09-01", "sort": "largest"}
```

Source data: state workforce agencies' public WARN listings, collected with Big Local News's open-source warn-scraper (Apache 2.0).

# Actor input Schema

## `company` (type: `string`):

Company name contains this text, e.g. Amazon.

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

Two-letter state codes, e.g. CA, NY.

## `location` (type: `string`):

City, county or address contains this text.

## `noticeType` (type: `string`):

Layoff or closure type contains this text, e.g. closure.

## `noticeFrom` (type: `string`):

Notice date on or after (YYYY-MM-DD).

## `noticeTo` (type: `string`):

Notice date on or before (YYYY-MM-DD).

## `effectiveFrom` (type: `string`):

Layoff effective date on or after (YYYY-MM-DD).

## `effectiveTo` (type: `string`):

Layoff effective date on or before (YYYY-MM-DD).

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

Only notices affecting at least this many workers.

## `sort` (type: `string`):

newest notice (default), largest layoff, or latest effective date.

## `groupBy` (type: `string`):

Return counts of notices and affected workers instead of notices.

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

Maximum rows or groups to return.

## Actor input object example

```json
{
  "sort": "newest",
  "maxItems": 100
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("pushbuild/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("pushbuild/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 '{}' |
apify call pushbuild/warn-layoff-notices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pushbuild/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/rrg90sQIbwatoAcM4/builds/eauYM2zAYo7WOnHNb/openapi.json
