# TrustedPros Scraper — Canada Contractor Leads, Phone & Site (`scrapersdelight/trustedpros-scraper`) Actor

Scrape TrustedPros.ca home-service contractors across Canada — company name, phone, website, address, city, province, category and star rating. Filter by city + trade or pull the whole 50k+ directory. No login. JSON/CSV.

- **URL**: https://apify.com/scrapersdelight/trustedpros-scraper.md
- **Developed by:** [Scrapers Delight](https://apify.com/scrapersdelight) (community)
- **Categories:** Automation, Lead generation, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$15.00 / 1,000 per contractor returneds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## TrustedPros Scraper — Canada Contractor Leads (Phone, Website & Rating)

Extract Canadian home-service contractor leads from **TrustedPros.ca** — company name, phone, website, address, city, province, trade/category and star rating. Filter by city + trade, or pull the whole 50,000+ contractor directory. **No login required.**

### What you get

Each record is one contractor:

| Field | Description |
|---|---|
| `companyName` | Business name |
| `phone` | Phone number (e.g. `416-747-1920`) |
| `website` | Contractor's own site (UTM stripped); `null` if none listed |
| `streetAddress` | Street address |
| `city` | City |
| `province` | Province code (e.g. `ON`, `BC`) |
| `postalCode` | Postal code |
| `country` | Country (`CA`) |
| `latitude` / `longitude` | Geo coordinates |
| `category` | Trade / category (e.g. `Electricians`, `Waterproofing Contractors`) |
| `ratingValue` | Average star rating (0–5); `null` if unrated |
| `reviewCount` | Number of reviews; `null` if unrated |
| `description` | Business description |
| `image` | Logo / profile image URL |
| `profileUrl` | TrustedPros profile URL |
| `scrapedAt` | ISO timestamp of the scrape |

### Use cases

- **Agency prospecting lists** — build dialable/emailable lists of contractors by city and trade to sell SEO, ads or SaaS.
- **Contractor lead resale** — verified name + phone + website + rating rows to resell to marketing buyers.
- **Market & competitor mapping** — map every plumber/electrician/roofer in a city with ratings and review counts.
- **CRM enrichment** — attach phone, website, address and rating to existing contractor records.

### Input

| Field | Type | Description |
|---|---|---|
| `mode` | enum | `location` (one city / trade) or `sitemap` (all of Canada, capped by `maxItems`). |
| `province` | string | Province code for Location mode, e.g. `on`, `bc`, `ab`, `qc`. |
| `city` | string | City slug for Location mode, e.g. `toronto`, `vancouver`, `calgary`. |
| `category` | string | Optional trade filter, e.g. `electrical`, `plumbing`, `roofing`. Blank = all trades. |
| `startUrls` | array | Optional. Explicit `/company/{slug}` profile URLs or `/{prov}/{city}[/{trade}]` listing URLs. |
| `maxItems` | integer | Cap on contractors this run (default `100`; `0` = whole scope). |
| `proxyConfiguration` | object | Proxy. Datacenter by default; auto-falls back to RESIDENTIAL on a soft-block. |

#### Examples

One trade in one city:

```json
{ "mode": "location", "province": "on", "city": "toronto", "category": "electrical", "maxItems": 100 }
````

Every contractor in a city:

```json
{ "mode": "location", "province": "bc", "city": "vancouver", "category": "", "maxItems": 500 }
```

All of Canada (first 5,000):

```json
{ "mode": "sitemap", "maxItems": 5000 }
```

### How it works / coverage

- **Location mode** loads `/{prov}/{city}[/{trade}]`, collects the `/company/{slug}` cards, and paginates `.../p2, /p3 …` to the last page.
- **Sitemap mode** reads `/sitemap_pros.xml` (50,000+ profile URLs) and scrapes them up to `maxItems`.
- Each contact profile is static HTML with a JSON-LD `HomeAndConstructionBusiness` block — phone, address, geo and rating come from there; the website comes from the profile's outbound link.
- No login, no CAPTCHA. Records are deduplicated by profile URL.

### Honesty / limits

- Phone, website, address and star rating are **live-verified** on the public profile pages. Website is present for most (not all) contractors; `null` when a pro lists no site.
- **Email is not published on TrustedPros profiles**, so this Actor does **not** return email. If you need email, treat it as a separate enrichment step downstream.
- Canada-only. This scrapes **public directory data**; you are responsible for complying with TrustedPros' Terms of Service and applicable laws.
- Rating and last-active status reflect what is shown on the live page at scrape time.

### Output sample

```json
{
  "companyName": "RCC Waterproofing",
  "phone": "416-747-1920",
  "website": "http://rccwaterproofing.com/",
  "streetAddress": "4101 Steeles Avenue West",
  "city": "Toronto",
  "province": "ON",
  "postalCode": "M3N 1V7",
  "country": "CA",
  "latitude": 43.7734604,
  "longitude": -79.5289048,
  "category": "Waterproofing Contractors",
  "ratingValue": 4.9,
  "reviewCount": 258,
  "description": "Since 1920, RCC Waterproofing has been a trusted, award-winning specialist…",
  "image": "https://…",
  "profileUrl": "https://trustedpros.ca/company/rcc-waterproofing-toronto",
  "scrapedAt": "2026-07-07T00:00:00.000Z"
}
```

### FAQ

**Is a login needed?** No — all data comes from public pages.

**Does it return email?** No. TrustedPros does not publish contractor email on profiles.

**How many contractors are there?** The profile sitemap lists 50,000+ Canadian contractors; use Location mode to target a city/trade or Sitemap mode with `maxItems` to pull broadly.

**Pricing?** Pay-per-result: you are charged once per contractor delivered to the dataset.

# Actor input Schema

## `mode` (type: `string`):

How to enumerate contractors. "Location" scrapes one city (optionally one trade). "Sitemap" pulls from the whole-Canada profile sitemap (50k+ contractors) — use maxItems to cap it.

## `province` (type: `string`):

Province code used in Location mode, e.g. "on" (Ontario), "bc", "ab", "qc".

## `city` (type: `string`):

City slug used in Location mode, e.g. "toronto", "vancouver", "calgary" (lower-case, hyphenated).

## `category` (type: `string`):

Optional trade filter in Location mode, e.g. "electrical", "plumbing", "roofing", "waterproofing". Blank = every trade in the city.

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

Optional. Explicit TrustedPros URLs to scrape instead of the mode above — either /company/{slug} profile pages or /{prov}/{city}\[/{trade}] listing pages.

## `maxItems` (type: `integer`):

Cap on contractors returned this run (cost/speed guard). Default 100; set 0 for the whole scope.

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

Proxy settings. TrustedPros serves plain datacenter requests, so datacenter is the default; the Actor auto-falls back to RESIDENTIAL if an IP is soft-blocked.

## Actor input object example

```json
{
  "mode": "location",
  "province": "on",
  "city": "toronto",
  "category": "electrical",
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `records` (type: `string`):

The dataset of scraped TrustedPros contractors (one item per record).

# 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 = {
    "mode": "location",
    "province": "on",
    "city": "toronto",
    "category": "electrical",
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapersdelight/trustedpros-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 = {
    "mode": "location",
    "province": "on",
    "city": "toronto",
    "category": "electrical",
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapersdelight/trustedpros-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "mode": "location",
  "province": "on",
  "city": "toronto",
  "category": "electrical",
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapersdelight/trustedpros-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapersdelight/trustedpros-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TrustedPros Scraper — Canada Contractor Leads, Phone & Site",
        "description": "Scrape TrustedPros.ca home-service contractors across Canada — company name, phone, website, address, city, province, category and star rating. Filter by city + trade or pull the whole 50k+ directory. No login. JSON/CSV.",
        "version": "0.1",
        "x-build-id": "0057NKln5c0de5lQK"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapersdelight~trustedpros-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapersdelight-trustedpros-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/scrapersdelight~trustedpros-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapersdelight-trustedpros-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/scrapersdelight~trustedpros-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapersdelight-trustedpros-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": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "location",
                            "sitemap"
                        ],
                        "type": "string",
                        "description": "How to enumerate contractors. \"Location\" scrapes one city (optionally one trade). \"Sitemap\" pulls from the whole-Canada profile sitemap (50k+ contractors) — use maxItems to cap it.",
                        "default": "location"
                    },
                    "province": {
                        "title": "Province",
                        "type": "string",
                        "description": "Province code used in Location mode, e.g. \"on\" (Ontario), \"bc\", \"ab\", \"qc\".",
                        "default": "on"
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "City slug used in Location mode, e.g. \"toronto\", \"vancouver\", \"calgary\" (lower-case, hyphenated).",
                        "default": "toronto"
                    },
                    "category": {
                        "title": "Trade / category",
                        "type": "string",
                        "description": "Optional trade filter in Location mode, e.g. \"electrical\", \"plumbing\", \"roofing\", \"waterproofing\". Blank = every trade in the city."
                    },
                    "startUrls": {
                        "title": "Start URLs (advanced)",
                        "type": "array",
                        "description": "Optional. Explicit TrustedPros URLs to scrape instead of the mode above — either /company/{slug} profile pages or /{prov}/{city}[/{trade}] listing pages.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxItems": {
                        "title": "Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Cap on contractors returned this run (cost/speed guard). Default 100; set 0 for the whole scope.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Proxy settings. TrustedPros serves plain datacenter requests, so datacenter is the default; the Actor auto-falls back to RESIDENTIAL if an IP is soft-blocked.",
                        "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
