# Procore Construction Network Contractors, Trade & Email Scraper (`unique_dev/procore-network-contractors-scraper`) Actor

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.

- **URL**: https://apify.com/unique_dev/procore-network-contractors-scraper.md
- **Developed by:** [Ship AI agents](https://apify.com/unique_dev) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Procore Construction Network Contractors, Subcontractors & Emails Scraper

Extract verified **General Contractors**, **Specialty Subcontractors**, **Architects**, **Engineers**, **Trades Offered**, **Market Sectors**, **Labor & Diversity Classifications** (`unionAffiliated`, `prevailingWageExperience`, `MBE`, `WBE`, `DBE`, `SBE`, `SDVOSB`, `HUB`, `8a`), **State Licenses**, **Genuinely Extracted Business & Bid-Desk Emails (`emails`, `estimatingEmails`)**, **Async DNS MX Verification (`domainHasMx`, `emailProvider`)**, and **Leadership Key Contacts (`keyContacts`)** from the [Procore Construction Network](https://network.procore.com).

> **Free-Tier Preview Cap:** Runs executed on **free Apify accounts** are automatically capped at **15 contractors per run** and **`enrichmentMode: "standard"`** as a free-tier preview. Upgrade to any paid Apify plan to unlock up to **10,000 results per run** and **`enrichmentMode: "deep"`** (`keyContacts` extraction).

***

### Live 100-Contractor Benchmark (Honest Production Telemetry)

Tested live across 3 paginated Procore Construction Network directory pages (`states: ["CA", "TX"]`, `cities: ["Los Angeles", "Dallas"]`, `trades: ["Electrical", "HVAC"]`, `enrichmentMode: "standard"`, `maxResults: 100`):

| Metric | Live 100-Contractor Result | Notes |
| :--- | :--- | :--- |
| **Total Contractors Extracted** | **`100 / 100`** (`100` unique IDs & slugs) | Completed in **`37.4s`** enrichment span, **0 timeouts**, exit code `0` |
| **Strict State / Trade Accuracy** | **`100%`** (**0** out-of-state leaks) | `93 CA`, `7 TX`; **11** out-of-state/off-trade listings automatically filtered out |
| **Office Phone Fill Rate (`phone`)** | **`100 / 100`** (`100%`) | Verified from Procore `/p/{slug}` & contractor websites |
| **External Website Fill Rate (`website`)** | **`85 / 100`** (`85%`) | Normalized `https://...` or `null` (0 empty-string URL errors) |
| **Genuinely Extracted Emails (`emails` / `estimatingEmails`)** | **`47 / 100`** (`47%`, `56` total emails) | **0% fabricated** (`40` from `website_homepage`, `7` from `website_subpage`) |
| **Construction Bid Emails (`estimatingEmails`)** | **Split cleanly** (`bids@`, `estimating@`, `rfp@`) | Isolated from general emails (e.g., `estimating@so-calelectricinc.com`, `rfp_nevada@thenewtrongroup.com`) |
| **Async DNS MX Verified (`domainHasMx: true`)** | **`74 / 100`** (`74%` overall / `87%` of websites) | **Microsoft 365:** `32` · **Google Workspace:** `24` · **Other:** `18` |
| **Separate Fallback Suggestion (`suggestedFallbackEmail`)** | **`33 / 100`** (`info@{domain}`) | Populated **only** when `emails` & `estimatingEmails` are empty AND `domainHasMx: true` (never mixed into `emails`) |
| **Social Links (`socialLinks`)** | **`33 / 100`** (`33%`) | LinkedIn, Facebook, Instagram, YouTube, X/Twitter |
| **State Licenses (`licenses`)** | **`18 / 100`** (`18%`) | CSLB / state contractor license numbers extracted |

#### Sample Live Records (From the 100-Contractor Verification Run)

| Contractor Name | City, State | Phone | Website | Genuinely Extracted `emails` | `estimatingEmails` | DNS MX (`emailProvider`) | `emailSource` / `suggestedFallbackEmail` |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **THE NEWTRON GROUP** | Martinez, CA | `(925) 229-2030` | `https://thenewtrongroup.com/` | `info@thenewtrongroup.com`, `verify@thenewtrongroup.com` | `rfp_nevada@thenewtrongroup.com` | `True` (Microsoft 365) | `website_subpage` |
| **So-Cal Electric Inc.** | Whittier, CA | `(562) 708-7791` | `https://so-calelectricinc.com/` | `[]` | `estimating@so-calelectricinc.com` | `True` (Microsoft 365) | `website_homepage` |
| **Direct Source Industrial Solutions** | Santa Fe Springs, CA | `(562) 396-9924` | `https://directsourceis.com/` | `contact@directsourceis.com` | `[]` | `True` (Google Workspace) | `website_homepage` |
| **Core Energy Group, Inc** | San Diego, CA | `(858) 218-0025` | `https://coreenergy.io/` | `gosolar@coreenergy.io` | `[]` | `True` (Google Workspace) | `website_subpage` |
| **VoltCalc Electric Inc** | Los Angeles, CA | `(818) 669-0287` | `https://voltcalc.com/` | `karo@voltcalc.com` | `[]` | `True` (Google Workspace) | `website_homepage` |
| **Golden State Solar Inc** | Gilroy, CA | `(408) 355-0842` | `https://www.goldstatesolar.com/` | `garret@gstatesolar.com`, `info@gstatesolar.com` | `[]` | `True` (Other) | `website_homepage` |
| **Light Wave Electric** | La Puente, CA | `(626) 715-3381` | `https://lightwavela.com/` | `diegod@lightwavela.com` | `[]` | `True` (Google Workspace) | `website_homepage` |
| **Polaris Global Energy Services** | College Station, TX | `(979) 985-5986` | `https://polarisges.com/` | `sales@polarisges.com` | `[]` | `True` (Microsoft 365) | `website_homepage` |
| **Goshawk, LLC** | San Antonio, TX | `(281) 217-9985` | `https://tepa.com/capabilities/industrial/` | `marketing@tepa.com` | `[]` | `True` (Microsoft 365) | `website_subpage` |
| **Menifee Valley Power** | Menifee, CA | `(951) 331-6868` | `https://menifeevalleypower.com/` | `[]` | `[]` | `True` (Google Workspace) | Fallback: `info@menifeevalleypower.com` |
| **ONE ELECTRIC (1E)** | Los Angeles, CA | `(818) 430-0188` | `https://www.1-electric.com/` | `[]` | `[]` | `True` (Microsoft 365) | Fallback: `info@1-electric.com` |

> **Zero Fabricated Emails Guarantee:** Unlike basic scrapers that silently stuff unverified `info@domain.com` guesses into `emails` (causing high bounce rates in outbound tools), this Actor puts **only genuinely extracted emails** in `emails` and `estimatingEmails`, tracks provenance via `emailSource`, verifies live DNS MX records (`domainHasMx`, `emailProvider`), and keeps any optional `info@{domain}` guess isolated in `suggestedFallbackEmail`.

***

### Enrichment Modes (`enrichmentMode`)

| Mode | Availability | What It Does | Best For |
| :--- | :--- | :--- | :--- |
| **`"none"`** | All plans | Extracts complete Procore directory & `/p/{slug}` profile fields only (skips external website crawling & DNS MX checks). | Ultra-fast high-volume directory indexing & market sizing |
| **`"standard"`** *(default)* | All plans *(max tier for Free preview)* | Short-circuit async crawl of contractor homepage `/` + up to **2 real internal `<a href>` links** (`contact`, `about`, `team`, `estimating`, `bid`), splits `estimatingEmails`, and runs async DNS MX verification (`domainHasMx`, `emailProvider`). | Balanced speed & verified business/estimating email extraction |
| **`"deep"`** | Paid plans | Everything in `"standard"`, plus prioritizes `/team`, `/leadership`, `/staff`, and `/about` pages to extract structured **`keyContacts`** (`name`, `title`, `email`) for Presidents, Estimators, and Project Managers. | Targeted ABM outreach, Clay enrichment & estimating team discovery |

***

### Production Engineering Highlights

1. **Pure Async Architecture (`curl_cffi.requests.AsyncSession` + `asyncio.Semaphore(20)`)**
   - Strictly caps external website responses at **512 KB**, `max_redirects=3`, connect/read timeout `(2.5s, 4.0s)`, and **8.0s hard cap per contractor**.
   - **Proxy Cost Isolation:** Apify Residential Proxy (sticky sessions) is used **exclusively** for `network.procore.com` requests; external contractor websites are crawled directly without burning residential proxy bandwidth.
   - **Short-Circuit Crawling:** Fetches homepage `/` first; stops immediately once both an email and phone number are found. Otherwise probes at most 2 real internal links parsed from `<a href>`.
2. **Graceful Timeout, Migration Resilience & `LIMITED_PERMISSIONS` Compatibility**
   - Uses **only** the run's default Key-Value Store and default dataset (zero named KVS permission errors).
   - Monitors `Actor.configuration.timeout_at` with a **35-second soft deadline**: flushes completed batches, persists `RUN_STATE` (`seen_slugs`, `pagination_cursor`) to default KVS, and exits cleanly with `exit_code=0` — never hitting `TIMED-OUT`.
   - Handles `Event.MIGRATING` and syncs existing dataset `item_count` on startup so migrated/resurrected runs never duplicate or exceed paid limits.
3. **Strict Post-Extraction State & Trade Validation**
   - Rejects out-of-state national listings and off-trade Yahoo results so state- and trade-filtered runs stay 100% clean.
   - Includes a Yahoo Search circuit breaker (trips on HTTP `429`/`999` or 2 consecutive pages with 0 new slugs).

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `states` | `array` | `["CA", "TX", "FL"]` | 2-letter US state codes (strictly enforced against headquarters `state`). |
| `cities` | `array` | `["Los Angeles", "Dallas"]` | Optional cities to target within selected states. |
| `trades` | `array` | `["Electrical", "HVAC", "Concrete", "Plumbing"]` | Construction trades or specialties offered. |
| `marketSectors` | `array` | `["Commercial", "Industrial & Energy", "Healthcare"]` | Market sectors served (`Commercial`, `Healthcare`, `Industrial & Energy`, `Infrastructure`, `Institutional`, `Residential`). |
| `businessTypes` | `array` | `["General Contractor", "Specialty Contractor"]` | Procore business classification filter. |
| `unionOrPrevailingWage` | `string` | `"any"` | Filter by `"any"`, `"union_only"`, `"prevailing_wage_only"`, or `"union_or_prevailing_wage"`. |
| `startUrls` | `array` | `[]` | Optional direct Procore URLs: `/search?...`, `/us/...` regional directories, or `/p/{slug}` company profiles. |
| `enrichmentMode` | `string` | `"standard"` | `"none"`, `"standard"`, or `"deep"` (free Apify accounts are capped at `"standard"`). |
| `onlyNewContractors` | `boolean` | `false` | Delta tracking using default Key-Value Store (`LIMITED_PERMISSIONS` compatible). |
| `maxResults` | `integer` | `20` | Maximum contractor profiles to output (`1`–`10000`). **Free Apify accounts are capped at 15 results per run.** |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Apify Proxy configuration applied exclusively to `network.procore.com` requests. |

***

### Sample Output JSON

```json
{
  "procoreCompanyId": "598134325702514",
  "networkUuid": "a2b1c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "companyName": "THE NEWTRON GROUP",
  "dba": null,
  "profileUrl": "https://network.procore.com/p/the-newtron-group-martinez",
  "primarySlug": "the-newtron-group-martinez",
  "businessTypes": [
    "General Contractor",
    "Specialty Contractor"
  ],
  "phone": "(925) 229-2030",
  "alternatePhones": [],
  "website": "https://thenewtrongroup.com/",
  "emails": [
    "info@thenewtrongroup.com",
    "verify@thenewtrongroup.com"
  ],
  "estimatingEmails": [
    "rfp_nevada@thenewtrongroup.com"
  ],
  "domainHasMx": true,
  "emailProvider": "Microsoft 365",
  "emailSource": "website_subpage",
  "suggestedFallbackEmail": null,
  "keyContacts": [
    {
      "name": "John Smith",
      "title": "Chief Estimator",
      "email": "jsmith@thenewtrongroup.com"
    }
  ],
  "address": {
    "street": "4111 Pacheco Blvd",
    "address2": null,
    "city": "Martinez",
    "state": "CA",
    "zip": "94553",
    "countryCode": "US",
    "lat": 38.0124,
    "lng": -122.0891,
    "fullAddress": "4111 Pacheco Blvd Martinez, CA 94553"
  },
  "street": "4111 Pacheco Blvd",
  "city": "Martinez",
  "state": "CA",
  "zip": "94553",
  "latitude": 38.0124,
  "longitude": -122.0891,
  "serviceRadiusMiles": 100,
  "coverageAreas": [
    "CA (Statewide)"
  ],
  "tradesOffered": [
    "Electrical",
    "Instrumentation and Control For Electrical Systems",
    "Electrical General"
  ],
  "marketSectors": [
    "Commercial",
    "Industrial and Energy",
    "Infrastructure"
  ],
  "averageProjectSize": "$1,000,000+",
  "employeeSize": "500+ employees",
  "classifications": {
    "unionAffiliated": false,
    "prevailingWageExperience": true,
    "diversityCertifications": []
  },
  "unionAffiliated": false,
  "prevailingWageExperience": true,
  "diversityCertifications": [],
  "licenses": [],
  "procoreMetrics": {
    "totalProjects": 18,
    "activeProjects": 6,
    "avgProjectSize": 2400000,
    "employees": 42,
    "claimed": true,
    "payingAccount": true,
    "receiveBidInvitations": true,
    "showProcoreActivity": true
  },
  "socialLinks": {
    "linkedin": "https://www.linkedin.com/company/the-newtron-group",
    "facebook": "https://www.facebook.com/thenewtrongroup",
    "instagram": "https://www.instagram.com/thenewtrongroup",
    "youtube": null,
    "twitter": "https://twitter.com/thenewtrongroup"
  },
  "linkedinUrl": "https://www.linkedin.com/company/the-newtron-group",
  "about": "THE NEWTRON GROUP is a Specialty Contractor that serves Martinez, CA and specializes in Electrical.",
  "claimed": true,
  "observedAt": "2026-11-20T16:09:20.000000+00:00"
}
```

***

### Use Cases

- **Commercial Construction Estimating & Bid Invitations (ITBs)**: Route `estimatingEmails` (`bids@`, `estimating@`, `rfp@`, `quotes@`, `proposals@`) directly into Procore, BuildingConnected, or SmartBid invitation lists.
- **ConTech, SaaS & Equipment Sales**: Prospect verified commercial GCs and specialty trade subcontractors segmented by `emailProvider` (`Microsoft 365` vs `Google Workspace`), active MX deliverability (`domainHasMx`), and `keyContacts`.
- **Public Works & Diversity Compliance**: Filter contractors with **Union (`UM`)**, **Prevailing Wage (`PW`)**, and **MBE / WBE / DBE / SBE / SDVOSB / HUB** certifications.
- **Clay, n8n & Make.com Pipelines**: Combine `enrichmentMode` with Pay-Per-Result / Pay-Per-Event budget guards and `RUN_STATE` migration safety for zero-timeout automated workflows.

***

### Legality, Compliance & Trademark Disclaimer

- **Public Business Data Only**: This Actor accesses only publicly available, unauthenticated directory pages on `network.procore.com` and contractors' own public company websites. It never logs into accounts, bypasses authentication, or accesses private bid boards or paywalled content.
- **Data Privacy & Responsible Use (CCPA / GDPR / CAN-SPAM)**: Commercial directory details (company names, business phones, trades, licenses, and role-based addresses such as `estimating@` or `bids@`) are public business records. When using `enrichmentMode: "deep"` (`keyContacts`) or contacting individual email addresses, you are solely responsible for ensuring your outreach and data processing comply with applicable laws (including **CCPA/CPRA**, **GDPR**, and **CAN-SPAM**), such as maintaining a lawful basis for B2B outreach and honoring opt-out or deletion requests.
- **No Fabricated Emails**: Unverified `info@{domain}` suggestions are never inserted into `emails` or `estimatingEmails`; they are isolated in `suggestedFallbackEmail` so you control deliverability and compliance.
- **Trademark Disclaimer**: This Actor is an **independent software tool** and is **not affiliated with, endorsed by, sponsored by, or connected to Procore Technologies, Inc.** Procore® and Procore Construction Network are registered trademarks of Procore Technologies, Inc.

# Actor input Schema

## `states` (type: `array`):

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.

## `cities` (type: `array`):

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.

## `trades` (type: `array`):

Filter by construction trades or specialty services (e.g., \['Electrical', 'HVAC', 'Concrete', 'Plumbing', 'Roofing', 'Structural Steel', 'Drywall', 'Earthwork']). Leave empty to include all trades.

## `marketSectors` (type: `array`):

Filter by construction market sectors served (e.g., \['Commercial', 'Industrial & Energy', 'Healthcare', 'Infrastructure', 'Institutional', 'Residential']). Leave empty to include all sectors.

## `businessTypes` (type: `array`):

Filter by Procore business classification: 'General Contractor', 'Specialty Contractor', 'Architect', 'Engineer', 'Owner/Developer', 'Supplier', or 'Consultant'.

## `unionOrPrevailingWage` (type: `string`):

Filter contractors by Union Member (UM) or Prevailing Wage (PW) classification on Procore Construction Network.

## `startUrls` (type: `array`):

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/...).

## `enrichmentMode` (type: `string`):

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.

## `enrichEmailsAndSocials` (type: `boolean`):

Backwards-compatible boolean toggle. Setting this to false without specifying enrichmentMode sets enrichmentMode to 'none'. Prefer using enrichmentMode.

## `onlyNewContractors` (type: `boolean`):

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.

## `maxResults` (type: `integer`):

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.

## `proxyConfiguration` (type: `object`):

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.

## Actor input object example

```json
{
  "states": [
    "CA",
    "TX",
    "FL"
  ],
  "cities": [
    "Los Angeles",
    "Dallas"
  ],
  "trades": [
    "Electrical",
    "HVAC",
    "Concrete",
    "Plumbing"
  ],
  "marketSectors": [
    "Commercial",
    "Industrial & Energy",
    "Healthcare"
  ],
  "businessTypes": [
    "General Contractor",
    "Specialty Contractor"
  ],
  "unionOrPrevailingWage": "any",
  "startUrls": [],
  "enrichmentMode": "standard",
  "enrichEmailsAndSocials": true,
  "onlyNewContractors": false,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing extracted Procore Construction Network contractor profiles, trades offered, market sectors, union/prevailing wage & diversity classifications, project metrics, state licenses, and enriched website business emails

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "states": [
        "CA",
        "TX",
        "FL"
    ],
    "cities": [
        "Los Angeles",
        "Dallas"
    ],
    "trades": [
        "Electrical",
        "HVAC",
        "Concrete",
        "Plumbing"
    ],
    "marketSectors": [
        "Commercial",
        "Industrial & Energy",
        "Healthcare"
    ],
    "businessTypes": [
        "General Contractor",
        "Specialty Contractor"
    ],
    "startUrls": [],
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("unique_dev/procore-network-contractors-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "states": [
        "CA",
        "TX",
        "FL",
    ],
    "cities": [
        "Los Angeles",
        "Dallas",
    ],
    "trades": [
        "Electrical",
        "HVAC",
        "Concrete",
        "Plumbing",
    ],
    "marketSectors": [
        "Commercial",
        "Industrial & Energy",
        "Healthcare",
    ],
    "businessTypes": [
        "General Contractor",
        "Specialty Contractor",
    ],
    "startUrls": [],
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("unique_dev/procore-network-contractors-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "states": [
    "CA",
    "TX",
    "FL"
  ],
  "cities": [
    "Los Angeles",
    "Dallas"
  ],
  "trades": [
    "Electrical",
    "HVAC",
    "Concrete",
    "Plumbing"
  ],
  "marketSectors": [
    "Commercial",
    "Industrial & Energy",
    "Healthcare"
  ],
  "businessTypes": [
    "General Contractor",
    "Specialty Contractor"
  ],
  "startUrls": [],
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call unique_dev/procore-network-contractors-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,unique_dev/procore-network-contractors-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/egm2hxi85zwVfpWNK/builds/c1T5uKdY24NfMGRPP/openapi.json
