{
  "openapi": "3.0.1",
  "info": {
    "title": "Procore Construction Network Contractors, Trade & Email Scraper",
    "description": "Extract verified commercial general contractors, specialty subcontractors, architects, CSI trades, average project sizes, market sectors, union/diversity status, licenses, and enriched corporate emails & LinkedIn links from Procore Construction Network.",
    "version": "0.0",
    "x-build-id": "c1T5uKdY24NfMGRPP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unique_dev~procore-network-contractors-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unique_dev-procore-network-contractors-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/unique_dev~procore-network-contractors-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unique_dev-procore-network-contractors-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/unique_dev~procore-network-contractors-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unique_dev-procore-network-contractors-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": {
          "states": {
            "title": "US States",
            "type": "array",
            "description": "2-letter US state codes to scrape construction contractors and subcontractors from (e.g., ['CA', 'TX', 'FL', 'NY', 'IL']). Enforced via strict post-extraction headquarters state validation so out-of-state contractors never leak into results.",
            "default": [
              "CA",
              "TX",
              "FL"
            ],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities Filter (Optional)",
            "type": "array",
            "description": "Optional list of cities to target within the selected states (e.g., ['Los Angeles', 'Dallas', 'Miami', 'San Diego', 'Houston']). Leave empty to scrape state-wide directories.",
            "default": [
              "Los Angeles",
              "Dallas"
            ],
            "items": {
              "type": "string"
            }
          },
          "trades": {
            "title": "Trades Offered Filter",
            "type": "array",
            "description": "Filter by construction trades or specialty services (e.g., ['Electrical', 'HVAC', 'Concrete', 'Plumbing', 'Roofing', 'Structural Steel', 'Drywall', 'Earthwork']). Leave empty to include all trades.",
            "default": [
              "Electrical",
              "HVAC",
              "Concrete",
              "Plumbing"
            ],
            "items": {
              "type": "string"
            }
          },
          "marketSectors": {
            "title": "Market Sectors Filter",
            "type": "array",
            "description": "Filter by construction market sectors served (e.g., ['Commercial', 'Industrial & Energy', 'Healthcare', 'Infrastructure', 'Institutional', 'Residential']). Leave empty to include all sectors.",
            "default": [
              "Commercial",
              "Industrial & Energy",
              "Healthcare"
            ],
            "items": {
              "type": "string"
            }
          },
          "businessTypes": {
            "title": "Business Types Filter",
            "type": "array",
            "description": "Filter by Procore business classification: 'General Contractor', 'Specialty Contractor', 'Architect', 'Engineer', 'Owner/Developer', 'Supplier', or 'Consultant'.",
            "default": [
              "General Contractor",
              "Specialty Contractor"
            ],
            "items": {
              "type": "string"
            }
          },
          "unionOrPrevailingWage": {
            "title": "Union or Prevailing Wage Filter",
            "enum": [
              "any",
              "union_only",
              "prevailing_wage_only",
              "union_or_prevailing_wage"
            ],
            "type": "string",
            "description": "Filter contractors by Union Member (UM) or Prevailing Wage (PW) classification on Procore Construction Network.",
            "default": "any"
          },
          "startUrls": {
            "title": "Start URLs (Optional Direct Procore Network URLs)",
            "type": "array",
            "description": "Optional direct Procore Construction Network URLs: Procore search URLs (https://network.procore.com/search?trades=electrical&location=Los+Angeles%2C+CA), regional/city directory URLs (https://network.procore.com/us/ca/los-angeles?trades=electrical), or company profile URLs (https://network.procore.com/p/...).",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "enrichmentMode": {
            "title": "External Website & Contact Enrichment Mode",
            "enum": [
              "none",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "Controls external website crawling, DNS MX verification, and contact extraction. 'none' = Procore directory/profile data only (fastest). 'standard' = short-circuit crawl of homepage + up to 2 real internal contact/estimating links, estimatingEmails split, and async DNS MX provider verification (Google Workspace / Microsoft 365 / Other). 'deep' = standard + parses /team and /about pages for structured keyContacts (name, title, email). Note: Free Apify accounts are capped at 'standard' mode and a 15-result preview per run.",
            "default": "standard"
          },
          "enrichEmailsAndSocials": {
            "title": "Legacy Toggle: Enrich External Website Emails & Social Media",
            "type": "boolean",
            "description": "Backwards-compatible boolean toggle. Setting this to false without specifying enrichmentMode sets enrichmentMode to 'none'. Prefer using enrichmentMode.",
            "default": true
          },
          "onlyNewContractors": {
            "title": "Delta Monitoring Mode (Only New Contractors)",
            "type": "boolean",
            "description": "When enabled, tracks seen procoreCompanyId values in the run's default Key-Value Store (compatible with LIMITED_PERMISSIONS) so resurrected/resumed runs avoid duplicate emissions.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of Procore contractor profiles to extract in a single run (1 to 10,000). Note: Free Apify accounts are automatically capped at 15 results per run as a free-tier preview; upgrade to any paid Apify plan for full high-volume runs.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy settings used exclusively for network.procore.com requests (sticky sessions with residential support). External contractor websites are crawled directly without burning residential proxy bandwidth.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}