# Cold Email Outreach — Send Scraped Leads to Campaigns (Ballast) (`useballast/ballast-cold-email-leads`) Actor

Import scraped B2B leads from any Apify dataset (Google Maps, Apollo, LinkedIn, website contact scrapers) into Ballast cold email lists and outreach sequences with automatic field mapping, deduplication, and custom merge variables.

- **URL**: https://apify.com/useballast/ballast-cold-email-leads.md
- **Developed by:** [Ballast](https://apify.com/useballast) (community)
- **Categories:** Lead generation, Integrations
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Send Scraped Leads from Apify to a Cold Email Campaign

[Ballast](https://ballast.to) is cold email software with every feature on every plan. Connect unlimited mailboxes, send sequences at a pace your domains survive, and handle replies in one inbox, priced by the emails you send.

This Actor reads items from any Apify dataset (Google Maps scrapers, Apollo scrapers, LinkedIn profile scrapers, contact extractors) or a JSON array, maps the contact fields, and sends each row with an email address to your Ballast workspace through `POST https://ballast.to/api/v1/leads/upsert`.

### Supported Apify Scrapers and Field Mapping

You do not need to rename columns or write a transformation script between your scraper and this Actor. It inspects each item and maps the fields Ballast uses:

| Scraper / Source | Email Fields Read | Name & Company Mapping | Extra Fields Mapped |
| --- | --- | --- | --- |
| **Google Maps Email Extractor** / **Google Maps Scraper** | `emails[0]`, `email`, `contactEmails[0]` | `title` becomes `company` when `categoryName` is present | `categoryName` (as `title`), `website`, `phoneUnformatted` / `phone`, `countryCode` |
| **Apollo Scraper** / **B2B Lead Scrapers** | `email`, `work_email`, `personal_email` | `first_name` / `firstName`, `last_name` / `lastName`, `organization_name` / `companyName` | `job_title` / `title`, `website_url`, `linkedin_url`, `phone`, `country` |
| **LinkedIn Profile & Company Scrapers** | `email`, `emailAddress`, `workEmail` | `firstName`, `lastName` (or splits `fullName` / `name`), `company` / `companyName` | `headline` / `position` (as `title`), `linkedinUrl` / `profileUrl`, `website` |
| **Contact Details Scraper** | `emails[0]`, `email` | `name`, `company` / `domain` | `phone` / `telephone`, `url` / `website`, `linkedin` |
| **Custom JSON / Clay / n8n / Make** | `email` | `firstName`, `lastName`, `company` | Any key in `custom` plus any property listed in `customFields` |

Rows without an email address are skipped and counted in `skippedNoEmail` so a mixed Google Maps dataset never fails the run.

### How to Send Apify Dataset Leads into a Ballast Campaign

#### Option 1: Run manually on a finished dataset

1. In [Ballast](https://ballast.to), open **Settings > API keys** and create an API key (starts with `bl_`).
2. Open the campaign your leads should enter and click **Copy ID** next to the campaign name.
3. Copy the **Dataset ID** from your Apify scraper run (for example a Google Maps or Apollo scrape).
4. Paste your **Ballast API Key**, **Ballast Campaign ID**, and **Source Apify Dataset ID** into this Actor and click **Start**.

#### Option 2: Trigger automatically after any Apify scraper finishes

You can chain this Actor so every new scrape feeds your campaign without manual exports:

1. Open your scraper Actor in Apify Console (for example Google Maps Email Extractor) and go to the **Integrations** tab.
2. Click **Add integration**, choose **Run Actor**, and select **Ballast Cold Email: Send Scraped Leads to Campaigns**.
3. Set the trigger to **Run succeeded**.
4. Fill in your `apiKey` and `campaignId`, and set **Source Apify Dataset ID** (`datasetId`) to:

```json
{
  "apiKey": "bl_your_api_key",
  "campaignId": "your_ballast_campaign_id",
  "datasetId": "{{resource.defaultDatasetId}}",
  "customFields": ["city", "rating", "reviewsCount"]
}
```

Every time the scraper finishes, this Actor reads the new dataset and enrolls the leads into your campaign.

### Input Parameters

| Parameter | Key | Type | Required | Description |
| --- | --- | --- | --- | --- |
| **Ballast API Key** | `apiKey` | `string` (secret) | No | Workspace API key from **Settings > API keys** in Ballast. Leave empty to run a dry-run field-mapping preview. |
| **Ballast Campaign ID** | `campaignId` | `string` | No | Campaign ID from the **Copy ID** button on the campaign page. |
| **Ballast List ID** | `listId` | `string` | No | Lead list ID when you also want the leads placed on a list. |
| **Source Apify Dataset ID** | `datasetId` | `string` | No | Dataset ID from an upstream Apify scraper run. |
| **Leads JSON Array** | `leads` | `array` | No | Direct array of lead objects to send without a dataset ID. |
| **Extra Columns to Save as Custom Fields** | `customFields` | `string[]` | No | Dataset item property names to merge into `custom` (usable in emails as `{{field_name}}`). |
| **If Lead Already Exists** | `ifExists` | `"update" \| "skip"` | No | `update` (default) writes non-empty fields to an existing lead; `skip` leaves it untouched. |
| **Max Leads to Process** | `maxLeads` | `integer` | No | Cap on items read from the dataset (`0` processes all items). |

### Output Dataset and Lead Statuses

Each processed email writes one row to the Actor's default dataset:

```json
{
  "email": "jane@example.com",
  "firstName": "Jane",
  "lastName": "Doe",
  "company": "Example Co",
  "result": "created",
  "addedToCampaign": true,
  "campaignSkipReason": null,
  "leadId": "0199a3c1-5b2e-7c4a-9f10-2d6c8e4b7a11"
}
```

#### What `result` and `campaignSkipReason` mean

| Value | Where it appears | Meaning |
| --- | --- | --- |
| `created` | `result` | New lead created in the Ballast workspace. |
| `updated` | `result` | Existing lead matched by email; non-empty fields were updated and custom fields merged. |
| `unchanged` | `result` | Existing lead matched by email; all sent fields already had those values. |
| `left_alone` | `result` | Existing lead matched by email and `ifExists` was set to `skip`. |
| `suppressed` | `result` | Lead was created, but the email or domain is on your workspace suppression list, so it is never emailed. |
| `dry_run_preview` | `result` | Lead was mapped in dry-run preview mode (no `apiKey` provided or `dryRun` enabled); nothing was sent to Ballast. |
| `Already in the campaign.` | `campaignSkipReason` | The lead was already enrolled in this campaign. |
| `Unsubscribed, bounced or suppressed.` | `campaignSkipReason` | The lead previously opted out, hard-bounced, or sits on your suppression list. |
| `Verification found the address invalid.` | `campaignSkipReason` | Free syntax/disposable/MX checks or your connected verifier flagged the address as invalid. |
| `The address is risky and this campaign skips risky ones.` | `campaignSkipReason` | The address is a role inbox (`info@`, `contact@`) or catch-all and the campaign has **Skip risky leads** turned on. |

At the end of the run, a `SUMMARY` record is written to the default key-value store with total counts for `created`, `updated`, `unchanged`, `suppressed`, `addedToCampaign`, `skippedNoEmail`, and `failed`.

### How Ballast Compares on Price and Limits

Every Ballast plan includes unlimited mailboxes, unlimited team seats, unlimited client workspaces, the Unibox with AI reply labels, warmup, automations, webhooks, REST API and the MCP server. You pay for monthly sending volume and active contacts (finished, bounced and unsubscribed leads do not count against your contact limit):

| Plan | Monthly Price | Emails / Month | Active Contacts | Included Dedicated Sending IPs |
| --- | --- | --- | --- | --- |
| **Starter** | $29/mo | 20,000 | 10,000 | 0 ($5/mo add-on) |
| **Growth** | $59/mo | 125,000 | 75,000 | 0 ($5/mo add-on) |
| **Pro** | $99/mo | 300,000 | 150,000 | 1 included |
| **Scale** | $199/mo | 750,000 | 375,000 | 3 included |
| **Agency** | $399/mo | 2,000,000 | 1,000,000 | 8 included |

Compared with other cold email tools at 125,000 emails per month (public monthly prices checked November 2026):

- **Ballast Growth:** $59/month for 125,000 emails and 75,000 active contacts, unlimited client workspaces included.
- **Instantly Hypergrowth:** $107/month for 125,000 emails and 25,000 uploaded contacts (finished and duplicate contacts in campaigns count until deleted, per [Instantly's contact limit docs](https://help.instantly.ai/en/articles/7918680-uploaded-contacts-limits)).
- **Smartlead Pro / Unlimited Smart:** $94/month for 90,000 emails (30,000 contacts) or $174/month for 150,000 emails, plus $29/month per extra client workspace on Pro.

Full dated comparisons: [Ballast vs Instantly](https://ballast.to/compare/instantly) and [Ballast vs Smartlead](https://ballast.to/compare/smartlead).

### When Not to Use This Actor

- **You scraped consumer addresses or bought a list of personal inboxes.** Ballast is for business-to-business outbound only. Our acceptable use policy forbids consumer blasts, and automatic bounce breakers pause campaigns, mailboxes, or the workspace when hard bounces cross the safety threshold.
- **Your sending domains do not have SPF, DKIM and DMARC configured.** Check your domains first with the [free Ballast domain and blacklist checker](https://ballast.to/check).
- **You are pushing raw Google Maps `info@` addresses without filtering.** Google Maps scrapers return many shared role inboxes (`info@`, `contact@`, `office@`). Either turn on **Skip risky leads** in your Ballast campaign settings or connect your own verifier key (NoParam, MillionVerifier, ZeroBounce, NeverBounce) in **Integrations** before launching.

### Frequently Asked Questions

#### Does pushing leads from Apify spend email verification credits?

No. When leads arrive through the API, Ballast runs its free checks first: syntax, known disposable email domains, provider typos, MX records, and role-account detection. Your connected third-party verifier only runs when you trigger verification in Ballast.

#### What happens if the same lead is scraped twice?

`POST /api/v1/leads/upsert` matches leads by normalized email address. If the address is already in your workspace, it updates the non-empty fields you sent (or leaves it untouched when `ifExists` is `skip`), merges any new custom fields, and never enrolls the lead into the same campaign twice.

#### What is the rate limit?

Each Ballast API key allows 600 requests per minute (10 requests per second). This Actor spaces requests at ~9 per second and retries HTTP 429 responses with backoff, so large datasets run cleanly without manual throttling.

#### How do I use scraped columns like city, rating or icebreaker in my email copy?

Add the property names (for example `city`, `rating`, `icebreaker`) to **Extra Columns to Save as Custom Fields** (`customFields`). Ballast stores them on the lead and makes them available in the sequence editor as `{{city}}`, `{{rating}}`, and `{{icebreaker|fallback}}`.

### Links

- [Ballast Platform](https://ballast.to)
- [Leads REST API Documentation](https://ballast.to/docs/api/leads)
- [Integrations & Lead Sources Guide](https://ballast.to/docs/integrations)
- [Free Domain, SPF, DKIM, DMARC & Blacklist Checker](https://ballast.to/check)

# Actor input Schema

## `apiKey` (type: `string`):

Your Ballast API key (starts with bl\_). Create one in Ballast under Settings > API keys. Leave empty to preview field mapping without importing.

## `campaignId` (type: `string`):

Open the target campaign in Ballast and click 'Copy ID' in the top header. Every valid lead is added to this campaign sequence.

## `listId` (type: `string`):

Optional Ballast Lead List ID to also place the leads onto.

## `datasetId` (type: `string`):

ID of an Apify Dataset produced by another Actor (Google Maps Email Extractor, Apollo Scraper, LinkedIn Scraper, Contact Info Scraper). Rows without an email address are skipped.

## `leads` (type: `array`):

Direct array of lead objects to send to Ballast. Recognizes email/work_email/emails\[], firstName/first_name, lastName/last_name, company/organization_name, title, website, phone, linkedin and country.

## `customFields` (type: `array`):

Names of extra properties on the dataset items to merge into each lead's custom fields in Ballast (usable in emails as {{field_name}}).

## `ifExists` (type: `string`):

Whether to update an existing lead's fields or leave it untouched.

## `maxLeads` (type: `integer`):

Maximum number of items to read from the dataset (0 = all items).

## `dryRun` (type: `boolean`):

Preview how your leads are mapped without calling the Ballast API. Automatically enabled when Ballast API Key is empty.

## Actor input object example

```json
{
  "leads": [
    {
      "email": "jane@example.com",
      "firstName": "Jane",
      "lastName": "Doe",
      "company": "Example Co",
      "title": "Head of Growth",
      "website": "https://example.com",
      "custom": {
        "icebreaker": "Saw your recent launch"
      }
    }
  ],
  "customFields": [],
  "ifExists": "update",
  "maxLeads": 0,
  "dryRun": false
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

No description

# 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 = {
    "leads": [
        {
            "email": "jane@example.com",
            "firstName": "Jane",
            "lastName": "Doe",
            "company": "Example Co",
            "title": "Head of Growth",
            "website": "https://example.com",
            "custom": {
                "icebreaker": "Saw your recent launch"
            }
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("useballast/ballast-cold-email-leads").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 = { "leads": [{
            "email": "jane@example.com",
            "firstName": "Jane",
            "lastName": "Doe",
            "company": "Example Co",
            "title": "Head of Growth",
            "website": "https://example.com",
            "custom": { "icebreaker": "Saw your recent launch" },
        }] }

# Run the Actor and wait for it to finish
run = client.actor("useballast/ballast-cold-email-leads").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 '{
  "leads": [
    {
      "email": "jane@example.com",
      "firstName": "Jane",
      "lastName": "Doe",
      "company": "Example Co",
      "title": "Head of Growth",
      "website": "https://example.com",
      "custom": {
        "icebreaker": "Saw your recent launch"
      }
    }
  ]
}' |
apify call useballast/ballast-cold-email-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,useballast/ballast-cold-email-leads"
        }
    }
}
```

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/nJeSZhrUlbdSRIY0W/builds/VlR7KHV8UarqK9z1j/openapi.json
