{
  "openapi": "3.0.1",
  "info": {
    "title": "Job Materials List: Parts, Quantities & Labor",
    "description": "Turn a trade job into one materials list that combines built-in takeoff templates, quantity math, safety notes, retailer search links, how-to videos, and a BLS-based labor range. For contractors, estimators, and AI agents. Not a bid and not scraped store prices.",
    "version": "1.0",
    "x-build-id": "SsNtb8YqXZtXxUX55"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteproof~job-materials-list/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteproof-job-materials-list",
        "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/siteproof~job-materials-list/runs": {
      "post": {
        "operationId": "runs-sync-siteproof-job-materials-list",
        "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/siteproof~job-materials-list/run-sync": {
      "post": {
        "operationId": "run-sync-siteproof-job-materials-list",
        "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": {
          "jobDescription": {
            "title": "Job description",
            "type": "string",
            "description": "A plain-language description of the trade job. Example: `Replace a standard 3-tab asphalt shingle roof on a 20 square single-family house`."
          },
          "trade": {
            "title": "Trade",
            "enum": [
              "general_contractor",
              "hvac",
              "plumbing",
              "electrical",
              "roofing",
              "siding",
              "landscaping",
              "event_planning"
            ],
            "type": "string",
            "description": "Optional trade category such as roofing, electrical, or plumbing. Used to pick a template and labor category.",
            "default": "plumbing"
          },
          "measurements": {
            "title": "Measurements",
            "type": "object",
            "description": "Optional measurements object, for example roof squares, room area, or length, used to size quantities.",
            "properties": {
              "roofSqFt": {
                "title": "Roof plan area (sq ft)",
                "type": "number",
                "description": "Plan/footprint area. If this is already the sloped surface, set roofPitch to 0/12."
              },
              "roofPitch": {
                "title": "Roof pitch",
                "type": "string",
                "description": "For example 6/12. Defaults to 6/12 when omitted on a roofing job."
              },
              "roofComplexity": {
                "title": "Roof complexity",
                "type": "string",
                "description": "gable (10% waste) or hip/complex (15% waste)."
              },
              "roomLengthFt": {
                "title": "Room length (ft)",
                "type": "number",
                "description": "Room length in feet, used for drywall, paint, and baseboard takeoffs."
              },
              "roomWidthFt": {
                "title": "Room width (ft)",
                "type": "number",
                "description": "Room width in feet, used for drywall, paint, and baseboard takeoffs."
              },
              "roomHeightFt": {
                "title": "Room height (ft)",
                "type": "number",
                "description": "Room wall height in feet. Defaults to 8 ft when length and width are provided and height is omitted."
              },
              "includeCeiling": {
                "title": "Include ceiling",
                "type": "boolean",
                "description": "Include the ceiling in drywall or paint quantities. Drywall defaults to true; paint defaults to false."
              },
              "wallSqFt": {
                "title": "Wall area (sq ft)",
                "type": "number",
                "description": "Wall area in square feet when you do not have full room dimensions."
              },
              "wallLengthFt": {
                "title": "Wall length (ft)",
                "type": "number",
                "description": "Wall run length in feet (siding or a single wall)."
              },
              "wallHeightFt": {
                "title": "Wall height (ft)",
                "type": "number",
                "description": "Wall height in feet (siding or a single wall)."
              },
              "areaSqFt": {
                "title": "Bed or lawn area (sq ft)",
                "type": "number",
                "description": "Bed or lawn area in square feet for mulch or sod."
              },
              "bedSqFt": {
                "title": "Bed area (sq ft)",
                "type": "number",
                "description": "Planting bed area in square feet for mulch."
              },
              "lawnSqFt": {
                "title": "Lawn area (sq ft)",
                "type": "number",
                "description": "Lawn area in square feet for sod."
              },
              "mulchDepthIn": {
                "title": "Mulch depth (in)",
                "type": "number",
                "description": "Mulch depth in inches. Defaults to 3 inches."
              },
              "guestCount": {
                "title": "Guest count",
                "type": "integer",
                "description": "Number of guests, used for event disposables, tables, chairs, and ice."
              },
              "seatsPerTable": {
                "title": "Seats per table",
                "type": "number",
                "description": "Seats per banquet table. Defaults to 8."
              },
              "doorCount": {
                "title": "Door count",
                "type": "integer",
                "description": "Number of interior doors. Defaults to 1."
              },
              "coats": {
                "title": "Paint coats",
                "type": "number",
                "description": "Number of paint coats. Defaults to 2."
              },
              "paintCoverageSqFtPerGallon": {
                "title": "Paint coverage (sq ft/gal)",
                "type": "number",
                "description": "Paint coverage in square feet per gallon. Defaults to 350."
              },
              "wasteFactor": {
                "title": "Waste factor override",
                "type": "number",
                "description": "For example 0.10 or 10 for 10% waste."
              },
              "perimeterFt": {
                "title": "Perimeter (ft)",
                "type": "number",
                "description": "Linear perimeter in feet when room dimensions are not provided (baseboard)."
              }
            },
            "additionalProperties": true
          },
          "area": {
            "title": "US state or metro for labor wages",
            "type": "string",
            "description": "Optional U.S. area or region used for the BLS labor wage range. Example: `US` or a metro name."
          },
          "maxVideos": {
            "title": "Max how-to videos",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum how-to videos to look up when a YouTube Data API key is provided.",
            "default": 3
          },
          "youtubeApiKey": {
            "title": "YouTube Data API key (optional)",
            "type": "string",
            "description": "Optional YouTube Data API v3 key for official how-to video lookup. Leave empty to skip videos. Never put a key in a public README or shared chat."
          },
          "openaiApiKey": {
            "title": "OpenAI API key (optional)",
            "type": "string",
            "description": "Optional OpenAI key you supply for unusual jobs not covered by templates. Leave empty to use templates only."
          },
          "openrouterApiKey": {
            "title": "OpenRouter API key (optional)",
            "type": "string",
            "description": "Optional OpenRouter key you supply as an alternative LLM provider."
          },
          "llmProvider": {
            "title": "LLM provider",
            "enum": [
              "openai",
              "openrouter"
            ],
            "type": "string",
            "description": "Which optional LLM provider to use when you have supplied a key.",
            "default": "openai"
          },
          "llmModel": {
            "title": "LLM model (optional)",
            "type": "string",
            "description": "Optional model name for the chosen LLM provider."
          },
          "jobs": {
            "title": "Batch jobs (optional)",
            "type": "array",
            "description": "Optional list of jobs to process in one run instead of a single jobDescription. Each item can include its own trade and measurements."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}