{
  "openapi": "3.0.1",
  "info": {
    "title": "DOL Wage & Hour Enforcement Search",
    "description": "Search the U.S. Department of Labor Wage and Hour Division (WHD) enforcement database for labor law violations, back wages, civil penalties, and employee impact data across 20+ federal statutes.",
    "version": "0.2",
    "x-build-id": "iM7xJ6plnjjNy05AF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ryanclinton~dol-whd-enforcement/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ryanclinton-dol-whd-enforcement",
        "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/ryanclinton~dol-whd-enforcement/runs": {
      "post": {
        "operationId": "runs-sync-ryanclinton-dol-whd-enforcement",
        "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/ryanclinton~dol-whd-enforcement/run-sync": {
      "post": {
        "operationId": "run-sync-ryanclinton-dol-whd-enforcement",
        "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": {
          "dryRun": {
            "title": "Dry Run (Sample Data)",
            "type": "boolean",
            "description": "Returns realistic sample data without calling the DOL API. Leave unset and it defaults to sample data only when no API key is provided — provide an API key and you get real data automatically. Set it explicitly to override either way."
          },
          "apiKey": {
            "title": "DOL API Key",
            "type": "string",
            "description": "Your DOL Open Data Portal API key. Register free at https://dataportal.dol.gov/registration. Not needed for dry run mode."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "screening",
              "monitoring",
              "portfolio",
              "leaderboard"
            ],
            "type": "string",
            "description": "Job mode. 'search' (default) returns one row per case. 'screening' returns one risk verdict per employer (pass/review/fail), per-case rows suppressed — for supplier/contractor due diligence; billed per employer. 'monitoring' is entity-centric and pairs with a watchlist to surface employer risk-change events. 'portfolio' is screening plus a portfolio-level risk rollup in the summary. 'leaderboard' ranks employers by your chosen metric (worst offenders first).",
            "default": "search"
          },
          "leaderboardMetric": {
            "title": "Leaderboard Metric",
            "enum": [
              "risk",
              "back-wages",
              "penalties",
              "child-labor",
              "cases",
              "momentum"
            ],
            "type": "string",
            "description": "When mode = leaderboard, the axis to rank employers by.",
            "default": "risk"
          },
          "companyName": {
            "title": "Company Name",
            "type": "string",
            "description": "Search by trade/business name (partial match). Examples: 'MCDONALD', 'TYSON', 'CHIPOTLE'"
          },
          "companyNames": {
            "title": "Company Names (multi-company)",
            "maxItems": 100,
            "type": "array",
            "description": "Search several trade names at once (OR-matched) — ideal for supplier or contractor watchlists. Overrides Company Name when set. Example: ['TYSON', 'JBS', 'CARGILL'].",
            "items": {
              "type": "string"
            }
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "Filter by U.S. state (2-letter code). Examples: 'TX', 'CA', 'FL'"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Filter by city name (partial match). Examples: 'HOUSTON', 'NEW YORK'"
          },
          "naicsCode": {
            "title": "NAICS Industry Code",
            "type": "string",
            "description": "Filter by NAICS code prefix (2-6 digits). Examples: '722' (Food Services), '236' (Construction), '561' (Administrative Services)"
          },
          "statute": {
            "title": "Statute / Law Violated",
            "enum": [
              "",
              "flsa",
              "fmla",
              "h1b",
              "h2a",
              "h2b",
              "sca",
              "dbra",
              "mspa",
              "cwhssa",
              "eppa",
              "flsa_cl"
            ],
            "type": "string",
            "description": "Filter by specific labor law statute"
          },
          "dateFrom": {
            "title": "Date From",
            "type": "string",
            "description": "Start date for findings period (YYYY-MM-DD format). Example: '2023-01-01'"
          },
          "dateTo": {
            "title": "Date To",
            "type": "string",
            "description": "End date for findings period (YYYY-MM-DD format). Example: '2024-12-31'"
          },
          "minBackWages": {
            "title": "Minimum Back Wages ($)",
            "type": "integer",
            "description": "Only return cases with back wages above this amount. Example: 10000 for $10,000+"
          },
          "minPenalties": {
            "title": "Minimum Penalties ($)",
            "type": "integer",
            "description": "Only return cases with civil penalties above this amount. Example: 5000 for $5,000+"
          },
          "repeatViolator": {
            "title": "Repeat FLSA Violators Only",
            "type": "boolean",
            "description": "Only return cases flagged as FLSA repeat violators",
            "default": false
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of enforcement records to return (1-5,000)",
            "default": 100
          },
          "minSeverity": {
            "title": "Minimum Severity",
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Drop cases below this severity band after scoring (applied to the returned records, not the DOL query). Leave blank to keep all."
          },
          "enableEmployerSummary": {
            "title": "Emit Employer Summary Records",
            "type": "boolean",
            "description": "Add one employerSummary record per employer in the result set — repeat-offender score and band, case count, totals, first/latest case, yearly timeline, enforcement velocity, and violation concentration. Aggregates the cases matched by this query (not all-time DOL history unless your query returns the employer's full record).",
            "default": false
          },
          "outputProfile": {
            "title": "Output Profile",
            "enum": [
              "minimal",
              "standard",
              "full"
            ],
            "type": "string",
            "description": "Field verbosity: 'minimal' (decision fields only — severity, category, back wages, summary), 'standard' (default — full record without the nested statute breakdown), or 'full' (every field including per-statute breakdowns).",
            "default": "standard"
          },
          "watchlistName": {
            "title": "Watchlist Name (monitoring mode)",
            "type": "string",
            "description": "Optional. When set, the actor remembers case IDs seen on prior runs under this name and tags each result NEW or UNCHANGED — so a scheduled run surfaces only newly-published enforcement actions. Leave blank for a normal one-off search."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}