# Instagram Related Profiles Scraper — Similar Accounts, Emails (`memo23/instagram-related-profiles-scraper`) Actor

Find related Instagram profiles of one account or a set, with emails, phones, bio links and median engagement. Rank by shared seeds, chain up to 5 levels. No login.

- **URL**: https://apify.com/memo23/instagram-related-profiles-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Lead generation, Social media, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 similar profiles

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 Related Profiles Scraper — Similar Accounts, Emails

> Same code as [Instagram Similar Profiles Scraper](https://apify.com/memo23/instagram-similar-profiles-scraper). This listing is the one Store search hits for **related profiles**.

Find the **related Instagram profiles** of any public account — Suggested-for-You lookalikes — with emails, phones, bio links and median engagement already on the row.
Paste a handle and get Instagram's own "Suggested for you" graph - or turn on **chain discovery** and map an entire niche up to 5 levels deep, every profile deduplicated and charged once. Enrichment is on by default.

***

### Why Use This Scraper?

- Instagram's own suggestion graph - up to roughly 78 lookalikes per account
- **Lookalikes of a whole set of accounts** - give several seeds and every row says which of them it sits next to (`matchedSeeds`, `seedOverlap`). Shared profiles come first, and `minSeedOverlap` keeps only the accounts close to several of your seeds
- **Chain discovery up to 5 levels deep** - also fetch the lookalikes of every discovered profile, mapping the whole network around your seeds in one run
- Every profile deduplicated across the entire run and **charged at most once**, with a global `maxTotalProfiles` safety cap
- Optional same-category business and creator recommendations, about 21 more per account
- Enrichment on by default: follower counts, bio, emails from the contact button and the bio, phones, bio links, and median engagement
- Filter by contact type (`emailOnly`), verified status, a follower band or an engagement-rate band. Rows a filter drops never pay the per-profile fee
- Exclude list: creators you already work with never come back, and are never charged
- Many source accounts per run, processed in parallel
- Flattened rows that drop straight into CSV, Excel, or a CRM import
- No login, no cookies, no session tokens - nothing to get your account flagged

***

### Switching from another related-users scraper?

The complaints users file against related-profile scrapers, and how this one is built to avoid them:

| The complaint elsewhere | What this Actor does instead |
|---|---|
| "Failed but still deducted my money" | The per-profile fee is billed only for rows delivered to your dataset. A failed account produces an uncharged error row, and a run that can't fetch data at all fails loudly with no per-profile charges. Enrichment is billed per profile looked up, so profiles your filters drop still count as enrichments. |
| "Charged for duplicate results" | Every profile is deduplicated across the entire run - including across chain-discovery levels - and charged at most once, no matter how many accounts suggest it. |
| "My username input was silently changed" | Input is never rewritten behind your back. Handles, `@handles`, and profile URLs normalize by a strict rule; anything unrecognizable comes back as an `invalid_username` error row quoting exactly what you sent. |
| "Client error 400 on some accounts / broken actor" | Accounts Instagram won't chain (common on very large brands) return an explanatory `no_suggestions_available` row and the run continues. Upstream requests retry with automatic failover before anything is skipped. |
| "Full profile details marked *unstable*" | Enrichment here is a first-class, stable path: follower/following/post counts, bio, category, public contact fields, plus the account's registration month, country, and former-username count. |
| "Can I get the connection graph?" | Every row already is an edge: `sourceUsername → username`, tagged with `rootUsername` and `depthLevel`. Export the dataset and you have the full network, ready for any graph tool. |

***

### Overview

The Instagram Similar Profiles & Lookalike Finder is built for lead generation teams, influencer marketers, competitive analysts, and agencies who need to expand from one known account to a list of comparable ones.

The output is **profile-shaped rows**. Each row is one lookalike account, tagged with the source account it was found from. Scrape three source accounts and you get one flat dataset of all their lookalikes, each row carrying `sourceUsername` so you can group or filter by origin.

Two independent graphs feed the results, and each row records which one it came from in its `source` field:

- `suggested` - Instagram's "Suggested for you" chaining graph, the larger and more directly similar set
- `business-category` - recommended business and creator accounts in the same category, enabled with a toggle. This is the only source that carries each account's Instagram category without enrichment.

***

### Supported Inputs

#### Input types

| Input type | Pattern | Example |
|---|---|---|
| Bare handle | `username` | `natgeo` |
| @-prefixed handle | `@username` | `@nasa` |
| Profile URL | `instagram.com/<username>` | `https://www.instagram.com/nike` |

All three forms can be mixed in the same run.

#### Copy-pasteable input

```json
{
  "usernames": ["natgeo", "@nasa", "https://www.instagram.com/nike"],
  "maxSimilarPerAccount": 50,
  "includeBusinessSuggestions": true,
  "contactInfoType": "emailOnly"
}
```

#### Unsupported inputs

- **Private accounts** - Instagram exposes no suggestion graph for them
- **Post, reel, or hashtag URLs** - this actor takes account handles only
- **Accounts Instagram considers ineligible** - some very large brand accounts have no suggestion graph at all. You get an explanatory error row rather than silence. See the FAQ.

***

### Use Cases

| Audience | What they use it for |
|---|---|
| Lead generation teams | Expand one ideal customer into a list of comparable accounts, with public contact details |
| Influencer marketers | Find creators similar to one who already performed well |
| Competitive analysts | Map the account neighbourhood a competitor sits in |
| Agencies | Build prospect lists in a client's exact niche |
| Brand teams | Discover adjacent accounts and partnership candidates |
| Market researchers | Study category clustering and account adjacency on Instagram |

***

### How It Works

![How the Instagram Similar Profiles & Lookalike Finder works](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-instagram-similar-profiles.png)

1. **Normalise the input** - bare handles, `@handles`, and profile URLs all resolve to a clean username. Invalid input becomes an error row instead of a wasted request.
2. **Resolve the account** - the handle is looked up to get its numeric ID. A missing account returns a clear error row.
3. **Pull the suggestion graph** - Instagram's "Suggested for you" accounts for that profile.
4. **Optionally add category recommendations** - same-category business and creator accounts, deduplicated against the suggestions.
5. **Optionally chain outward** - with `depth` above 1, every discovered profile becomes a new source and its own lookalikes are fetched, level by level, up to 5 hops from your seeds. A run-wide dedup set guarantees each unique profile appears (and is charged) only once, cycles in the graph are never re-fetched, and the `maxTotalProfiles` cap stops the run cleanly at your budget.
6. **Enrich by default** - each lookalike is looked up individually to add emails (contact button + bio), phones, bio links, median engagement, follower counts, biography and category. Enrichment happens *before* the follower, business, post-count and contact filters, so they can use the enriched fields. A row a filter drops is never charged the per-profile fee, but its enrichment lookup is still billed.

***

### Input Configuration

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `usernames` | array | Yes | - | Source accounts. Handles, `@handles`, or profile URLs. |
| `minSeedOverlap` | integer | No | `1` | Keep only profiles Instagram suggests for at least this many of your `usernames`. `2`+ finds the lookalikes of the whole set. Turns chain discovery off. |
| `excludeUsernames` | array | No | - | Accounts never to return, such as your own brand or creators you already work with. Dropped before any lookup, never charged. |
| `maxSimilarPerAccount` | integer | No | unlimited | Cap on lookalikes returned per source account. Profiles shared by more seeds are kept first. |
| `depth` | integer | No | `1` | Chain discovery: follow the suggestion graph 1-5 levels deep. Level 2 also fetches the lookalikes of every discovered profile, and so on. Paid Apify plans only. |
| `maxTotalProfiles` | integer | No | none | Hard cap on profiles returned (and charged) across the whole run - the safety brake for chain discovery. |
| `includeBusinessSuggestions` | boolean | No | `false` | Also include same-category business and creator recommendations. |
| `enrichProfiles` | boolean | No | `true` | Add emails, phones, bio links, median engagement, follower counts, bio, category, and the account's registration month and country. Paid Apify plans only. |
| `contactInfoType` | string | No | `any` | Keep only profiles with email, phone, either, or both. Turns enrichment on. |
| `onlyVerified` | boolean | No | `false` | Return only accounts with a verification badge. |
| `minFollowers` | integer | No | none | Drop lookalikes below this follower count. Automatically enables `enrichProfiles`. |
| `maxFollowers` | integer | No | none | Drop lookalikes above this follower count - keeps results to micro/mid-tier accounts. Automatically enables `enrichProfiles`. |
| `minEngagementRate` / `maxEngagementRate` | number | No | none | Median engagement-rate band in percent, e.g. `1` to `15`. A profile whose rate can't be measured is dropped. Enables enrichment. |
| `onlyBusiness` | boolean | No | `false` | Keep only business / creator accounts. Enables enrichment. |
| `excludePrivate` | boolean | No | `false` | Drop private lookalikes from the output (they never seed the next depth either). |
| `minPosts` / `maxPosts` | integer | No | none | Post-count floor / ceiling. Enables enrichment. |
| `includeLatestPosts` | boolean | No | `false` | Attach a 3-post preview on each enriched lookalike. |
| `scrapeFacebookProfile` | boolean | No | `false` | If the bio or a bio link points at Facebook, put that URL on `facebookProfileUrl`. Does not fetch Facebook. |

#### Example - map a whole niche with chain discovery

```json
{
    "usernames": ["gymshark"],
    "depth": 3,
    "maxSimilarPerAccount": 30,
    "maxTotalProfiles": 1000
}
```

One seed account, three levels out: Gymshark's lookalikes, their lookalikes, and theirs again - up to 1,000 unique fitness-brand profiles, each row tagged with `rootUsername`, `depthLevel`, and the `sourceUsername` it was discovered from, so the network is fully reconstructable.

#### Example - lookalikes of several accounts at once

```json
{
    "usernames": ["bonappetitmag", "nytcooking", "epicurious"],
    "minSeedOverlap": 2,
    "excludeUsernames": ["thefeedfeed"],
    "minEngagementRate": 0.5
}
```

Only the profiles Instagram puts next to at least two of the three food publishers, with your excluded accounts left out. Measured on 2026-10-02 with the first three seeds and no other filters: 20 profiles were suggested for both Bon Appétit and NYT Cooking, among them Half Baked Harvest, Love and Lemons, Alison Roman and Eater.

#### Example - lookalike list without enrichment

```json
{
  "usernames": ["natgeo"],
  "maxSimilarPerAccount": 50,
  "enrichProfiles": false
}
```

#### Example - lead generation with contact details

```json
{
  "usernames": ["nasa", "natgeo"],
  "maxSimilarPerAccount": 100,
  "includeBusinessSuggestions": true,
  "contactInfoType": "emailOnly",
  "minFollowers": 10000
}
```

***

### Output Overview

One dataset row per lookalike account. Every row identifies the source account it was found from and which graph produced it, then carries the account's public identity fields.

Enrichment fields (`followerCount`, `followingCount`, `postCount`, `biography`, `externalUrl`, `publicEmail`, `publicPhone`, `email`, `emails`, `emailSource`, `phone`, `phones`, `medianEngagementRate`, `isBusiness`, `accountCreated`, `accountCountry`, `formerUsernameCount`, `bioLinks`) are `null` / empty unless `enrichProfiles` is on (it is, by default). The last three about-panel fields separate an established account from one spun up last month, which a follower count alone never tells you. `category` is populated for `business-category` rows even without enrichment. `latestPosts` and `facebookProfileUrl` appear only when those toggles are on.

Accounts that could not be processed are returned as error rows carrying `sourceUsername`, `error`, and `message` - these are never charged.

***

### Output Samples

Real row, produced from `usernames: ["natgeo"]` with `enrichProfiles: true` (CDN URL shortened):

```json
{
  "sourceUsername": "natgeo",
  "sourceUserId": "787132",
  "source": "suggested",
  "username": "instagram",
  "userId": "25025320",
  "fullName": "Instagram",
  "profileUrl": "https://www.instagram.com/instagram/",
  "isVerified": true,
  "isPrivate": false,
  "profilePicUrl": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-19/...",
  "socialContext": "Instagram",
  "category": null,
  "followerCount": 685857490,
  "followingCount": 264,
  "postCount": 8535,
  "biography": "Discover what's new on Instagram 🔎✨",
  "externalUrl": "https://www.youtube.com/watch?v=H6G9PcvHjj4",
  "publicEmail": null,
  "publicPhone": null,
  "isBusiness": false
}
```

Error row for an account with no suggestion graph:

```json
{
  "sourceUsername": "someverylargebrand",
  "error": "no_suggestions_available",
  "message": "Instagram returns no \"suggested for you\" accounts for @someverylargebrand. This happens on some very large or restricted accounts - try a smaller or more niche account."
}
```

***

### Key Output Fields

**Source**
`sourceUsername`, `sourceUserId`, `source`

**Chain discovery**
`rootUsername` (the seed account this chain started from), `depthLevel` (how many hops out it was found - `1` = direct lookalike of a seed)

**Seed match**
`matchedSeeds` (the input accounts Instagram suggests this profile for), `seedOverlap` (how many). Deeper chain-discovery rows that no seed suggests directly read `[]` and `0`

**Account identity**
`username`, `userId`, `fullName`, `profileUrl`, `profilePicUrl`

**Status**
`isVerified`, `isPrivate`, `isBusiness`, `category`, `socialContext`

**Audience (enrichment only)**
`followerCount`, `followingCount`, `postCount`

**Profile detail (enrichment only)**
`biography`, `externalUrl`

**Public contact (enrichment only)**
`email`, `emails`, `emailSource`, `phone`, `phones`, `publicEmail`, `publicPhone`

**Engagement (enrichment only)**
`medianEngagementRate`

***

### Free Apify plan

On the free Apify plan a run covers 1 account, up to 20 lookalikes, without enrichment or chain discovery. The first 3 profiles of each run come back in full, so you can check the data. After that, rows keep the username, user id, full name, profile URL, verified and private flags, category, Instagram's suggestion reason and the source fields, while the profile picture is left empty and a `freePlanNote` field marks those rows. Enrichment fields (counts, biography, links, emails, phones, engagement rate) are paid-plan only. Any paid Apify plan returns every field in full. Category recommendations (`includeBusinessSuggestions`), profile enrichment (`enrichProfiles`), the latest-posts preview (`includeLatestPosts`) and chain discovery (`depth` above 1) are available on paid Apify plans only.

***

### FAQ

**How many lookalikes do I get per account?**
Instagram serves up to roughly 78 suggestions per account, plus about 21 more if `includeBusinessSuggestions` is on. The exact number varies by account.

**Why did one of my accounts return no results?**
Instagram does not expose a suggestion graph for every profile. Very large brand accounts in particular often return nothing - Instagram considers them ineligible for chaining. You get an explanatory error row and are not charged. Smaller, more niche accounts almost always work. Turning on `includeBusinessSuggestions` frequently produces results even when the suggestion graph is empty.

**Do I need enrichment to get follower counts and emails?**
Yes - and it is on by default. The suggestion graph returns identity fields only. Follower counts, emails, phones, bio links and median engagement each require an additional lookup per profile, which is why enrichment is billed separately. Set `enrichProfiles: false` to skip it.

**Does `minFollowers` work without enrichment?**
It cannot filter on data that was never fetched, so switching it on automatically enables `enrichProfiles`. The threshold is applied after enrichment and before the per-profile charge: a dropped row is not billed as a similar profile, but its enrichment lookup is.

**How many accounts publish a public email?**
Only a minority - roughly one in five in testing, and only for business or creator accounts that chose to display contact details. `publicEmail` is `null` for the rest. This is an Instagram limitation, not a scraping gap.

**How does chain discovery decide what to expand?**
Only profiles that were actually delivered to your dataset are expanded at the next level - anything dropped by your filters or caps is not. Private accounts are never expanded (their graphs are unreachable), cycles are detected so no account is fetched twice, and every unique profile is charged at most once per run no matter how many accounts suggest it.

**Can a deep run explode in cost?**
The graph grows exponentially with depth, but three independent brakes bound every run: `maxTotalProfiles` stops it at an exact row count, your run's charge limit stops it at an exact dollar amount, and the timeout stops it in time. The run finishes cleanly at whichever it hits first - with everything found so far already in the dataset.

**Is this the same as scraping followers?**
No. Followers are people who follow an account. Lookalikes are accounts *similar to* it, per Instagram's own recommendation graph. For follower lists see the Instagram Followers & Following Scraper.

**Do I need an Instagram account, login, or cookies?**
No. Nothing is authenticated and no session is used, so there is no account to get flagged.

***

### Support

Found a bug or need a field that is not there? Open an issue on the actor's **Issues** tab and it will be looked at.

Email: muhamed.didovic@gmail.com

***

### Additional Services

Need a custom scraper, a tailored export format, or an integration into your own pipeline? Custom builds are available - get in touch at muhamed.didovic@gmail.com.

***

### Explore More Scrapers

- **Instagram Profile Scraper** - profiles, posts and comments from any public account
- **Instagram Followers & Following Scraper** - full follower and following lists
- **Instagram Hashtag Scraper** - top posts and reels from any hashtag
- **Instagram Stories & Highlights Scraper** - active stories and permanent highlights
- **Instagram Post Likers Scraper** - who liked any public post or reel
- **Instagram Comments Scraper** - full comment threads with replies
- **Instagram Reels Search & Viral Finder** - find trending reels by keyword

Browse the full collection at [apify.com/memo23](https://apify.com/memo23).

***

### 🤖 For AI Agents & LLM Apps

Compact reference for AI agents calling this actor via the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/instagram-similar-profiles-scraper`).

**Purpose:** Expands a public Instagram handle into similar accounts using Instagram's own suggestion graph, with optional per-profile enrichment.

**Minimal input:**

```json
{ "usernames": ["natgeo"], "maxSimilarPerAccount": 20 }
```

**Output:** one dataset row per lookalike - sourceUsername, sourceUserId, source, rootUsername, depthLevel, matchedSeeds, seedOverlap, username, userId, fullName, profileUrl, isVerified, isPrivate, profilePicUrl, socialContext, category, and (enrichment only) followerCount, followingCount, postCount, biography, externalUrl, publicEmail, publicPhone, email, emails, emailSource, phone, phones, medianEngagementRate, bioLinks, isBusiness, accountCreated, accountCountry, formerUsernameCount. Failed accounts return `{sourceUsername, error, message}` instead.

**Behaviors an agent should know:**

- Yield is capped by Instagram at roughly 78 suggestions per account, plus about 21 with `includeBusinessSuggestions`. To go beyond that, raise `depth` (1-5) - each level also fetches the lookalikes of everything discovered so far, deduplicated run-wide. Always pair `depth` above 2 with `maxTotalProfiles`, since growth is exponential.
- Some accounts - especially very large brands - have no suggestion graph and return `no_suggestions_available`. Retrying will not help; use a smaller account or enable `includeBusinessSuggestions`.
- Enrichment is on by default. Set `enrichProfiles: false` to skip emails, ER and follower counts. `contactInfoType` filters after enrichment: rows that fail it are not charged as `similar-profile`, but their `enriched-profile` event is.
- With several `usernames`, `seedOverlap` counts how many of them Instagram suggests a profile for; `minSeedOverlap: 2` returns the lookalikes of the whole set. It turns chain discovery off. `excludeUsernames` removes accounts before any charge.
- `minEngagementRate` / `maxEngagementRate` are percents and enable enrichment; a profile whose rate can't be measured is dropped.
- `minFollowers` and `maxFollowers` implicitly enable `enrichProfiles`, because they filter on enriched data; a profile whose count can't be fetched is dropped, never passed through unverified. Use `maxFollowers` to keep results to micro/mid-tier accounts.
- Billing: one `similar-profile` event per row delivered, plus one `enriched-profile` event per successfully enriched profile, whether or not a later filter (followers, engagement, business, post count, contact type) removes it. Private accounts are dropped before enrichment when "Exclude private accounts" is on, so they are not charged. Error rows are never charged, and neither are rows removed by `onlyVerified`, `minSeedOverlap`, `excludeUsernames` or `maxSimilarPerAccount`, which apply before enrichment. A run whose charge limit cannot cover one more profile stops with that reason instead of failing as an empty dataset.
- A run whose filters remove every profile ends SUCCEEDED with an empty dataset and a status message naming the cause. Retrying will not change it; loosen the filters instead.
- No login is used, so private accounts and authenticated-only fields are unavailable.

***

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Meta Platforms, Inc. or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

The scraper accesses only publicly available Instagram profile data - no authenticated endpoints, paid features, or content behind the instagram.com login wall. Users are responsible for ensuring their use complies with instagram.com's Terms of Service, applicable data-protection law (GDPR, CCPA, etc.), and any contractual obligations of their own organization.

***

### SEO Keywords

instagram similar profiles scraper, instagram lookalike finder, instagram lookalike search, find similar instagram influencers, lookalike audience instagram, scrape instagram suggested accounts, instagram related profiles API, instagram related users scraper, instagram chain discovery, instagram network mapping, instagram.com scraper, Apify instagram, similar accounts scraper, instagram profile discovery, competitor account finder, influencer discovery data, instagram lead generation, b2b prospecting data, instagram audience research, creator sourcing tool, instagram contact email scraper, social media prospecting, instagram niche research, brand partnership discovery, no login instagram scraper

# Actor input Schema

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

Public Instagram accounts to find lookalikes for. Accepts plain handles (nike), @-handles (@nike), or profile URLs (https://www.instagram.com/nike) - one per line, mixed formats are fine. Very large brand accounts sometimes have no suggestion graph on Instagram's side and return an explanatory error item.

## `minSeedOverlap` (type: `integer`):

With several accounts above, keep only profiles Instagram suggests for at least this many of them. 2 or more finds the lookalikes of the whole set rather than of one account. Every row carries matchedSeeds and seedOverlap either way, and shared profiles come first. Turns chain discovery off, since overlap is measured on your accounts' own suggestions. Default: 1 (no filter).

## `excludeUsernames` (type: `array`):

Accounts that must never appear in the results, such as creators you already work with or your own brand. Handles, @-handles or profile URLs. Excluded profiles are dropped before any lookup, so they are never charged.

## `maxSimilarPerAccount` (type: `integer`):

Cap how many lookalike profiles to return per source account. Instagram serves up to roughly 78 suggestions per account, plus about 21 more if category recommendations are enabled. Leave empty for all of them.

## `includeBusinessSuggestions` (type: `boolean`):

Add Instagram's recommended business and creator accounts from the same category, on top of the standard 'Suggested for you' graph. Adds about 21 more profiles per account and is the only source that carries each account's Instagram category. Default: off. Paid Apify plans only.

## `enrichProfiles` (type: `boolean`):

Look up each lookalike's full profile to add emails from the contact button and bio, phones, bio links, median engagement, follower counts, biography and category. On by default. Costs one extra request per profile and is charged separately. Paid Apify plans only.

## `contactInfoType` (type: `string`):

Filter after enrichment. emailOnly is the usual lead-gen setting. Turns enrichment on. Default: any.

## `depth` (type: `integer`):

Follow Instagram's suggestion graph this many levels deep: 1 = each account's own lookalikes only (default), 2 = also the lookalikes of every discovered profile, and so on up to 5 - mapping the whole niche around your seeds. Every profile is deduplicated across the run and charged at most once. Growth is exponential (50 lookalikes per account at depth 2 can already mean 2,500+ profiles), so pair depths above 2 with 'Max total profiles'. Paid Apify plans only.

## `maxTotalProfiles` (type: `integer`):

Hard cap on how many profiles the whole run may return - and charge - across all accounts and depth levels. The safety brake for chain discovery: the run stops cleanly the moment it is reached. Leave empty for no cap (the run is then bounded only by depth, your charge limit, and the timeout).

## `onlyVerified` (type: `boolean`):

Return only accounts with Instagram's blue verification badge. Default: off.

## `minFollowers` (type: `integer`):

Drop lookalikes with fewer followers than this. Follower counts only exist when profiles are enriched, so switching this on automatically turns on 'Enrich profiles'. Leave empty for no threshold.

## `onlyBusiness` (type: `boolean`):

Keep only accounts flagged as business or creator after enrichment. Turns enrichment on. Default: off.

## `excludePrivate` (type: `boolean`):

Drop private profiles from the output (they still cannot seed the next depth). Default: off - private lookalikes are returned but not chained.

## `minPosts` (type: `integer`):

Drop lookalikes with fewer posts than this. Needs enrichment. Leave empty for no floor.

## `maxPosts` (type: `integer`):

Drop lookalikes with more posts than this. Needs enrichment. Leave empty for no ceiling.

## `includeLatestPosts` (type: `boolean`):

Attach a 3-post preview on each enriched lookalike. Same enrichment charge. Paid plans only.

## `scrapeFacebookProfile` (type: `boolean`):

If the biography or a bio link points at Facebook, put that URL on facebookProfileUrl. Does not fetch Facebook. Off by default.

## `maxFollowers` (type: `integer`):

Drop lookalikes with more followers than this - the way to keep results to micro and mid-tier accounts a smaller brand can realistically partner with. Needs follower counts, so switching it on automatically turns on 'Enrich profiles'; a profile whose count can't be fetched is dropped rather than passed through unverified. Leave empty for no ceiling.

## `minEngagementRate` (type: `number`):

Drop lookalikes whose median engagement rate (likes + comments over followers, recent posts) is below this percent, e.g. 1.5. Needs enrichment, so it turns 'Enrich profiles' on. Profiles whose rate cannot be measured are dropped.

## `maxEngagementRate` (type: `number`):

Drop lookalikes above this median engagement rate, e.g. 20 to skip accounts with suspicious spikes. Needs enrichment, so it turns 'Enrich profiles' on.

## Actor input object example

```json
{
  "usernames": [
    "natgeo",
    "https://www.instagram.com/nasa"
  ],
  "minSeedOverlap": 1,
  "maxSimilarPerAccount": 50,
  "includeBusinessSuggestions": false,
  "enrichProfiles": true,
  "contactInfoType": "any",
  "depth": 1,
  "maxTotalProfiles": 500,
  "onlyVerified": false,
  "onlyBusiness": false,
  "excludePrivate": false,
  "includeLatestPosts": false,
  "scrapeFacebookProfile": false
}
```

# Actor output Schema

## `results` (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 = {
    "usernames": [
        "natgeo"
    ],
    "maxSimilarPerAccount": 50,
    "maxTotalProfiles": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/instagram-related-profiles-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": ["natgeo"],
    "maxSimilarPerAccount": 50,
    "maxTotalProfiles": 500,
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/instagram-related-profiles-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": [
    "natgeo"
  ],
  "maxSimilarPerAccount": 50,
  "maxTotalProfiles": 500
}' |
apify call memo23/instagram-related-profiles-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/instagram-related-profiles-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/PydIorbORIJg3hr1A/builds/YL09TahxyRypvldhi/openapi.json
