{
  "openapi": "3.0.1",
  "info": {
    "title": "CA Public Works Apprenticeship Programs (DIR / DAS)",
    "description": "All California public works apprenticeship programs in one deduplicated dataset: every county, every craft, with contacts. Built for DAS 140 / DAS 142 compliance workflows.",
    "version": "0.8",
    "x-build-id": "g274I2Vx6xhx1h5Zj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/overlookdata~ca-dir-apprenticeship-programs/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-overlookdata-ca-dir-apprenticeship-programs",
        "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-dir-apprenticeship-programs/runs": {
      "post": {
        "operationId": "runs-sync-overlookdata-ca-dir-apprenticeship-programs",
        "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-dir-apprenticeship-programs/run-sync": {
      "post": {
        "operationId": "run-sync-overlookdata-ca-dir-apprenticeship-programs",
        "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": {
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Pick the counties to search. Leave empty to search all 58 California counties.",
            "items": {
              "type": "string",
              "enum": [
                "ALAMEDAA",
                "ALPINEC",
                "AMADORC",
                "BUTTEC",
                "CALAVERASC",
                "COLUSAC",
                "CONTRA COSTAA",
                "DEL NORTEA",
                "EL DORADOC",
                "FRESNOD",
                "GLENNC",
                "HUMBOLDTA",
                "IMPERIALG",
                "INYOD",
                "KERND",
                "KINGSD",
                "LAKEA",
                "LASSENC",
                "LOS ANGELESE",
                "MADERAD",
                "MARINA",
                "MARIPOSAD",
                "MENDOCINOA",
                "MERCEDD",
                "MODOCC",
                "MONOD",
                "MONTEREYB",
                "NAPAA",
                "NEVADAC",
                "ORANGEE",
                "PLACERC",
                "PLUMASC",
                "RIVERSIDEE",
                "SACRAMENTOC",
                "SAN BENITOB",
                "SAN BERNARDINOE",
                "SAN DIEGOG",
                "SAN FRANCISCOA",
                "SAN JOAQUINC",
                "SAN LUIS OBISPOE",
                "SAN MATEOB",
                "SANTA BARBARAE",
                "SANTA CLARAB",
                "SANTA CRUZB",
                "SHASTAC",
                "SIERRAC",
                "SISKIYOUC",
                "SOLANOA",
                "SONOMAA",
                "STANISLAUSC",
                "SUTTERC",
                "TEHAMAC",
                "TRINITYC",
                "TULARED",
                "TUOLUMNEC",
                "VENTURAE",
                "YOLOC",
                "YUBAC"
              ],
              "enumTitles": [
                "Alameda",
                "Alpine",
                "Amador",
                "Butte",
                "Calaveras",
                "Colusa",
                "Contra Costa",
                "Del Norte",
                "El Dorado",
                "Fresno",
                "Glenn",
                "Humboldt",
                "Imperial",
                "Inyo",
                "Kern",
                "Kings",
                "Lake",
                "Lassen",
                "Los Angeles",
                "Madera",
                "Marin",
                "Mariposa",
                "Mendocino",
                "Merced",
                "Modoc",
                "Mono",
                "Monterey",
                "Napa",
                "Nevada",
                "Orange",
                "Placer",
                "Plumas",
                "Riverside",
                "Sacramento",
                "San Benito",
                "San Bernardino",
                "San Diego",
                "San Francisco",
                "San Joaquin",
                "San Luis Obispo",
                "San Mateo",
                "Santa Barbara",
                "Santa Clara",
                "Santa Cruz",
                "Shasta",
                "Sierra",
                "Siskiyou",
                "Solano",
                "Sonoma",
                "Stanislaus",
                "Sutter",
                "Tehama",
                "Trinity",
                "Tulare",
                "Tuolumne",
                "Ventura",
                "Yolo",
                "Yuba"
              ]
            },
            "default": []
          },
          "trades": {
            "title": "Trades (crafts)",
            "type": "array",
            "description": "Pick the trades to search. Leave empty to search all apprenticeable crafts.",
            "items": {
              "type": "string",
              "enum": [
                "02",
                "07",
                "34",
                "08",
                "10",
                "12",
                "14",
                "36",
                "55",
                "22",
                "23",
                "63",
                "26",
                "59",
                "31",
                "32",
                "38",
                "48",
                "24",
                "54",
                "57",
                "58",
                "62",
                "64",
                "21",
                "66",
                "65",
                "68"
              ],
              "enumTitles": [
                "Asbestos Workers",
                "Boilermaker",
                "Brick Tender / Laborers / Plaster Tender",
                "Bricklayer",
                "Carpentry",
                "Carpet, Linoleum",
                "Cement Masons",
                "Drywall / Lathers",
                "Drywall Finisher (Taper)",
                "Electrical & Electronic",
                "Elevator Mechanic",
                "Fire Sprinkler Fitter",
                "Glazier & Glass Workers",
                "Heating, Ventilation & Air Conditioning",
                "Inspector / Tester",
                "Iron & Steel Workers",
                "Lineman",
                "Millwright",
                "Operating Engineer",
                "Painting & Decoration",
                "Plasterer",
                "Plumbing & Pipefitting",
                "Roofer",
                "Sheet Metal",
                "Sound / Communication Installer",
                "Surveyor",
                "Teamster",
                "Tile Layer/Setter"
              ]
            },
            "default": []
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "programs",
              "combinations"
            ],
            "type": "string",
            "description": "One record per unique program (deduplicated, with derived county/trade coverage), or one record per county/craft/program search result with its source URL.",
            "default": "programs"
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Politeness delay each worker waits after a request. The default is gentle on DIR's servers; a full state sweep still finishes in a few minutes.",
            "default": 500
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of simultaneous requests to DIR.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}