{
  "openapi": "3.0.1",
  "info": {
    "title": "CA Labor Commissioner Judgments, Wage Claims, Port Drayage List",
    "description": "California Labor Commissioner enforcement data with the dollar amounts: every judgment with its total owed, status, court and NAICS, the LC 2810.4 port drayage unsatisfied-judgment list with its history, the wage-claim index, and free debarment feeds from WA, NJ, CO, IL and OR.",
    "version": "0.4",
    "x-build-id": "cZjS4aHZEGUVwQe6d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/overlookdata~ca-dlse-judgments/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-overlookdata-ca-dlse-judgments",
        "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/overlookdata~ca-dlse-judgments/runs": {
      "post": {
        "operationId": "runs-sync-overlookdata-ca-dlse-judgments",
        "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/overlookdata~ca-dlse-judgments/run-sync": {
      "post": {
        "operationId": "run-sync-overlookdata-ca-dlse-judgments",
        "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": {
          "datasets": {
            "title": "Datasets to collect",
            "type": "array",
            "description": "Leave empty to collect every fast dataset: judgments, the current port drayage list, and the five free multi-state feeds. The wage-claim sweep and the port drayage history are excluded from that default because they are long runs, so name them explicitly when you want them.",
            "items": {
              "type": "string",
              "enum": [
                "judgments",
                "portDrayage",
                "portDrayageHistory",
                "wageClaims",
                "waDebar",
                "njWall",
                "coWageTheft",
                "ilDebar",
                "orLaborContractors",
                "caloshaPenalties"
              ],
              "enumTitles": [
                "CA judgments with amounts (a few minutes)",
                "CA port drayage unsatisfied-judgment list (one request)",
                "CA port drayage list history, monthly since 2019 (about 92 requests)",
                "CA wage claims back to 1997, one request per day since 2010 plus one catch-all for the earlier years (about 6,150 requests, roughly two hours)",
                "WA debarred contractors (free CSV)",
                "NJ WALL, wage and hour final judgments (free spreadsheet)",
                "CO wage theft transparency decisions (free spreadsheet)",
                "IL debarred public works contractors (free page)",
                "OR farm and forest labor contractor licensees (free spreadsheet)",
                "Cal/OSHA penalties over $100,000 (free page)"
              ]
            },
            "default": []
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "records",
              "entities"
            ],
            "type": "string",
            "description": "One flat row per source record, or one row per deduplicated employer across every collected source with the amounts and compliance flags rolled up. Records mode streams rows to the dataset as it goes and fits a full run in the default 1024 MB. Entities mode holds the whole corpus in memory until the end to build the rollup, so give a full entities run 4096 MB; it also starts over rather than resuming after a platform migration, because nothing is written until the end.",
            "default": "records"
          },
          "verifyCoverage": {
            "title": "Verify coverage with a second pass",
            "type": "boolean",
            "description": "Re-enumerate judgments by judgment status and wage claims by calendar month over the same date windows the sweep covered, compare the two passes, merge anything only the second pass found, and write the comparison to the VERIFICATION record in the default key-value store. The judgment check runs one query per status per window, so it costs several times the primary sweep. The wage-claim recount runs one query per month of data it actually saw, about 356 on a full run back to 1997, roughly a minute at the default pacing.",
            "default": true
          },
          "firstJudgmentYear": {
            "title": "First judgment year",
            "minimum": 2000,
            "maximum": 2030,
            "type": "integer",
            "description": "Year slicing starts here. The judgment corpus starts on 2000-04-07, and a separate catch-all slice always covers everything before 2000 so data-entry typos still surface. Raising this skips the years in between.",
            "default": 2000
          },
          "wageClaimsFirstDate": {
            "title": "First wage-claim docket date",
            "type": "string",
            "description": "Where day-by-day slicing starts. The corpus itself reaches back to 1997, and those earlier records are collected by one fixed catch-all slice that splits itself as needed, about 37 requests for roughly 31,000 records instead of the 4,750 that day slicing them would cost. Raising this skips the years in between: setting 2026-08-01 sweeps that day onward plus the catch-all, and does not sweep 2010 to July 2026. That is what makes a narrowed run fast.",
            "default": "2010-01-01"
          },
          "portDrayageHistoryFrom": {
            "title": "Port drayage history start",
            "type": "string",
            "description": "First month of the port drayage back-fill. The endpoint replays the list as of any past date, one request per month.",
            "default": "2019-01-01"
          },
          "includeNonDefendantParties": {
            "title": "Include non-defendant wage-claim parties",
            "type": "boolean",
            "description": "Off by default. Wage-claim rows also exist for the claimant side of a case, and those rows name individual workers rather than businesses. Turn this on only if you have a reason to hold personal data.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Politeness delay each worker waits after a request.",
            "default": 350
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Maximum number of simultaneous requests.",
            "default": 2
          },
          "fwuid": {
            "title": "Salesforce framework id (fwuid)",
            "type": "string",
            "description": "Escape hatch. Leave empty to use the stored value. The actor already self-heals from the framework id every response reports, so you only need this if Salesforce changes something deeper."
          },
          "auraLoaded": {
            "title": "Salesforce loaded application hash",
            "type": "object",
            "description": "Escape hatch, paired with the framework id. Leave empty to use the stored value."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}