# Contractor Email List: Roofers, Plumbers, HVAC (`prattsolutions/contractor-email-list`) Actor

Build contractor email lists from Google Maps for any trade and city: roofers, plumbers, HVAC companies, electricians and more, with emails from their websites, phones, ratings and addresses.

- **URL**: https://apify.com/prattsolutions/contractor-email-list.md
- **Developed by:** [John Pratt](https://apify.com/prattsolutions) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 lead saveds

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

Contractor Email List builds **lists of contractors and home service companies with their emails** from Google Maps: roofers, plumbers, HVAC companies, electricians, general contractors and any other trade. Enter the trades and the cities to cover, such as `roofing contractors` in `Round Rock, TX`. It searches Google Maps for every combination, visits each company's website for its emails, and returns **flat rows** with email, phone, website, address, star rating and review count. Use the list to sell to contractors: building supplies, equipment, insurance, field-service software and contractor marketing. Export it as CSV or Excel, or read it from the API.

This Actor finds **contractors to sell to**. It doesn't find homeowners looking to hire a contractor.

### What does Contractor Email List do?

- **Searches every trade in every location.** Six trades in 15 cities is 90 searches from two short lists.
- **Finds emails** on each company's website and puts the first one in an `email` column, with every email found in `emails`.
- **Saves only contractors with an email by default**, so you don't pay for companies you can't email.
- **Removes duplicates.** A company found by several searches, such as both `plumbers` and `HVAC contractors`, is saved once.
- **Gives flat rows**, one column per field, so the CSV imports straight into a CRM, a cold email tool or a spreadsheet.

### How to build a contractor email list

1. Open the Actor in Apify Console and go to the **Input** tab.
2. Enter your **Locations**, one per line, such as `Round Rock, TX` or a ZIP code.
3. Enter the trades in **Business types**, such as `roofing contractors` and `plumbers`. Each trade is searched in each location.
4. Under **Lead filters**, keep **Only leads with an email** on, and optionally set a minimum rating or number of reviews.
5. Click **Start**. When the run finishes, export the dataset as CSV or Excel from the **Output** tab.

#### Trades to search

`general contractors`, `roofing contractors`, `plumbers`, `HVAC contractors`, `electricians`, `remodeling contractors`, `concrete contractors`, `painters`, `landscapers`, `pest control services`, `pool builders`, `fence contractors`, `flooring contractors` and `solar installers`. Search one city, suburb or ZIP code per location: Google Maps lists around 120 businesses per search.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `locations` | array of strings | required | Cities, neighborhoods or ZIP codes, such as `Round Rock, TX`. |
| `businessTypes` | array of strings | `["general contractors"]` | Trades to find. Each is searched in every location. |
| `keywords` | array of strings | `[]` | Extra full Google Maps searches to run as well. |
| `onlyWithEmail` | boolean | `true` | Save only companies where at least one email was found. |
| `minRating` | number, 0 to 5 | `0` | Skip companies rated below this. |
| `minReviews` | integer | `0` | Skip companies with fewer reviews than this. |
| `depth` | integer, 1 or more | `10` | How many times to scroll each search's results list. A higher value returns more contractors but takes longer. The Console form starts at 1 for a quick first run. |
| `maxPlacesPerSearch` | integer | none | Check at most this many places per search, the first ones Google lists. Empty checks every place. The Console form starts at 8 for a quick first run. |
| `language` | string | `en` | Google interface language code, such as `en`, `es`, `de` or `fr`. |

```json
{
    "locations": ["Round Rock, TX", "Georgetown, TX", "Pflugerville, TX"],
    "businessTypes": ["roofing contractors", "HVAC contractors", "plumbers"],
    "minReviews": 20
}
```

### Output

Each contractor is one item in the dataset. This example is fictional:

```json
{
    "name": "Example Roofing & Construction",
    "category": "Roofing contractor",
    "phone": "+1 512-555-0166",
    "email": "office@example.com",
    "emails": ["office@example.com", "estimates@example.com"],
    "website": "https://www.example.com/",
    "address": "100 E Main St, Round Rock, TX 78664, United States",
    "street": "100 E Main St",
    "city": "Round Rock",
    "state": "Texas",
    "postal_code": "78664",
    "country": "US",
    "rating": 4.8,
    "review_count": 187,
    "google_maps_url": "https://www.google.com/maps/place/...",
    "place_id": "ChIJ...",
    "latitude": 30.5083,
    "longitude": -97.6789,
    "query": "roofing contractors in Round Rock, TX"
}
```

`email` is the first email found on the website, and `emails` lists every one. `rating`, `review_count`, `latitude` and `longitude` are numbers, or `null` when Google has no value.

### How much does it cost?

It costs **$2.50 per 1,000 leads** ($0.0025 per lead saved). With **Only leads with an email** on, contractors without an email aren't saved, so you pay only for leads you can email. Each run also has Apify's standard start fee of $0.00005, and there's no separate charge for compute.

- 3 trades in 3 cities make 9 searches. If they find 800 contractors and 300 have an email, the run costs **$0.75**.
- A list of 1,000 contractors with emails costs **$2.50**.

To cap what a run can cost, set **Maximum cost per run** in the run options (`maxTotalChargeUsd` in the API). When a run reaches the cap, it stops saving leads.

### Send the list to your CRM or outreach tool

Export the dataset as CSV from the **Output** tab, or from the API with `format=csv`, and import it. Map `email` to the email column, and use `name`, `category` and `city` to personalize by trade and area. To refresh the list on a schedule, use Apify's schedules, or run the Actor from n8n, Make or Zapier with Apify's integrations.

### API

Get your API token in **Apify Console → Settings → API & Integrations**, then start a run:

```bash
curl -X POST "https://api.apify.com/v2/acts/prattsolutions~contractor-email-list/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"locations": ["Round Rock, TX"], "businessTypes": ["roofing contractors"]}'
```

The response's `data.defaultDatasetId` is the dataset ID. When the run has finished, `GET https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv&token=YOUR_APIFY_TOKEN` returns the leads as CSV.

Python, with the [`apify-client`](https://docs.apify.com/api/client/python) package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("prattsolutions/contractor-email-list").call(run_input={
    "locations": ["Round Rock, TX"],
    "businessTypes": ["roofing contractors", "plumbers"],
})
for contractor in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(contractor["name"], contractor["email"], contractor["category"])
```

### FAQ

#### Will this get me homeowner leads for my roofing or HVAC business?

No. It finds contractor companies and their contact details, for businesses that sell to contractors. It doesn't find people who want to hire one.

#### How many contractors will have an email?

Contractors with their own website often publish an email or an estimates address, but many smaller trades list only a phone number, a quote form or a Facebook page. Run one trade and city first to see the rate, and turn off **Only leads with an email** if you also want phone-only leads.

#### How are the emails found?

For each company with a website, the scraper loads the page Google links to, usually the home page, and collects the addresses in its `mailto:` links, or else the email addresses written on the page. Websites on Facebook, Instagram or Twitter are skipped, and an email shown only on a separate contact page isn't found.

#### How long does a run take?

Searches run one after another, and visiting each website adds a few seconds per company, so a broad search takes several minutes. Each search is capped at 10 minutes: companies not reached by then are left out, and the run still succeeds. Use smaller locations, or set **Maximum places per search**, to keep runs short.

#### Why was my first run in a while slow to start?

When nobody has used the scraper for a few weeks, its backend needs a few minutes to wake up. The log shows `Lambda is waking up (...); retrying in 15s.`, and the run then continues normally.

#### Is it legal to email contractors from this list?

The Actor collects only what contractors publish on Google Maps and their own websites. Business emails can still be personal data, and email marketing is regulated: the GDPR and similar laws cover how you store and use the data, and CAN-SPAM and similar laws cover what you send. Collect the data for a legitimate purpose, and check with a lawyer if you're unsure.

# Actor input Schema

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

Kinds of contractors to find, one per line, such as "roofing contractors". Each one is searched in every location below as "<type> in <location>".

## `locations` (type: `array`):

Cities, neighborhoods or ZIP codes to search, one per line, such as "Austin, TX". Smaller areas return more businesses in total, because Google Maps lists around 120 per search.

## `keywords` (type: `array`):

Optional full Google Maps searches to run as well, one per line. Use them for searches that don't fit the business type plus location pattern.

## `onlyWithEmail` (type: `boolean`):

Save only businesses where at least one email was found on their website. You're charged per saved lead, so businesses without an email cost nothing.

## `minRating` (type: `number`):

Skip businesses rated below this, from 1 to 5. 0 keeps every business, including those with no rating yet.

## `minReviews` (type: `integer`):

Skip businesses with fewer Google reviews than this. 0 keeps every business.

## `depth` (type: `integer`):

How many times to scroll each search's results list. Each scroll loads more businesses, so a higher value finds more leads for broad searches but makes each search take longer. The form starts at 1 so a first run finishes quickly. Runs that leave it out use 10.

## `maxPlacesPerSearch` (type: `integer`):

Check at most this many places of each search's results list, the first ones Google lists. Visiting each website takes a few seconds, so a cap keeps runs short and costs predictable. The form starts at 8 for a quick first run. Leave it empty to check every place.

## `language` (type: `string`):

Google interface language code, such as en, es, de or fr. It sets the language of the categories Google returns.

## Actor input object example

```json
{
  "businessTypes": [
    "roofing contractors",
    "plumbers",
    "HVAC contractors",
    "electricians"
  ],
  "locations": [
    "Round Rock, TX",
    "Austin, TX"
  ],
  "keywords": [
    "plumbers near downtown Round Rock"
  ],
  "onlyWithEmail": true,
  "minRating": 0,
  "minReviews": 0,
  "depth": 1,
  "maxPlacesPerSearch": 8,
  "language": "en"
}
```

# Actor output Schema

## `results` (type: `string`):

All places in the run's default dataset. Each field is described in the dataset schema.

# 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 = {
    "locations": [
        "Round Rock, TX"
    ],
    "depth": 1,
    "maxPlacesPerSearch": 8
};

// Run the Actor and wait for it to finish
const run = await client.actor("prattsolutions/contractor-email-list").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 = {
    "locations": ["Round Rock, TX"],
    "depth": 1,
    "maxPlacesPerSearch": 8,
}

# Run the Actor and wait for it to finish
run = client.actor("prattsolutions/contractor-email-list").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 '{
  "locations": [
    "Round Rock, TX"
  ],
  "depth": 1,
  "maxPlacesPerSearch": 8
}' |
apify call prattsolutions/contractor-email-list --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,prattsolutions/contractor-email-list"
        }
    }
}
```

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/m1WDveP9xH9hfv6IO/builds/drdFx1okuKcVrtcym/openapi.json
