# Email Search API (`openweb-ninja/email-search`) Actor

Fast and simple web search for emails - get emails found on the web for a given query and an email domain in real-time.

- **URL**: https://apify.com/openweb-ninja/email-search.md
- **Developed by:** [OpenWeb Ninja](https://apify.com/openweb-ninja) (community)
- **Categories:** Lead generation, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 api requests

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

## Email Search API

Email Search is a fast and simple API for finding emails on the web for a given query and email domain in real-time. It returns emails as structured JSON via REST.

What it returns: email addresses found on the web for a given query and domain.

This actor runs the same Email Search API that developers use on RapidAPI and OpenWeb Ninja, with the same endpoints, parameters and output.

### What you can do with it

- Find email addresses for any domain or company
- Build prospect lists for sales and outreach
- Enrich CRM and lead records with contact emails
- Research companies and their public contact points

### Endpoints

Pick the endpoint in the **Endpoint** field. Each run makes one call to that endpoint and writes its results to the dataset.

#### Search Emails

`GET /search-emails`

Search the web for emails using a query and email domain and get up to 5,000 email addresses.

| Parameter | Required | Description |
|---|---|---|
| `query` | Yes | Search query. **Examples:** `Steve Smith San Francisco CA USA` `Facebook CEO` `Jack blogger New York` `Car dealer California USA` |
| `email_domain` | Yes | Email domain - typically a company domain (e.g. `wsgr.com`) or an email provider domain (e.g. `gmail.com`). |
| `limit` | No | Maximum number of emails to return. Default: `5000`. |

### Example input

```json
{
  "endpoint": "/search-emails",
  "query": "Car Dealer California USA",
  "email_domain": "gmail.com"
}
```

### Example output

One dataset item per result. A Search Emails item looks like this (trimmed):

```json
{
  "email": "dochelp@microsoft.com"
}
```

The run's key-value store `OUTPUT` record holds the request parameters, the request id and any non-list fields of the response (for example a pagination cursor).

### Pricing

Pay per event: you pay per API request, at the same rates as our API plans. Most runs are one request; some parameters (such as fetching several pages at once) count as several, exactly as they do on the API.

| Apify plan | Price per 1,000 requests |
|---|---|
| Free | $5.00 |
| Starter (Bronze) | $2.50 |
| Scale (Silver) | $1.50 |
| Business (Gold) and above | $0.75 |

A request that fails is not charged.

### Using it from code

Run it through the [Apify API](https://docs.apify.com/api/v2) or a client library, with the input above as the JSON body:

```bash
curl -X POST "https://api.apify.com/v2/acts/openweb-ninja~email-search/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"/search-emails","query":"Car Dealer California USA","email_domain":"gmail.com"}'
```

Need higher volume or a direct REST API? Email Search API is also available as an API on [OpenWeb Ninja](https://www.openwebninja.com/api/email-search) and [RapidAPI](https://rapidapi.com/letscrape-6bRBa3QguO5/api/email-search16).

### Support

For custom plans, high volumes or anything else:

- Email: support@openwebninja.com
- Discord: https://discord.gg/wxJxGsZgha

# Actor input Schema

## `endpoint` (type: `string`):

Which endpoint of the API to call. Each endpoint uses the parameters listed in its section below; parameters of other endpoints are ignored.

## `query` (type: `string`):

Search query.<br>   <strong>Examples:</strong><br>  <code>Steve Smith San Francisco CA USA</code><br>  <code>Facebook CEO</code><br>  <code>Jack blogger New York</code><br>  <code>Car dealer California USA</code><br><br><em>Used by: Search Emails. Required for Search Emails.</em>

## `email_domain` (type: `string`):

Email domain - typically a company domain (e.g. <code>wsgr.com</code>) or an email provider domain (e.g. <code>gmail.com</code>).<br><br><em>Used by: Search Emails. Required for Search Emails.</em>

## `limit` (type: `integer`):

Maximum number of emails to return. <br>  <strong>Allowed values:</strong> <code>1-5000</code><br><br><em>Used by: Search Emails.</em>

## Actor input object example

```json
{
  "endpoint": "/search-emails",
  "query": "Car Dealer California USA",
  "email_domain": "gmail.com",
  "limit": 5000
}
```

# Actor output Schema

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

One dataset item per result of the API call.

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

Endpoint, parameters, request id, billed requests and any non-list response fields (such as a pagination cursor).

# 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 = {
    "query": "Car Dealer California USA",
    "email_domain": "gmail.com",
    "limit": 5000
};

// Run the Actor and wait for it to finish
const run = await client.actor("openweb-ninja/email-search").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 = {
    "query": "Car Dealer California USA",
    "email_domain": "gmail.com",
    "limit": 5000,
}

# Run the Actor and wait for it to finish
run = client.actor("openweb-ninja/email-search").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 '{
  "query": "Car Dealer California USA",
  "email_domain": "gmail.com",
  "limit": 5000
}' |
apify call openweb-ninja/email-search --silent --output-dataset

```

## MCP server setup

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

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/fYKnTP9olpji2Q44I/builds/d5I8QketIPx77p55R/openapi.json
