# Instagram Email Scraper (`datascrapers/instagram-email-scraper`) Actor

Extract publicly listed emails from Instagram profile bios, plus profile details and recent posts that load with the profile.

- **URL**: https://apify.com/datascrapers/instagram-email-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.70 / 1,000 email + profile infos

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 Email Scraper** creates a structured dataset of public Instagram profiles collected from profile pages. Each dataset item can include the username, biography, emails listed in that bio, follower counts, and recent public posts. Query the source with usernames or profile URLs, control the result limit with maxItems, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

[![Instagram Email Scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/instagram-email-scraper/instagram-email-scraper-value-demo.gif)](https://apify.com/datascrapers/instagram-email-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | instagram.com |
| Record unit | One public profile |
| Input methods | usernames, startUrls |
| Main identifiers | username, url |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run |
| Pricing | $3.00 per 1,000 profiles on the free plan |

### Coverage and available records

The Actor reads public profiles you name. It looks for email addresses that the profile already shows in the biography or bio links. A profile with no public email is still saved, with hasEmail false and an empty emails list. Private profiles that do not expose a public page are skipped.

The stored NASA profile is one example: a verified public account, 104,265,631 followers, and no bio email. Recent posts are included when the public page returns them. The Actor does not guess an email that is not on the page, and it does not log in.

maxItems defaults to 0, which means no cap.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| username | string | no | Instagram handle. Use this field to deduplicate. | nasa |
| fullName | string | yes | Profile display name. | NASA |
| url | string | yes | Profile URL. | https://www.instagram.com/nasa/ |
| biography | string | yes | Public biography. | |
| email | string | yes | First email found in the public bio, or null. | null |
| emails | array | yes | Every email found in the public bio. | \[] |
| hasEmail | boolean | yes | True when at least one public email was found. | false |
| followers | number | yes | Public follower count. | 104265631 |
| following | number | yes | Public following count. | 90 |
| isVerified | boolean | yes | Verified badge. | true |
| isBusinessAccount | boolean | yes | Business-account flag from the page. | false |
| categoryName | string | yes | Business category when the page shows one. | null |
| recentPosts | array | yes | Recent public posts returned with the profile. | |
| scrapedAt | string | yes | Collection time. | |

### Example dataset record

```json
{
  "username": "nasa",
  "fullName": "NASA",
  "url": "https://www.instagram.com/nasa/",
  "email": null,
  "emails": [],
  "hasEmail": false,
  "followers": 104265631,
  "following": 90,
  "isVerified": true,
  "isBusinessAccount": false
}
```

This is the stored public NASA profile. The biography is on the saved row. No email was listed, so email is null.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| usernames | array | no | empty | handles | Usernames, with or without @. |
| startUrls | array | no | empty | profile URLs | Instagram profile links. |
| maxItems | integer | no | 0 | 0 or a positive integer | Cap on profiles. 0 means no cap. |
| proxyConfiguration | object | no | Apify proxy off | Apify proxy input | Optional proxy. |

Minimal request:

```json
{"usernames": ["nasa"], "maxItems": 5}
```

### Retrieve the data through the API

Start the Actor with JSON input, wait for the run, then read the default dataset.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/instagram-email-scraper").call(run_input={
    "usernames": ["nasa"],
    "maxItems": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["username"], item.get("hasEmail"))
```

### Data quality and record handling

Deduplicate on username. email is copied from the public biography. It is null when the page lists none. The Actor does not buy, infer, or verify deliverability of an address. Follower counts change. A later run can replace them.

### Pricing and cost examples

Pay per event. dataset-item is $3.00 per 1,000 profiles on Free, $2.90 on Bronze, $2.80 on Silver, and $2.70 on Gold. Platinum and Diamond use the Gold price. Platform usage is included. A profile with no public email still counts as one dataset item. Saving 1,000 profiles costs $3.00 on Free.

### Limitations and responsible data use

Only emails that a profile publishes in its bio are collected. Do not use the dataset to contact people who have not made an address public, and follow Instagram terms and email privacy rules. The Actor does not send email.

### Dataset questions

#### What is one record?

One public Instagram profile, keyed by username.

#### Which field should I use to deduplicate?

username.

#### Why is email null?

The public biography did not list an email. hasEmail is false in that case.

### Related datasets from Data Scrapers

- [Instagram Hashtag Scraper](https://apify.com/datascrapers/instagram-hashtag-scraper)
- [YouTube Channel Scraper](https://apify.com/datascrapers/youtube-channel-scraper)
- [Reddit Scraper](https://apify.com/datascrapers/reddit-scraper)
- [Trustpilot Scraper](https://apify.com/datascrapers/trustpilot-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

## `usernames` (type: `array`):

Instagram usernames, @handles, or profile URLs, e.g. "*suzanastha*", "@*suzanastha*", "https://www.instagram.com/*suzanastha*/"

## `startUrls` (type: `array`):

Optional Instagram profile URLs, e.g. "https://www.instagram.com/*suzanastha*/". Use this or usernames (or both).

## `maxItems` (type: `integer`):

Maximum number of profiles to scrape (0 = unlimited)

## `proxyConfiguration` (type: `object`):

Proxy settings. Apify Residential proxies are required for reliable Instagram access.

## Actor input object example

```json
{
  "usernames": [
    "_suzanastha_",
    "https://www.instagram.com/nasa/"
  ],
  "startUrls": [
    {
      "url": "https://www.instagram.com/_suzanastha_/"
    }
  ],
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset containing scraped Instagram profiles and bio emails

## `runStats` (type: `string`):

Record count and run timestamps

# 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 = {
    "usernames": [
        "_suzanastha_",
        "https://www.instagram.com/nasa/"
    ],
    "startUrls": [
        {
            "url": "https://www.instagram.com/_suzanastha_/"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/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 = {
    "usernames": [
        "_suzanastha_",
        "https://www.instagram.com/nasa/",
    ],
    "startUrls": [{ "url": "https://www.instagram.com/_suzanastha_/" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/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 '{
  "usernames": [
    "_suzanastha_",
    "https://www.instagram.com/nasa/"
  ],
  "startUrls": [
    {
      "url": "https://www.instagram.com/_suzanastha_/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call datascrapers/instagram-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascrapers/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/3e5aPKwrSWODfCRJQ/builds/qvfFEuhNAZ92e9GAh/openapi.json
