{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Wage Determinations Scraper",
    "description": "Scrape SAM.gov wage determinations: 95,000 Service Contract Act, Davis-Bacon and collective bargaining agreement determinations with the states and counties they cover, the occupation rates and the fringe benefits.",
    "version": "0.1",
    "x-build-id": "7efg3zWyA9GEPnP5p"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~sam-gov-wage-determinations-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-sam-gov-wage-determinations-scraper",
        "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/parseforge~sam-gov-wage-determinations-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-sam-gov-wage-determinations-scraper",
        "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/parseforge~sam-gov-wage-determinations-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-sam-gov-wage-determinations-scraper",
        "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": {
          "wdTypes": {
            "title": "Determination type",
            "type": "array",
            "description": "Which registers to read: Service Contract Act and collective bargaining agreements (10,124 active), or Davis-Bacon construction decisions (85,426).",
            "items": {
              "type": "string",
              "enum": [
                "SCA",
                "DBA",
                "CBA"
              ],
              "enumTitles": [
                "Service Contract Act",
                "Davis-Bacon Act",
                "Collective Bargaining Agreement"
              ]
            }
          },
          "wdNumbers": {
            "title": "Determination numbers",
            "type": "array",
            "description": "Exact wage determination numbers, for example 2015-4653 for a Service Contract Act register or PA20260001 for a Davis-Bacon general decision.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "SAM.gov URLs",
            "type": "array",
            "description": "Paste SAM.gov wage determination URLs such as https://sam.gov/wage-determination/2015-4653/34.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: limited to 10 items (preview). Paid users: up to 1,000,000."
          },
          "states": {
            "title": "State",
            "type": "array",
            "description": "Two-letter state codes, for example TX or PA. Each state is searched separately, which also keeps every slice under SAM.gov's 10,000 record ceiling per query.",
            "items": {
              "type": "string"
            }
          },
          "countyContains": {
            "title": "County contains",
            "type": "string",
            "description": "Keep only determinations covering a county whose name contains this text, for example \"Allegheny\"."
          },
          "constructionTypes": {
            "title": "Construction type",
            "type": "array",
            "description": "Davis-Bacon only. The four construction types the Department of Labor issues decisions for.",
            "items": {
              "type": "string",
              "enum": [
                "Building",
                "Residential",
                "Highway",
                "Heavy"
              ],
              "enumTitles": [
                "Building",
                "Residential",
                "Highway",
                "Heavy"
              ]
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Free-text queries against SAM.gov's wage determination index, for example a county name or a determination number fragment.",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest publication date, as YYYY-MM-DD."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Latest publication date, as YYYY-MM-DD."
          },
          "onlyActive": {
            "title": "Only active determinations",
            "type": "boolean",
            "description": "Keep only determinations currently in force. Turn it off to reach superseded revisions as well.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order by the date SAM.gov last modified the determination.",
            "default": "newest"
          },
          "includeDocument": {
            "title": "Determination text",
            "type": "boolean",
            "description": "Add the full text of the determination as the Department of Labor publishes it, plus the covered area, the header state and the last revision date.",
            "default": false
          },
          "includeOccupationRates": {
            "title": "Occupation and classification rates",
            "type": "boolean",
            "description": "Parse the wage table into rows: occupation code, title and hourly rate for Service Contract Act registers, or classification, rate and fringes for Davis-Bacon decisions, with the lowest, highest and median rate.",
            "default": false
          },
          "includeFringeBenefits": {
            "title": "Fringe benefits",
            "type": "boolean",
            "description": "Parse the health and welfare rate, the vacation schedule and the paid holidays the determination requires.",
            "default": false
          },
          "includeExecutiveOrders": {
            "title": "Executive order minimums",
            "type": "boolean",
            "description": "Parse the executive orders the determination cites and the contractor minimum wage they set.",
            "default": false
          },
          "includeRevisionHistory": {
            "title": "Revision history",
            "type": "boolean",
            "description": "Add every published revision of the determination with its number, date and whether it is active.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}