{
  "openapi": "3.0.1",
  "info": {
    "title": "New OSHA Inspection Leads 🦺 (within 2 days of opening)",
    "description": "Every new US OSHA workplace-safety inspection, usually within a day or two of it opening: establishment, site address, city, state, NAICS industry, inspection type and scope, and the OSHA office running it. Monitor mode returns only inspections new since your last run, with a Slack digest.",
    "version": "0.1",
    "x-build-id": "1jQEzHLklBMiUiuDq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tagadanar~osha-inspection-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tagadanar-osha-inspection-leads",
        "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/tagadanar~osha-inspection-leads/runs": {
      "post": {
        "operationId": "runs-sync-tagadanar-osha-inspection-leads",
        "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/tagadanar~osha-inspection-leads/run-sync": {
      "post": {
        "operationId": "run-sync-tagadanar-osha-inspection-leads",
        "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": "States",
            "type": "array",
            "description": "States and territories to sweep. Covers federal OSHA and every state-plan agency. Leave empty only if you name OSHA offices below instead.",
            "items": {
              "type": "string",
              "enum": [
                "AK",
                "AL",
                "AR",
                "AS",
                "AZ",
                "CA",
                "CO",
                "CT",
                "DC",
                "DE",
                "FL",
                "GA",
                "GU",
                "HI",
                "IA",
                "ID",
                "IL",
                "IN",
                "KS",
                "KY",
                "LA",
                "MA",
                "MD",
                "ME",
                "MI",
                "MN",
                "MO",
                "MS",
                "MT",
                "NC",
                "ND",
                "NE",
                "NH",
                "NJ",
                "NM",
                "NV",
                "NY",
                "OH",
                "OK",
                "OR",
                "PA",
                "PR",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VA",
                "VI",
                "VT",
                "WA",
                "WI",
                "WV",
                "WY"
              ],
              "enumTitles": [
                "Alaska (AK)",
                "Alabama (AL)",
                "Arkansas (AR)",
                "American Samoa (AS)",
                "Arizona (AZ)",
                "California (CA)",
                "Colorado (CO)",
                "Connecticut (CT)",
                "District of Columbia (DC)",
                "Delaware (DE)",
                "Florida (FL)",
                "Georgia (GA)",
                "Guam (GU)",
                "Hawaii (HI)",
                "Iowa (IA)",
                "Idaho (ID)",
                "Illinois (IL)",
                "Indiana (IN)",
                "Kansas (KS)",
                "Kentucky (KY)",
                "Louisiana (LA)",
                "Massachusetts (MA)",
                "Maryland (MD)",
                "Maine (ME)",
                "Michigan (MI)",
                "Minnesota (MN)",
                "Missouri (MO)",
                "Mississippi (MS)",
                "Montana (MT)",
                "North Carolina (NC)",
                "North Dakota (ND)",
                "Nebraska (NE)",
                "New Hampshire (NH)",
                "New Jersey (NJ)",
                "New Mexico (NM)",
                "Nevada (NV)",
                "New York (NY)",
                "Ohio (OH)",
                "Oklahoma (OK)",
                "Oregon (OR)",
                "Pennsylvania (PA)",
                "Puerto Rico (PR)",
                "Rhode Island (RI)",
                "South Carolina (SC)",
                "South Dakota (SD)",
                "Tennessee (TN)",
                "Texas (TX)",
                "Utah (UT)",
                "Virginia (VA)",
                "U.S. Virgin Islands (VI)",
                "Vermont (VT)",
                "Washington (WA)",
                "Wisconsin (WI)",
                "West Virginia (WV)",
                "Wyoming (WY)"
              ]
            },
            "default": []
          },
          "offices": {
            "title": "OSHA offices (optional, instead of whole states)",
            "type": "array",
            "description": "Narrow to specific OSHA area, district or state-plan offices, for example a single metro. Leave empty to sweep every office in the states above.",
            "items": {
              "type": "string",
              "enum": [
                "1050210",
                "213100",
                "317900",
                "950622",
                "1032100",
                "521100",
                "950411",
                "418100",
                "418200",
                "111100",
                "625400",
                "213400",
                "950693",
                "950683",
                "316100",
                "625700",
                "1054115",
                "1054195",
                "830100",
                "418300",
                "830300",
                "1032500",
                "134000",
                "111400",
                "111500",
                "213600",
                "316400",
                "524200",
                "521700",
                "522000",
                "522300",
                "522500",
                "111700",
                "150900",
                "626000",
                "626300",
                "830500",
                "352460",
                "352410",
                "352420",
                "352430",
                "352440",
                "352450",
                "352470",
                "1055310",
                "1055320",
                "1055360",
                "1055330",
                "1055340",
                "1055350",
                "523900",
                "950694",
                "627500",
                "830600",
                "336000",
                "1054114",
                "1054194",
                "524530",
                "418800",
                "636900",
                "950613",
                "950612",
                "950682",
                "316700",
                "112000",
                "214500",
                "951510",
                "950663",
                "950661",
                "950662",
                "936300",
                "626600",
                "626700",
                "551701",
                "551702",
                "551800",
                "751910",
                "419400",
                "419700",
                "728500",
                "452110",
                "950664",
                "950667",
                "950665",
                "627100",
                "950691",
                "950635",
                "950642",
                "214700",
                "950641",
                "627510",
                "523300",
                "152300",
                "215000",
                "213900",
                "152500",
                "1054116",
                "1054196",
                "523400",
                "552700",
                "552651",
                "552652",
                "418600",
                "950681",
                "950644",
                "521400",
                "420100",
                "453730",
                "453710",
                "453720",
                "253410",
                "253650",
                "253420",
                "316300",
                "1032700",
                "953220",
                "953210",
                "253610",
                "253620",
                "253630",
                "253640",
                "253660",
                "253670",
                "253680",
                "253690",
                "950614",
                "627700",
                "728900",
                "1054111",
                "1054112",
                "1054191",
                "1054113",
                "419730",
                "317000",
                "400000",
                "1100000",
                "100000",
                "500000",
                "600000",
                "800000",
                "700000",
                "200000",
                "300000",
                "900000",
                "214200",
                "524500",
                "317500",
                "257210",
                "257220",
                "257230",
                "257240",
                "257250",
                "257260",
                "950673",
                "950674",
                "950671",
                "950672",
                "112300",
                "215300",
                "215600",
                "420300",
                "950623",
                "950634",
                "950621",
                "950651",
                "729300",
                "1054193",
                "950692",
                "625500",
                "950633",
                "950653",
                "950632",
                "950611",
                "950631",
                "950684",
                "418400",
                "454510",
                "830400",
                "936100",
                "112600",
                "653510",
                "215800",
                "420600",
                "216000",
                "454723",
                "454733",
                "454713",
                "454726",
                "454716",
                "454725",
                "454735",
                "454715",
                "454724",
                "454734",
                "454714",
                "454721",
                "454731",
                "454711",
                "454722",
                "454732",
                "454712",
                "524700",
                "854910",
                "257810",
                "257820",
                "355110",
                "355117",
                "355125",
                "355114",
                "355124",
                "355112",
                "355121",
                "355111",
                "355123",
                "355118",
                "355122",
                "355116",
                "950643",
                "950652",
                "155010",
                "729700",
                "317700",
                "317300",
                "855610"
              ],
              "enumTitles": [
                "Alaska Department of Labor OSH Enforcement (1050210, AK)",
                "Albany Area Office (213100, NY)",
                "Allentown Area Office (317900, PA/VA)",
                "American Canyon District Office (950622, CA)",
                "Anchorage Area Office (1032100, AK)",
                "Appleton Area Office (521100, WI)",
                "Arizona Division of Occupational Safety and Health (ADOSH) (950411, AZ)",
                "Atlanta East Area Office (418100, GA)",
                "Atlanta West Area Office (418200, GA/TX)",
                "Augusta Area Office (111100, ME)",
                "Austin Area Office (625400, TX)",
                "Avenel Area Office (213400, NJ/NY)",
                "Bakersfield Agricultural Enforcement Task Force  District Office (950693, CA)",
                "Bakersfield District Office (950683, CA/VA)",
                "Baltimore Area Office (316100, DC/MD)",
                "Baton Rouge Area Office (625700, LA)",
                "Bend (1054115, OR)",
                "Bend (1054195, OR)",
                "Billings Area Office (830100, MT)",
                "Birmingham Area Office (418300, AL)",
                "Bismarck Area Office (830300, MN/ND/SD)",
                "Boise Area Office (1032500, ID)",
                "Boston North Area Office (134000, MA/NH)",
                "Boston South Area Office (111400, MA)",
                "Bridgeport Area Office (111500, CT)",
                "Buffalo Area Office (213600, NY)",
                "Charleston Area Office (316400, WV)",
                "Chicago North Area Office (524200, IL/WI)",
                "Chicago South Area Office (521700, IL)",
                "Cincinnati Area Office (522000, IN/OH)",
                "Cleveland Area Office (522300, OH)",
                "Columbus Area Office (522500, OH)",
                "Concord Area Office (111700, NH/TN)",
                "Connecticut Department of Labor, Division of Occupational Safety & Health (150900, CT)",
                "Corpus Christi Area Office (626000, TX)",
                "Dallas Area Office (626300, TX)",
                "Denver Area Office (830500, CO)",
                "Department of Labor, Licensing and Regulation Division of Labor and Industry Maryland Occupational Safety and Health (352460, MD)",
                "Department of Labor, Licensing, and Regulation Division of Labor and Industry Maryland Occupational Safety and Health (352410, MD)",
                "Department of Labor, Licensing, and Regulation Division of Labor and Industry Maryland Occupational Safety and Health (352420, MD)",
                "Department of Labor, Licensing, and Regulation Division of Labor and Industry Maryland Occupational Safety and Health (352430, MD)",
                "Department of Labor, Licensing, and Regulation Division of Labor and Industry Maryland Occupational Safety and Health (352440, MD)",
                "Department of Labor, Licensing, and Regulation Division of Labor and Industry Maryland Occupational Safety and Health (352450, MD)",
                "Department of Labor, Licensing, and Regulation Division of Labor and Industry Maryland Occupational Safety and Health (352470, MD)",
                "DOSH Everett Service Location, Everett, WA (1055310, WA)",
                "DOSH Seattle Service Location, Seattle, WA (1055320, WA)",
                "DOSH Spokane Service Location, Spokane, WA (1055360, WA)",
                "DOSH Tacoma Service Location, Tacoma, WA (1055330, WA)",
                "DOSH Tumwater Service Location, Tumwater, WA (1055340, WA)",
                "DOSH Yakima Service Location, Yakima, WA (1055350, WA)",
                "Eau Claire Area Office (523900, MN/WI)",
                "El Centro Agricultural Enforcement Task Force  District Office (950694, CA)",
                "El Paso Area Office (627500, NM/TX)",
                "Englewood Area Office (830600, CO/DC)",
                "Erie Area Office (336000, PA)",
                "Eugene (1054114, OR)",
                "Eugene (1054194, OR)",
                "Fairview Heights Area Office (524530, IL)",
                "Fort Lauderdale Area Office (418800, FL)",
                "Fort Worth Area Office (636900, PA/TX)",
                "Foster City District Office (950613, CA/CO)",
                "Fremont District Office (950612, CA)",
                "Fresno District Office (950682, CA)",
                "Harrisburg Area Office (316700, PA/VA)",
                "Hartford Area Office (112000, CT)",
                "Hasbrouck Heights Area Office (214500, MD/NJ/VA)",
                "HI-E-Honolulu (951510, HI)",
                "High Hazard Unit - Central (950663, CA)",
                "High Hazard Unit - North (950661, CA)",
                "High Hazard Unit - South (950662, CA)",
                "Honolulu Area Office (936300, AS/GU/HI)",
                "Houston North Area Office (626600, TX)",
                "Houston South Area Office (626700, TX)",
                "Illinois Public Sector 0551701 (551701, IL)",
                "Illinois Public Sector 0551702 (551702, IL)",
                "Indiana Department of Labor (551800, IN)",
                "IOWA 0751910 (751910, IA)",
                "Jackson Area Office (419400, MS/TN)",
                "Jacksonville Area Office (419700, FL)",
                "Kansas City Area Office (728500, MO)",
                "KY Labor Cabinet  Division of OSH Compliance (452110, KY)",
                "Labor Enforcement Task Force (LETF) Unit - Central (950664, CA)",
                "Labor Enforcement Task Force (LETF) Unit - North (950667, CA)",
                "Labor Enforcement Task Force (LETF) Unit - South (950665, CA)",
                "Little Rock Area Office (627100, AR)",
                "Lodi Agricultural Enforcement Task Force District Office (950691, CA)",
                "Long Beach District Office (950635, CA)",
                "Long Beach District Office (950642, CA)",
                "Long Island Area Office (214700, NY)",
                "Los Angeles District Office (950641, CA)",
                "Lubbock Area Office (627510, TX)",
                "Madison Area Office (523300, WI)",
                "Maine Department of Labor, Bureau of Labor Standards, Workplace Safety & Health Division (152300, ME)",
                "Manhattan Area Office (215000, NY)",
                "Marlton Area Office (213900, NJ/NY/PA)",
                "Massachusetts Department of Labor Standards (152500, MA)",
                "Medford (1054116, OR)",
                "Medford (1054196, OR)",
                "Milwaukee Area Office (523400, WI)",
                "Minnesota Department of Labor and Industry (552700, MN)",
                "MIOSHA Construction Safety & Health Division (552651, MI)",
                "MIOSHA General Industry Safety & Health Division (552652, MI)",
                "Mobile Area Office (418600, AL/FL)",
                "Modesto District Office (950681, CA)",
                "Monrovia District Office (950644, CA)",
                "Naperville Area Office (521400, IL/TX)",
                "Nashville Area Office (420100, TN)",
                "NC Department of Labor - Charlotte (453730, NC/SC)",
                "NC Department of Labor - Raleigh (453710, NC)",
                "NC Department of Labor - Winston-Salem (453720, GA/NC)",
                "New Jersey Department of Health (253410, NJ)",
                "New York State Department of Labor Public Employee Safety & Health Bureau (253650, NY)",
                "NJ-CE-Trenton (Safety) New Jersey Department of Labor and Workforce Development (253420, NJ)",
                "Norfolk Area Office (316300, VA)",
                "Northwest Area Office (1032700, AK/OR/WA)",
                "NV-E-Las Vegas 0953220 (953220, NV)",
                "NV-E-Reno 0953210 (953210, CA/NV)",
                "NYS DOL PESH Albany (253610, NY)",
                "NYS DOL PESH Binghamton (253620, NY)",
                "NYS DOL PESH Buffalo (253630, NY)",
                "NYS DOL PESH Garden City (253640, NY)",
                "NYS DOL PESH Rochester (253660, NY)",
                "NYS DOL PESH Syracuse (253670, NY)",
                "NYS DOL PESH Utica (253680, NY)",
                "NYS DOL PESH White Plains (253690, NY)",
                "Oakland District Office (950614, CA)",
                "Oklahoma City Area Office (627700, OK/TX)",
                "Omaha Area Office (728900, IA/NE)",
                "OR-E-Portland - SAFETY 1 1054111 (1054111, OR)",
                "OR-E-Portland - SAFETY 1 1054111 (1054112, OR)",
                "OR-E-Portland - SAFETY 1 1054111 (1054191, OR)",
                "OR-E-Salem 1054100 (1054113, OR)",
                "Orlando Area Office (419730, FL)",
                "OSHA Philadelphia Area Office (317000, PA)",
                "OSHA Region - Atlanta (400000, FL/GA/NC/SC)",
                "OSHA Region - Birmingham (1100000, AL/AR/FL/KY/LA/MS/TN)",
                "OSHA Region - Boston (100000, CT/MA/ME/NH/RI/VT)",
                "OSHA Region - Chicago (500000, IL/IN/MI/MN/OH/WI)",
                "OSHA Region - Dallas (600000, NM/OK/TX)",
                "OSHA Region - Denver (800000, CO/MT/ND/SD/UT/WY)",
                "OSHA Region - Kansas City (700000, IA/KS/MO/NE)",
                "OSHA Region - New York City (200000, NJ/NY/PR/VI)",
                "OSHA Region - Philadelphia (300000, DC/DE/MD/PA/VA/WV)",
                "OSHA Region - San Francisco (900000, AK/AZ/CA/ID/NV/OR/WA)",
                "Parsippany Area Office (214200, NJ)",
                "Peoria Area Office (524500, IL)",
                "Pittsburgh Area Office (317500, PA)",
                "PR-E-Arecibo 0257210 (257210, PR)",
                "PR-E-Caguas 0257220 (257220, PR)",
                "PR-E-Carolina 0257230 (257230, PR)",
                "PR-E-Mayaguez 0257240 (257240, PR)",
                "PR-E-Ponce 0257250 (257250, PR)",
                "PR-E-San Juan 0257260 (257260, PR)",
                "Process Safety Management - North Non-Refinery (950673, CA)",
                "Process Safety Management - South Non-Refinery (950674, CA)",
                "Process Safety Management Unit - North (950671, CA)",
                "Process Safety Management Unit - South (950672, CA)",
                "Providence Area Office (112300, RI)",
                "Puerto Rico Area Office (215300, PR/VI)",
                "Queens District Office (215600, NY)",
                "Raleigh Area Office (420300, NC/SC)",
                "Redding District Office (950623, CA)",
                "Riverside District Office (950634, CA)",
                "Sacramento District Office (950621, CA)",
                "Sacramento Mining & Tunneling District Office (950651, CA)",
                "Saint Louis Area Office (729300, MO/VA)",
                "Salem (1054193, OR)",
                "Salinas Agricultural Enforcement Task Force District Office (950692, CA)",
                "San Antonio Area Office (625500, TX)",
                "San Bernardino District Office (950633, CA)",
                "San Bernardino Mining &Tunneling District Office (950653, CA)",
                "San Diego District Office (950632, CA)",
                "San Francisco District Office (950611, CA)",
                "Santa Ana District Office (950631, CA)",
                "Santa Barbara District Office (950684, CA)",
                "Savannah Area Office (418400, GA)",
                "SC Department of Labor, Licensing, and Regulation (454510, LA/SC)",
                "Sioux Falls Area Office (830400, SD)",
                "Southwest Area Office (936100, AZ/CA/NV/OK)",
                "Springfield Area Office (112600, MA)",
                "State of New Mexico Environment Department Occupational Health & Safety Bureau (653510, NM/TX)",
                "Syracuse Area Office (215800, NY)",
                "Tampa Area Office (420600, FL/TX)",
                "Tarrytown Area Office (216000, NY)",
                "Tennessee OSHA Chattanooga Office - Health (454723, TN)",
                "Tennessee OSHA Chattanooga Office - Public Sector (454733, TN)",
                "Tennessee OSHA Chattanooga Office - Safety (454713, TN)",
                "Tennessee OSHA Gray Office - Health (454726, TN)",
                "Tennessee OSHA Gray Office - Safety (454716, TN)",
                "Tennessee OSHA Jackson Office - Health (454725, TN)",
                "Tennessee OSHA Jackson Office - Public Sector (454735, TN)",
                "Tennessee OSHA Jackson Office - Safety (454715, TN)",
                "Tennessee OSHA Knoxville Office - Health (454724, TN)",
                "Tennessee OSHA Knoxville Office - Public Sector (454734, TN)",
                "Tennessee OSHA Knoxville Office - Safety (454714, TN)",
                "Tennessee OSHA Memphis Office - Health (454721, TN)",
                "Tennessee OSHA Memphis Office - Public Sector (454731, TN)",
                "Tennessee OSHA Memphis Office - Safety (454711, TN)",
                "Tennessee OSHA Nashville Office - Health (454722, TN)",
                "Tennessee OSHA Nashville Office - Public Sector (454732, TN)",
                "Tennessee OSHA Nashville Office - Safety (454712, TN)",
                "Toledo Area Office (524700, MI/OH)",
                "Utah Division of Occupational Safety and Health (854910, UT)",
                "V. ISLANDS FREDRKSTD 0257810 (257810, VI)",
                "V. ISLANDS ST THOMAS 0257820 (257820, VI)",
                "VA-E-Abingdon (Field Office) - Safety 0355110 (355110, VA)",
                "VA-E-Lynchburg (Field Office) - Safety 0355117 (355117, VA)",
                "VA-E-Manassas (Regional Office)  - Health 0355125 (355125, MD/VA)",
                "VA-E-Manassas (Regional Office)- Safety 0355114 (355114, VA)",
                "VA-E-Norfolk (Regional Office) - Health 03551124 (355124, VA)",
                "VA-E-Norfolk (Regional Office) - Safety 0355112 (355112, DC/VA)",
                "VA-E-Richmond (Regional Office) - Health 0355121 (355121, VA)",
                "VA-E-Richmond (Regional Office) - Safety 0355111 (355111, VA)",
                "VA-E-Roanoke (Regional Office) -Health 0355123 (355123, VA)",
                "VA-E-Roanoke (Regional Office) -Safety 0355118 (355118, VA)",
                "VA-E-Verona (Field Office) -  Health 0355122 (355122, VA)",
                "VA-E-Verona (Field Office) - Safety 0355116 (355116, VA)",
                "Van Nuys District Office (950643, CA)",
                "Van Nuys Mining & Tunneling District Office (950652, CA)",
                "VT Department of Labor - VOSHA (155010, VT)",
                "Wichita Area Office (729700, KS)",
                "Wilkes Barre Area Office (317700, PA)",
                "Wilmington Area Office (317300, DE/PA)",
                "Wyoming Department of Workforce Services - OSHA Division (855610, WY)"
              ]
            },
            "default": []
          },
          "sinceDays": {
            "title": "Inspections opened in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How far back to look, counted from the inspection opening date. A daily scheduled run needs 3 to 7 days (OSHA publishes an inspection 0 to 2 days after it opens). Look back further for a first sweep or a history pull.",
            "default": 7
          },
          "inspectionTypes": {
            "title": "Inspection types (optional filter)",
            "type": "array",
            "description": "Only return these kinds of inspection. Leave empty for all of them.",
            "items": {
              "type": "string",
              "enum": [
                "fatality-catastrophe",
                "complaint",
                "referral",
                "planned",
                "follow-up",
                "other"
              ],
              "enumTitles": [
                "Fatality or catastrophe",
                "Complaint",
                "Referral",
                "Planned (programmed)",
                "Follow-up",
                "Other unprogrammed"
              ]
            },
            "default": []
          },
          "naicsPrefixes": {
            "title": "Industry filter: NAICS code prefixes (optional)",
            "type": "array",
            "description": "Only return inspections whose NAICS code starts with one of these, for example <code>23</code> for construction, <code>31</code>/<code>32</code>/<code>33</code> for manufacturing, <code>4841</code> for general freight trucking. Leave empty for every industry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keyword watchlist (optional)",
            "type": "array",
            "description": "Only return inspections matching these words in the establishment name, city, street address or industry title. Handy for watching named companies or a single town.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "caseStatus": {
            "title": "Case status",
            "enum": [
              "all",
              "open",
              "closed"
            ],
            "type": "string",
            "description": "Open cases are inspections OSHA has not finished yet, which is where the new-lead value is. Closed cases are the settled ones, with final penalties.",
            "default": "all"
          },
          "maxInspections": {
            "title": "Max inspections",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many inspections across the whole run. This is what caps what you pay.",
            "default": 500
          },
          "monitorMode": {
            "title": "Monitor mode (only inspections new since the last run)",
            "type": "boolean",
            "description": "Built for a scheduled run. The first run returns everything in your window and remembers it; every run after that returns, and charges for, only inspections it has never reported.",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL (Slack-compatible)",
            "type": "string",
            "description": "In monitor mode, post a short digest of the new inspections here. Works with a Slack incoming webhook or any endpoint that accepts <code>{\"text\": \"...\"}</code> JSON."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}