# Mass Instagram Email Scraper (`easy_scraper/mass-instagram-email-scraper`) Actor

- **URL**: https://apify.com/easy\_scraper/mass-instagram-email-scraper.md
- **Developed by:** [easy scraper](https://apify.com/easy_scraper) (community)
- **Categories:** Lead generation, Social media, Other
- **Stats:** 12 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### 🚀 Instagram Mass Email Scraper

🔎 This Actor searches Google for Instagram pages in your niche, reads and extracts email leads Fast.

🎯 It is optimized to quickly collect **email + Instagram link** pairs per keyword, with flexible filters for email domains and Instagram result types (profiles, posts, reels, stories).

***

### 🎯 Goal

- 🔍 **Find Instagram-related pages in specific niches**, optionally filtered by country.
- 📧 **Collect visible emails** (e.g. `@gmail.com`, `@yahoo.com`) Fast.
- 📦 **Produce clean, structured output** in an Apify dataset ready for CSV / JSON export or API usage.

***

### ⭐ Key Features

- 🌐 **Google dork–based discovery**: Uses carefully crafted Google queries to discover Instagram profiles for each keyword.
- 🎚️ **Per-keyword lead cap**: Strictly respects `maxLeadsPerKeyword` per keyword so you control volume and cost.
- ⚡ **HTML-only scraping**: Loads only the main document for each profile to minimize proxy bandwidth.
- 🆓 **Free Tier Available:** GET 2 Hours Trial FOR FREE per run! Perfect for testing or small campaigns.

***

### ⚙️ Input Parameters

| 🏷️ Parameter | 🧩 Type | ✅ Required | 🔢 Default | 📝 Description |
|--------------|--------|------------|------------|----------------|
| `keywords` | array of strings | Yes | `["fitness coach", "personal trainer", "crossfit gym"]` | Niche keywords describing the type of Instagram pages / audiences you want to reach. One keyword per row. |
| `country` | string | No | — | Optional location term appended to each Google query as an exact phrase. Examples: `"USA"`, `"UK"`, `"Canada"`, `"Dubai"`, `"Berlin"`. Leave empty for worldwide results. |
| `maxLeadsPerKeyword` | integer | No | 50 | Maximum number of **email leads** saved per keyword. Only results where an email is found are counted. |
| `emailDomains` | array of strings | No | `[]` | Optional list of email domains to bias results towards. Examples: `gmail.com`, `yahoo.com`, `outlook.com`. In queries they are searched as `@gmail.com`, `@yahoo.com`, etc. |
| `instagramResultTypes` | array of strings | No | `["profile", "post", "reel", "stories"]` | Select which Instagram result types to include from Google: `profile`, `post`, `reel`, `stories`. Leave as default to search across all. |

***

### 📤 Output Data Format

Typical fields:

```json
{
  "email": "njr.collabs@gmail.com",
  "result_url": "https://www.instagram.com/thenoahjr/",
  "profile_url": "https://www.instagram.com/thenoahjr/",
  "page_title": "Junior Braceiro (@thenoahjr) • Instagram photos and videos",
  "snippet": "Instagram · thenoahjr · Wellness | Lifestyle | Gratitude · 📩 njr.collabs@gmail.com ...",
  "source_keyword": "fitness"
}
```

### 👥 Who is this Actor for?

- 🏢 **Agencies and freelancers** looking to build targeted Instagram outreach lists for specific niches (e.g. fitness coaches, real estate agents, local businesses).

- 🚀 **Founders and growth marketers** who want a repeatable way to discover relevant Instagram accounts with or without publicly listed emails.

- 🎯 **Lead-generation specialists** who want a “smart” scraper that prioritizes quality and relevance over raw volume.

- 📧 **Cold Email Campaigns:** Build targeted email lists for B2B services or product launches.

***

### 🛠️ How to Use

#### 1️⃣ Add your keywords

Use descriptive, niche-focused keywords like:

- `fitness coach`
- `nutritionist`
- `real estate agent`
- `vegan restaurant`

***

#### 2️⃣ Optionally set a country / location

Use a country or city name as you would type it into Google:

- `USA`, `UK`, `Canada`, `Dubai`, `Berlin`

Leave empty to search worldwide.

***

#### 3️⃣ Set `maxLeadsPerKeyword`

Controls how many profiles per keyword are saved to the dataset.

Typical values: `20–500` depending on how broad your keywords are.

***

#### 4️ Choose the required email Provider gmail , outlook , etc .. Or Leave default

***

#### 5️⃣ Choose the required Search in Type Profiles , Posts , reels , etc .. Or Leave default

***

#### 6️⃣ Run the Actor

- ▶️ Click **Run** in Apify Console.
- 📊 After the run finishes, open the **Output** tab to inspect and download the results.

***

### ❓ FAQ

#### ❔ Q: I’m not getting many email results. What should I adjust first?

**A:** Try:

- 🔄 Broadening your `keywords` (e.g. `fitness coach` instead of `vegan fitness coach berlin`).
- ⬆️ Increasing `maxLeadsPerKeyword` so the Actor is allowed to save more leads per keyword.
- ➖ Removing or relaxing `emailDomains` so it can match any domain, not just `@gmail.com` / `@yahoo.com` / `@outlook.com`.
- 🌍 Clearing or simplifying `country` if it is too restrictive.

***

#### ❔ Q: Why are there only emails from certain providers?

**A:** When you fill in `emailDomains`, the Actor **biases queries toward those domains** by searching for `@gmail.com`, `@yahoo.com`, etc. If you want a wider variety of providers:

- Leave `emailDomains` empty to allow any domain.
- Or add more domains to the list (e.g. `hotmail.com`, `icloud.com`, custom domains).

***

#### ❔ Q: How do Instagram result types affect the output?

**A:** `instagramResultTypes` controls which Instagram URL shapes appear in `result_url`:

- `profile` – profile URLs.
- `post` – post URLs (`/p/...`).
- `reel` – reels / IGTV URLs.
- `stories` – story URLs.

By default, all are enabled. If you, for example, select only `["profile"]`, the Actor will try to exclude posts/reels/stories via `-inurl:` filters and focus on profile pages.

***

#### ❔ Q: Why is `profile_url` sometimes empty?

**A:** `profile_url` is a **best-effort** normalized profile link:

- First, the Actor tries to read the username from the URL path (e.g. `/thenoahjr/`).
- If that’s not possible (posts/reels), it looks for labels like `Instagram · username` in the Google snippet.

If neither method can safely determine the username, `profile_url` is left `null` to avoid guessing.

***

#### ❔ Q: Does this Actor open Instagram or log in?

**A:** No.

# Actor input Schema

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

Niche keywords for which you want to find email leads on Google (e.g. "fitness coach", "marketing agency", "smm instagram"). Add one keyword per row.

## `country` (type: `string`):

Optional location term to bias Google results (e.g. "USA", "UK", "Dubai"). Leave empty to search worldwide.

## `maxLeadsPerKeyword` (type: `integer`):

Maximum number of email leads to save per keyword. Only results where an email was found are counted.

## `emailDomains` (type: `array`):

Optional list of email domains to bias results towards (e.g. gmail.com, outlook.com). If left empty, generic queries are used without domain restriction.

## `instagramResultTypes` (type: `array`):

Select which Instagram result types to include from Google: profiles, posts, reels, stories. When left empty, all types are targeted.

## Actor input object example

```json
{
  "keywords": [
    "fitness coach",
    "personal trainer",
    "crossfit gym"
  ],
  "maxLeadsPerKeyword": 50,
  "emailDomains": [],
  "instagramResultTypes": [
    "profile",
    "post",
    "reel",
    "stories"
  ]
}
```

# Actor output Schema

## `overview` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easy_scraper/mass-instagram-email-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easy_scraper/mass-instagram-email-scraper").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 '{}' |
apify call easy_scraper/mass-instagram-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easy_scraper/mass-instagram-email-scraper"
        }
    }
}

```

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/NYYF4NDImBycTMYGM/builds/bgEvJWe1V0tLKQMbz/openapi.json
