{
  "openapi": "3.0.1",
  "info": {
    "title": "Open Construction Estimate Scraper",
    "description": "Scrape construction cost estimates from OpenConstructionEstimate. Export the full catalog, filter by search/category/price, or scrape individual estimate URLs. Optional detail pages include resources, machines, work steps, and cost breakdowns.",
    "version": "1.0",
    "x-build-id": "2bs9bl2djGtmaQORC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~openconstructionestimate-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-openconstructionestimate-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/rigelbytes~openconstructionestimate-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-openconstructionestimate-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/rigelbytes~openconstructionestimate-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-openconstructionestimate-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Catalog pages and/or individual estimate URLs, e.g. \"https://openconstructionestimate.com/estimates/\" or \"https://openconstructionestimate.com/estimates/en/hydrojet-cleaning-concrete-surfaces/\". Leave empty together with the other filters to export the full catalog.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Match estimate name, code, or slug (OR), e.g. \"concrete\", \"hydrojet\", or \"PUNE_KAVO_KAPUPU_KARI\".",
            "items": {
              "type": "string"
            }
          },
          "estimateCodes": {
            "title": "Estimate codes",
            "type": "array",
            "description": "Exact catalog codes such as PUNE_KAVO_KAPUPU_KARI. Use instead of, or together with, start URLs.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Category names in German or another language (e.g. \"Erdarbeiten\", \"Earthworks\", \"Tunnel construction\"). Leave empty for all categories.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Subcategory / department names from the catalog sidebar (e.g. \"SONSTIGE ARBEITEN\").",
            "items": {
              "type": "string"
            }
          },
          "units": {
            "title": "Units",
            "type": "array",
            "description": "Measurement units to keep (e.g. \"m\", \"m3\", \"100 m2\", \"1 Trennstelle\").",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Inclusive lower bound in EUR. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Inclusive upper bound in EUR. Leave empty for no maximum."
          },
          "minLaborHours": {
            "title": "Minimum labor hours",
            "minimum": 0,
            "type": "number",
            "description": "Inclusive lower bound for catalog labor hours."
          },
          "maxLaborHours": {
            "title": "Maximum labor hours",
            "minimum": 0,
            "type": "number",
            "description": "Inclusive upper bound for catalog labor hours."
          },
          "minResources": {
            "title": "Minimum resources",
            "minimum": 0,
            "type": "integer",
            "description": "Inclusive lower bound for resource count."
          },
          "maxResources": {
            "title": "Maximum resources",
            "minimum": 0,
            "type": "integer",
            "description": "Inclusive upper bound for resource count."
          },
          "minWorkSteps": {
            "title": "Minimum work steps",
            "minimum": 0,
            "type": "integer",
            "description": "Inclusive lower bound for work-step count."
          },
          "maxWorkSteps": {
            "title": "Maximum work steps",
            "minimum": 0,
            "type": "integer",
            "description": "Inclusive upper bound for work-step count."
          },
          "minWorkers": {
            "title": "Minimum workers",
            "minimum": 0,
            "type": "integer",
            "description": "Inclusive lower bound for people per unit."
          },
          "maxWorkers": {
            "title": "Maximum workers",
            "minimum": 0,
            "type": "integer",
            "description": "Inclusive upper bound for people per unit."
          },
          "costStructure": {
            "title": "Cost structure",
            "type": "array",
            "description": "Keep estimates that are material-intensive (>40%), labor-intensive (>40%), or machine-intensive (>25%). Leave empty for any mix.",
            "items": {
              "type": "string",
              "enum": [
                "material",
                "labor",
                "machine"
              ],
              "enumTitles": [
                "Material-intensive",
                "Labor-intensive",
                "Machine-intensive"
              ]
            }
          },
          "hasMachines": {
            "title": "Has machines",
            "type": "boolean",
            "description": "When set, keep only estimates that include machines (true) or exclude them (false). Leave empty for any."
          },
          "hasElectricity": {
            "title": "Has electricity",
            "type": "boolean",
            "description": "When set, keep only estimates that include electricity (true) or exclude them (false). Leave empty for any."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "name-asc",
              "price-asc",
              "price-desc",
              "resources-desc",
              "labor-desc"
            ],
            "type": "string",
            "description": "Order of catalog results before maxItems is applied.",
            "default": "name-asc"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "ru",
              "zh",
              "ar",
              "hi",
              "us",
              "uk"
            ],
            "type": "string",
            "description": "Language for names, slugs, units, category labels, and detail pages.",
            "default": "en"
          },
          "scrapeListingDetails": {
            "title": "Scrape listing details",
            "type": "boolean",
            "description": "Visit each estimate page for resources, machines, work steps, and cost breakdown. Charges a second pay-per-event (listing-details) when the detail payload is extracted.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Detail concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many detail pages to fetch at once (each request can use a rotated proxy).",
            "default": 5
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of estimates to scrape (0 = unlimited).",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are recommended for catalog and detail requests.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}