# Instagram Leads Generator (`caprolok/instagram-leads-generator`) Actor

Extract verified emails, usernames, follower counts, and more from Instagram profiles using just a keyword and location. Perfect for building lead lists, finding influencers, or enriching contact data.

- **URL**: https://apify.com/caprolok/instagram-leads-generator.md
- **Developed by:** [Caprolok](https://apify.com/caprolok) (community)
- **Categories:** Lead generation, Social media, Automation
- **Features:** Limited permissions
- **Stats:** 1,433 total users, 15 monthly users, 94.4% runs succeeded, 49 bookmarks
- **User rating**: 3.59 out of 5 stars

## Pricing

from $4.00 / 1,000 results

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

![Instagram Leads Generator](https://caprolok-assets.s3.us-east-1.amazonaws.com/All+Social+Media+Posts+Extractor/all-social-media-emails-banner.png)

## Instagram Leads Generator

The **Instagram Leads Generator** is a powerful yet easy-to-use scraper designed to help you uncover valuable contact information from Instagram profiles. Whether you're looking for business leads, influencers, or potential collaborators, this tool streamlines the process of collecting emails, usernames, follower counts, and more.

With just a keyword and location, you can instantly generate highly targeted datasets. It’s perfect for marketers, recruiters, and entrepreneurs who want to save time while building reliable contact lists directly from Instagram.

### 📄 What Can You Extract?

- `emails`: List of email addresses associated with the Instagram user
- `keyword`: The keyword used to find the lead
- `name`: Full name or display name of the Instagram user
- `user_link`: Direct link to the Instagram profile
- `user_thumbnail`: Profile picture thumbnail URL
- `username`: The Instagram username (handle)
- `following`: Number of accounts the user is following
- `posts`: Number of posts published by the user (if available)

### 📘 How to Use

Getting started is quick and painless even if you've never scraped data before:

1. **Create a free Apify account.** All you need is an email address.
2. **Open the [Instagram Leads Generator](https://apify.com/caprolok/instagram-leads-generator)** on the Apify platform.
3. **Add your input parameters** (e.g., URLs, filters, etc. - customize as needed).
4. **Click "Start".** The actor will visit each URL and gather data.
5. **Download your dataset** in JSON, CSV, Excel, or HTML, or pipe it straight into your integrations via the API.

### ✨ Key Features

- Extract verified emails from Instagram profiles
- Filter leads by keyword and location
- Collect usernames, profile links, and follower data
- Export results in multiple formats (JSON, CSV, Excel, HTML)
- Easy to integrate with CRMs and marketing tools
- Scalable for small or large lead generation campaigns

### ⌨️ Input Parameters

| Field       | Type   | Description                                | Required |
| ----------- | ------ | ------------------------------------------ | -------- |
| keyword     | String | Keyword to search Instagram users          | Yes      |
| location    | String | Location filter (e.g., "US", "UK")         | No       |
| max_leads   | Number | Maximum number of leads to extract         | No       |

#### Sample Input

```json
{
  "keyword": "marketing",
  "location": "US",
  "max_leads": 10
}
```

### 📊 Output

The actor returns a structured dataset with the following fields for each record.

#### Sample Output (JSON)

\[hide the output values partially]

```json
[
  {
    "emails": [
      "gary.v***@gmail.com",
      "contact@gary***.com"
    ],
    "keyword": "mark*****",
    "name": "Gary V**-***-***",
    "user_link": "https://www.instagram.com/gary***",
    "user_thumbnail": "https://scontent-iad3-1.cdninstagram.com/v/t51.2885-19/447913595_***************_***************_n.jpg",
    "username": "gary***",
    "following": 7***
  },
  {
    "emails": [
      "adam.m******@instagram.com"
    ],
    "keyword": "mark*****",
    "name": "Adam M******",
    "user_link": "https://www.instagram.com/mos****",
    "user_thumbnail": "https://scontent-iad3-1.cdninstagram.com/v/t51.2885-19/471286297_***************_***************_n.jpg",
    "username": "mos****",
    "following": 1***,
    "posts": 1***
  },
  {
    "emails": [
      "amy.p*******@gmail.com",
      "hello@amy*******.com"
    ],
    "keyword": "mark*****",
    "name": "Online Marketing E******* 💡",
    "user_link": "https://www.instagram.com/amy********",
    "user_thumbnail": "https://scontent-iad3-2.cdninstagram.com/v/t51.2885-19/482688012_***************_***************_n.jpg",
    "username": "amy********",
    "following": 1***,
    "posts": 2***
  }
]
```

### 🎯 Use Cases

- Build targeted lead lists for email marketing campaigns
- Recruit influencers for product collaborations
- Generate sales leads for B2B outreach
- Discover local businesses in specific industries
- Gather competitor follower information for market analysis
- Build a candidate pool for recruitment campaigns
- Collect data for academic or market research
- Enhance CRM databases with Instagram-sourced contacts

### 📌 Usage Tips

- Use specific keywords for more accurate targeting
- Apply location filters to focus on regional campaigns
- Start with smaller datasets to test before scaling up

### 🔌 Integrations

Instagram Leads Generator fits seamlessly into your data pipeline. Thanks to built-in integrations on the Apify platform, you can connect this actor with virtually any cloud service or web app.

#### Popular integrations

- **Make (Integromat)** – automate multi-step workflows.
- **Zapier** – send data to 5,000+ apps.
- **Airbyte** – sync datasets into your data warehouse.
- **Slack** – push instant notifications.
- **Google Sheets & Drive** – store results in spreadsheets or cloud.
- **GitHub** – commit datasets directly to your repositories.
- **AWS S3 / Azure Blob Storage** – archive large exports securely.

#### Webhooks

Set up webhooks to trigger actions when the actor completes or fails, e.g., send email or Slack alerts.

### 🛠️ API Access

Prefer to automate with code? The Apify REST API lets you manage, schedule, and run this actor programmatically.

- **Run & Schedule Actors**
- **Access Datasets**
- **Monitor Runs**
- **Version Control**

#### Client libraries

| Language | Package | Install |
| -------- | ------- | ------- |
| Node.js  | `apify-client` | `npm install apify-client` |
| Python   | `apify-client` | `pip install apify-client` |

***

For complete API examples and detailed usage, visit the [API documentation](https://apify.com/caprolok/instagram-leads-generator/api/python).

```js
// Example: Trigger a run with Node.js
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 = {
  "keyword": "marketing",
  "location": "US",
  "max_leads": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("caprolok/instagram-leads-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results:', await client.dataset(run.defaultDatasetId).listItems());
```

#### MCP Quickstart

You can use the Apify MCP Server in two ways:

**1. Standard Input/Output (stdio):**

- Set MCP client server command to `npx @apify/actors-mcp-server` and environment variable `APIFY_TOKEN` to your Apify API token.

**2. HTTPS Endpoint mcp.apify.com:**

- Connect your MCP client by including `Authorization: Bearer <APIFY_TOKEN>` header in your requests.

For more details, see the [MCP API documentation](https://apify.com/caprolok/instagram-leads-generator/api/python).

### 🔗 Other Actors you might want to check

### 🆘 Support

If you encounter any issues, have suggestions, or need assistance, please use the [Issues tab](https://apify.com/caprolok/instagram-leads-generator/issues/open). Our team actively monitors this section and will respond promptly.

# Actor input Schema

## `keyword` (type: `string`):

Enter a keyword, niche, or industry to find public Instagram profiles. Examples: marketing, fitness coach, real estate.

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

Restrict search to a specific country (e.g., 'US').

## `max_leads` (type: `integer`):

Select the number of leads you want to scrape.

## Actor input object example

```json
{
  "keyword": "marketing",
  "max_leads": 10
}
```

# Actor output Schema

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

Public profile rows for the keyword you entered (username, name, profile link, and stats when available).

# 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 = {
    "keyword": "marketing"
};

// Run the Actor and wait for it to finish
const run = await client.actor("caprolok/instagram-leads-generator").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 = { "keyword": "marketing" }

# Run the Actor and wait for it to finish
run = client.actor("caprolok/instagram-leads-generator").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 '{
  "keyword": "marketing"
}' |
apify call caprolok/instagram-leads-generator --silent --output-dataset

```

## MCP server setup

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

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/ch6gZoTBdOqyaVuVw/builds/uWexSo6JkgY53reKP/openapi.json
