# Leads Finder - B2B Emails by City (Apollo Alternative) (`tidytools/leads-finder`) Actor

Find public company website emails by industry and US or Canadian city. Prebuilt lists or live lookup, source page and MX domain result. With requireEmail true (default), phone-only rows are skipped without charge; with false, phone-only contact rows can be charged.

- **URL**: https://apify.com/tidytools/leads-finder.md
- **Developed by:** [Yukai Lin](https://apify.com/tidytools) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 business contact rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Leads Finder — B2B Emails by City (Apollo Alternative)

### What it does

Find companies by business keyword and location. With the default `requireEmail: true`, each returned company has a public email found on its own website, a source page, and an MX result for the email domain. If you set `requireEmail: false`, phone-only contact rows can also be returned and charged. This is an Apollo alternative for public company contacts; it does not provide private profiles or mailbox verification.

### Quick start

Enter `industry` (for example `dentist` or `accounting firm`), `location` (`Austin, TX` or `Toronto, ON`) and `maxResults` (1–500). `requireEmail` defaults to `true`. The Console sample uses Austin dentists and two rows. The current engine always searches businesses live through the existing backend and extracts public website contacts; `buildIfMissing` is not used by this engine.

Use any business keyword of 2–60 characters, such as `accounting firm`, `law firm` or `dental clinic`. `location` accepts any nonempty location up to 120 characters that the places search understands; a specific city and region usually improves results. `niche` and `city` are advanced aliases; `industry` and `location` take priority.

### Output and pricing

Each success row contains `id`, `name`, `website`, `phone`, `emails`, `emailMx`, `address`, `sourcePage`, `sourceDataset`, `sourceUpdated`, `fetchedAt`, `fromIndex`, `license`, `attribution`, `niche`, `city`, `success`, `charged`, `chargeEvent`. `emailMx` is `valid`, `invalid` or `unknown`: it checks the first email's domain MX via DNS over HTTPS and uses email-validator's implicit A/AAAA fallback when MX is absent. `unknown` means the DNS check failed or timed out. **It does not check whether the mailbox exists or whether a message is deliverable.** `sourcePage` is the reported website contact page when available. `SUMMARY` records `status`, `mode`, `rows`, `charged`, and `chargeEvent`.

Every delivered contact row uses the `site-processed` event ($0.002 per website on Free/Bronze), including cache hits. The current engine does not emit `lead-row`. With `requireEmail: true` (default), phone-only and contactless companies produce no row, charge no event and do not use a `maxResults` slot. With `requireEmail: false`, a phone-only contact row is returned and charged by the applicable event; contactless companies remain free. Invalid or missing input, backend failure, and no eligible contacts return a free error row (`success: false`, `errorType`, `error`, `charged: false`). An MX result does not affect the charge. If billing fails or the charge limit is reached, output stops after the current row; `charged` reflects whether that row was charged.

### Input example

```json
{"industry":"dentist","location":"Austin, TX","maxResults":2,"requireEmail":true}
```

The data comes from Overture Maps places (CDLA-Permissive-2.0, © Overture Maps Foundation) and public company websites. Live lookup availability varies by city. Contacts can become outdated; check the source page before outreach.

### Output example

```json
{"id":"example-1","name":"Example Dental","website":"https://example.org/","phone":"+15125550100","emails":["info@example.org"],"emailMx":"valid","address":"Austin, TX","sourcePage":"https://example.org/contact","sourceDataset":"Overture Maps Places","sourceUpdated":null,"fetchedAt":"2026-10-23T00:00:00.000Z","fromIndex":false,"license":"CDLA-Permissive-2.0","attribution":"© Overture Maps Foundation (places)","niche":"dentist","city":"Austin, TX","success":true,"charged":true,"chargeEvent":"site-processed"}
```

### Limitations

Search terms and locations depend on the places backend; results may be unavailable for some regions. Live lookup can miss blocked or script-heavy websites. Public contacts may become outdated, and emailMx checks a domain rather than a mailbox. Check the source page and applicable outreach rules before using a contact.

### FAQ

**Is a prebuilt list required?** No. The current engine performs live lookup for each run; cache hits can reduce reading but are still billed when a contact row is delivered.

**Does emailMx valid mean the address is deliverable?** No. It only means the domain has MX records or qualifies through the implicit A/AAAA fallback.

# Actor input Schema

## `niche` (type: `string`):

Advanced: a business keyword. Industry keyword takes priority.

## `industry` (type: `string`):

Business industry, for example dentist, accounting firm or plumber. Arbitrary business keywords are accepted; this takes priority over niche.

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

Advanced: city and country. Location takes priority.

## `location` (type: `string`):

City and country, state or province, for example Austin, TX or Toronto, ON. Takes priority over city.

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

Upper bound on companies returned and charged in this run.

## `requireEmail` (type: `boolean`):

Skip phone-only companies before output and billing. Leads Finder defaults to true.

## Actor input object example

```json
{
  "industry": "dentist",
  "location": "Austin, TX",
  "maxResults": 2,
  "requireEmail": true
}
```

# Actor output Schema

## `rows` (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 = {
    "industry": "dentist",
    "location": "Austin, TX",
    "maxResults": 2,
    "requireEmail": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("tidytools/leads-finder").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 = {
    "industry": "dentist",
    "location": "Austin, TX",
    "maxResults": 2,
    "requireEmail": True,
}

# Run the Actor and wait for it to finish
run = client.actor("tidytools/leads-finder").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 '{
  "industry": "dentist",
  "location": "Austin, TX",
  "maxResults": 2,
  "requireEmail": true
}' |
apify call tidytools/leads-finder --silent --output-dataset

```

## MCP server setup

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

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/x3mMatrbtvESUwdcL/builds/iw5pB8AXt7SXxbwUi/openapi.json
