{
  "openapi": "3.0.1",
  "info": {
    "title": "Layoffs Tracker — WARN Notices & Company Layoffs",
    "description": "Official US WARN notices from 13 state portals plus announced company layoffs, as one typed, deduplicated feed: company, employees affected, notice and effective dates, location, layoff or closure, notice link. Incremental, dataset-only, MCP-ready.",
    "version": "0.1",
    "x-build-id": "Jesbjz474xtcP5FsS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/inovaflow~layoffs-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-inovaflow-layoffs-tracker",
        "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/inovaflow~layoffs-tracker/runs": {
      "post": {
        "operationId": "runs-sync-inovaflow-layoffs-tracker",
        "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/inovaflow~layoffs-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-inovaflow-layoffs-tracker",
        "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": "US states",
            "maxItems": 60,
            "type": "array",
            "description": "Two-letter codes or names of the states whose WARN notices to read, one per line. Covered: CA, CO, FL, IL, IN, MD, NJ, NY, OH, PA, TX, WA, WI. Leave empty for all of them. A state that is not covered yet is skipped with a note in the run summary.",
            "items": {
              "type": "string"
            }
          },
          "companies": {
            "title": "Companies to watch",
            "maxItems": 500,
            "type": "array",
            "description": "Only return events for these companies — names or domains, one per line (`Oracle`, `amazon.com`). Matches legal names, 'doing business as' names and subsidiaries named after the company. Leave empty for every employer.",
            "items": {
              "type": "string"
            }
          },
          "filedWithinDays": {
            "title": "Filed within (days)",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "How far back to look, by the date the notice was filed or posted (the article date for announced layoffs). 30 days covers one monthly review; widen it for a backfill.",
            "default": 30
          },
          "includeTechLayoffs": {
            "title": "Include announced layoffs from the news",
            "type": "boolean",
            "description": "Add layoffs announced in the press that have no WARN filing (tech and remote teams, non-US staff, cuts below the WARN threshold). Only headlines that name the company and state a cut are used; an announcement of a cut that also has a WARN notice is attached to that notice instead of listed twice.",
            "default": true
          },
          "eventTypes": {
            "title": "Event types",
            "uniqueItems": true,
            "type": "array",
            "description": "Only these event types. Empty = all. `unknown` is a notice whose state portal does not publish the type (New Jersey, Texas, Florida).",
            "items": {
              "type": "string",
              "enum": [
                "layoff",
                "closure",
                "furlough",
                "relocation",
                "unknown"
              ],
              "enumTitles": [
                "Layoff / mass layoff",
                "Closure / plant closing",
                "Furlough / temporary",
                "Relocation",
                "Type not published"
              ]
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Keep only events whose company, industry, city, county or headline contains one of these words (`warehouse`, `hospital`, `software`, `Seattle`). Case-insensitive, combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "minEmployeesAffected": {
            "title": "Minimum employees affected",
            "minimum": 0,
            "type": "integer",
            "description": "Drop smaller events. Events whose headcount the source does not state are dropped when this is set."
          },
          "maxEmployeesAffected": {
            "title": "Maximum employees affected",
            "minimum": 0,
            "type": "integer",
            "description": "Drop larger events. Events with an unstated headcount are kept."
          },
          "effectiveAfter": {
            "title": "Effective on or after",
            "type": "string",
            "description": "Keep events whose layoff / closure date is on or after this day (YYYY-MM-DD). Events without an effective date are dropped when set."
          },
          "effectiveBefore": {
            "title": "Effective on or before",
            "type": "string",
            "description": "Keep events whose layoff / closure date is on or before this day (YYYY-MM-DD) — e.g. cuts landing this quarter. Events without an effective date are dropped when set."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new or amended since the last run",
            "type": "boolean",
            "description": "Return only events this watch has not delivered before, plus events an amended notice changed. The first run of a watch returns everything and becomes the baseline.",
            "default": false
          },
          "watchId": {
            "title": "Watch ID",
            "type": "string",
            "description": "Name for this feed's memory, e.g. `sales-west` — runs with the same watch ID share it. Leave empty and a watch ID is derived from the states, companies and filters, so repeated runs with the same scope share memory automatically."
          },
          "maxResults": {
            "title": "Maximum events",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on delivered rows (newest first). You are only charged for delivered rows.",
            "default": 500
          },
          "includeWarnNotices": {
            "title": "Include state WARN notices",
            "type": "boolean",
            "description": "Switch off to get only announced layoffs from the news.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel state reads",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many state portals to read at once. These are public government sites — the default is polite.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for most runs — the state portals are public and a blocked request is retried through Apify Proxy automatically. Set a US residential proxy if a state keeps coming back unreadable.",
            "default": {
              "useApifyProxy": 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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}