{
  "openapi": "3.0.1",
  "info": {
    "title": "Washington Prevailing Wage - Projects, Rates & Hours",
    "description": "Washington L&I public-works prevailing-wage records: 356,307 projects, 2,044,717 intent lines (filed rates and planned headcount) and 2,857,574 affidavit lines (hours actually paid). Profile a project or aggregate by agency, contractor, county, trade or year.",
    "version": "0.0",
    "x-build-id": "NfYZBvXm2NeMjiQvP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~wa-prevailing-wage/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-wa-prevailing-wage",
        "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/j0401~wa-prevailing-wage/runs": {
      "post": {
        "operationId": "runs-sync-j0401-wa-prevailing-wage",
        "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/j0401~wa-prevailing-wage/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-wa-prevailing-wage",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "",
              "rows",
              "aggregate",
              "profile"
            ],
            "type": "string",
            "description": "rows = records from the chosen corpus (default). aggregate = one row per group with a count, hours, headcount, amount, wages or average rate. profile = one project with its intent and affidavit totals (projectId required).",
            "default": ""
          },
          "corpus": {
            "title": "Corpus",
            "enum": [
              "projects",
              "intents",
              "affidavits"
            ],
            "type": "string",
            "description": "projects = filed public-works projects (agency, contractor, amounts). intents = wage rates and planned worker count, per project/trade/county. affidavits = hours and rates actually paid, per project/trade/classification/county.",
            "default": "projects"
          },
          "projectId": {
            "title": "Project ID",
            "type": "string",
            "description": "L&I project id, e.g. \"952101\". With corpus=intents or affidavits it returns that project's lines; with mode=profile it returns the project plus its exact intent and affidavit totals."
          },
          "agency": {
            "title": "Awarding agency contains",
            "type": "string",
            "description": "Case-insensitive substring, e.g. \"SEATTLE, CITY OF\" or \"school district\". Projects corpus only."
          },
          "contractor": {
            "title": "Prime contractor contains",
            "type": "string",
            "description": "Case-insensitive substring on the prime contractor name, e.g. \"kiewit\". Projects corpus only."
          },
          "projectName": {
            "title": "Project name contains",
            "type": "string",
            "description": "Case-insensitive substring on the project name. Projects corpus only."
          },
          "contractNumber": {
            "title": "Contract number contains",
            "type": "string",
            "description": "Case-insensitive substring on the contract number. Projects corpus only."
          },
          "ubi": {
            "title": "Contractor UBI",
            "type": "string",
            "description": "Washington Unified Business Identifier of the prime contractor, as the file stores it. It is numeric, so 911 rows show an 8-digit UBI (a leading zero was dropped). Projects corpus only."
          },
          "awardFrom": {
            "title": "Award date from",
            "type": "string",
            "description": "ISO date (YYYY-MM-DD). Projects corpus only."
          },
          "awardTo": {
            "title": "Award date to",
            "type": "string",
            "description": "ISO date (YYYY-MM-DD). Projects corpus only."
          },
          "minAmount": {
            "title": "Minimum contract amount (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Projects corpus only."
          },
          "maxAmount": {
            "title": "Maximum contract amount (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Projects corpus only."
          },
          "federalFunded": {
            "title": "Federally funded",
            "type": "boolean",
            "description": "Projects corpus only. true = federally funded; false = not marked funded, which includes rows where the source leaves the box null (23,752 rows)."
          },
          "housingAct": {
            "title": "Housing Act project",
            "type": "boolean",
            "description": "Projects corpus only. true = Housing Act project; false = not marked Housing Act, including null (269,726 rows)."
          },
          "apprenticeUtilizationRequired": {
            "title": "Apprentice utilisation required",
            "type": "boolean",
            "description": "Projects corpus only. true = apprentice-utilisation requirements apply; false = not marked, including null (57,936 rows)."
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "County name, e.g. \"King\". Intents and affidavits corpora."
          },
          "trade": {
            "title": "Trade contains",
            "type": "string",
            "description": "Case-insensitive substring on the trade name. Intents and affidavits corpora (their trade vocabularies differ: 260 vs 1,697 distinct values)."
          },
          "classification": {
            "title": "Job classification contains",
            "type": "string",
            "description": "Case-insensitive substring on the job classification. Intents and affidavits corpora."
          },
          "minRate": {
            "title": "Minimum hourly rate (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Intents and affidavits corpora."
          },
          "maxRate": {
            "title": "Maximum hourly rate (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Intents and affidavits corpora."
          },
          "groupBy": {
            "title": "Aggregate dimension",
            "enum": [
              "",
              "agency",
              "contractor",
              "agencyCategory",
              "contractType",
              "awardYear",
              "county",
              "trade",
              "classification"
            ],
            "type": "string",
            "description": "Used only with mode=aggregate. Projects: agency (default), contractor, agencyCategory, contractType, awardYear. Intents/affidavits: trade (default), county, classification.",
            "default": ""
          },
          "metric": {
            "title": "Aggregate metric",
            "enum": [
              "",
              "count",
              "hours",
              "workers",
              "amount",
              "wages",
              "avgRate"
            ],
            "type": "string",
            "description": "count (default). projects also support amount (contract dollars), hours and wages; affidavits also support hours and avgRate; intent lines support workers (summed headcount - the source has no hours on intents) and avgRate.",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "type": "integer",
            "description": "How many records to deliver in rows mode (default 50, max 5000). Aggregate and profile modes ignore this.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}