# Instagram Related Users Scraper (`automation-lab/instagram-related-users-scraper`) Actor

Find the accounts Instagram relates to public profiles, best from well-known accounts, with followers, bio, links and emails. No login or cookies.

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

## Pricing

from $1.44 / 1,000 related 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 Users Scraper

Find the accounts Instagram relates to public profiles, best from well-known accounts. Give it usernames or profile URLs and get each related account with its followers, biography, links, and any email or phone written in the bio. Follow the connections up to 3 levels to map a whole niche.

No Instagram account or cookies needed. Profile details are included in the price of each row.

### What does Instagram Related Users Scraper do?

Instagram keeps a list of related accounts for many profiles. It shows that list to logged-out visitors, but offers no export for it, and the official API does not include it.

This Actor reads that list for each account you give it and saves one row per related account:

- **Who it is:** username, stable user ID, name, profile picture, verified and private flags.
- **How it connects:** which account suggested it, its place in that list, how far it is from your accounts, and which of your accounts lead to it.
- **Profile details:** followers, following, biography, bio links, Threads handle, latest story time, and emails and phones written in the bio.

Each account is returned and charged once per run, however many lists it appears in.

### Who is it for?

- **Influencer marketing teams** turning one good creator into a list of similar ones.
- **Brands and agencies** finding the accounts Instagram places next to a competitor.
- **Sales and partnership teams** building outreach lists in a niche, using the follower filters or the `emails` column of an unfiltered run.
- **Analysts and researchers** mapping how accounts in a market connect, using the connection graph view.
- **Developers** adding account discovery to their own tools through the API.

This Actor works best from well-known accounts. See [How many related accounts will I get?](#how-many-related-accounts-will-i-get) before you plan a run around small accounts.

### Why use this Actor?

- **Details included.** Followers, biography, links and bio contacts are part of the row price, not a paid add-on.
- **You pay per row saved, plus a small start fee.** Accounts your filters drop, start accounts with no related list and failed lookups add no row charge.
- **Find lookalikes of a whole set.** Give several accounts, and each row shows which ones lead to it. The most shared come first, and Minimum shared accounts keeps only those.
- **Clear about gaps.** The run summary gives the result for every start account: found, no related accounts, private, not found or failed.
- **Stable IDs.** `userId` stays the same when an account changes its name, so repeat runs are easy to compare.

### What data can you extract?

| Field | Description |
|---|---|
| `username`, `userId` | The related account's username and stable numeric ID |
| `fullName` | Display name |
| `profileUrl`, `profilePicUrl` | Link to the account and its profile picture (signed URL) |
| `isVerified`, `isPrivate` | Verified badge and private flag |
| `sourceUsername` | The account whose list first showed this one |
| `rank` | Position in that list, from 1, counting only the accounts your settings keep |
| `depth` | Search level where it was found. 1 is a direct relation of your accounts |
| `matchedSeeds`, `seedOverlap` | Your start accounts that lead to it, and how many |
| `suggestedBy` | Every account in this run whose list showed it |
| `enriched` | Whether the profile was read for this row |
| `followersCount`, `followingCount` | Counts. Null without profile details and for private accounts |
| `biography` | Profile biography |
| `externalUrl`, `bioLinks` | First bio link and all bio links |
| `emails`, `phones` | Contacts written in the biography |
| `pronouns` | Pronouns shown on the profile |
| `threadsUsername` | Threads handle, when the profile shows the badge |
| `latestStoryAt` | When the account last posted a story, if Instagram returns it |
| `scrapedAt` | When the row was produced |

The dataset has two views: **Related accounts** for browsing and **Connection graph** for the links between accounts.

The `RUN_SUMMARY` record in the run's key-value store lists each start account with its result and count, the number of accounts dropped by each setting, and any related lists that could not be read.

### How many related accounts will I get?

Instagram decides this, and it depends mostly on the size of the account. This is what we measured in November 2026:

| Start account | Related accounts per account |
|---|---|
| Millions of followers, such as natgeo, mkbhd or sephora | Usually up to the maximum of 50 |
| Well-known brands, such as patagonia, oatly or glossier | Often 20-35 |
| Mid-size brands and creators, such as rei or pinchofyum | Often 5-15 |
| Under 100,000 followers | Usually 0-4, and often none |

Some large accounts return none too, and the list stays the same between runs.

This is the list Instagram shows to logged-out visitors. Other tools that use a different source can return longer lists, up to about 80, especially for small accounts. If your start accounts are small, try a few first: a start account with no related accounts adds no row charge. Search depth 2 can also widen a short list.

### How much does it cost to find related Instagram accounts?

The Actor uses pay-per-event pricing, with no monthly fee on top of your Apify plan. Proxy costs and profile details are included.

| Event | Free and Starter | Scale | Business and above |
|---|---|---|---|
| Run start, once per run | $0.001 | $0.001 | $0.001 |
| Each related profile saved | $0.0018 | $0.00162 | $0.00144 |

Examples at the Starter price:

- **One well-known account,** 50 related profiles: **$0.091**.
- **Three brand accounts,** 100 related profiles: **$0.181**.
- **Map a niche at depth 2,** 1,000 profiles: **$1.80**.

The start fee is charged once for each finished run, including a run that finds no rows. A run that fails or has no valid username is free. You can cap any run with Maximum total profiles or Maximum charge per run.

### How to find related Instagram accounts

1. Open [Instagram Related Users Scraper](https://apify.com/automation-lab/instagram-related-users-scraper) in Apify Console.
2. Add one or more usernames or profile URLs under **Instagram accounts**.
3. Set **Search depth** and **Maximum total profiles** for the size of the job.
4. Add any filters, then click **Start**.
5. Download the rows as JSON, CSV or Excel, or read them through the API.

### Input parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `usernames` | array | required | Handles, @handles or profile URLs |
| `maxRelatedPerAccount` | integer | `50` | Related accounts to take from each list, 1-50 |
| `depth` | integer | `1` | Levels to follow, 1-3 |
| `maxTotalProfiles` | integer | `200` | Stops the run after this many saved profiles |
| `minSeedOverlap` | integer | `1` | Keep only accounts related to at least this many start accounts. Above 1, depth is ignored |
| `excludeUsernames` | array | none | Accounts that must not appear in the results |
| `onlyVerified` | boolean | `false` | Keep only verified accounts |
| `excludePrivate` | boolean | `false` | Drop private accounts |
| `minFollowers`, `maxFollowers` | integer | none | Follower range. Turns on profile details and drops private accounts |
| `onlyWithEmail` | boolean | `false` | Keep only accounts with an email in the bio. Turns on profile details |
| `enrichProfiles` | boolean | `true` | Read each profile for details. Turn it off for a faster list of usernames |

```json
{
    "usernames": ["natgeo", "https://www.instagram.com/patagonia/"],
    "depth": 1,
    "maxTotalProfiles": 100,
    "minFollowers": 10000,
    "excludeUsernames": ["rei"]
}
```

### Output example

A real row. The profile picture URL is shortened here.

```json
{
    "username": "natgeotravel",
    "userId": "23947096",
    "fullName": "National Geographic Travel",
    "profileUrl": "https://www.instagram.com/natgeotravel/",
    "profilePicUrl": "https://scontent-lga3-3.cdninstagram.com/v/t51.82787-19/…",
    "isVerified": true,
    "isPrivate": false,
    "sourceUsername": "natgeo",
    "rank": 33,
    "depth": 1,
    "matchedSeeds": ["natgeo", "patagonia"],
    "seedOverlap": 2,
    "suggestedBy": ["natgeo", "patagonia"],
    "enriched": true,
    "followersCount": 44474069,
    "followingCount": 107,
    "biography": "Journey across our big, wondrous world with National Geographic.",
    "externalUrl": "http://visitstore.bio/natgeotravel",
    "bioLinks": ["http://visitstore.bio/natgeotravel"],
    "emails": [],
    "phones": [],
    "pronouns": [],
    "threadsUsername": "natgeotravel",
    "latestStoryAt": "2026-11-06T20:10:58.000Z",
    "scrapedAt": "2026-11-07T07:41:55.544Z"
}
```

### Limits and failure behavior

- **50 related accounts per account at most,** and often fewer. See [How many related accounts will I get?](#how-many-related-accounts-will-i-get)
- **Contacts come from the biography only.** Business emails and phones behind Instagram's contact button, business categories and post counts are not available to logged-out visitors. In our sample, about 4 in 100 accounts had an email in the bio.
- **Private accounts** can appear as rows, without counts or biography. They cannot be followed further, and a private start account returns nothing.
- **Your start accounts never appear as rows,** even when they are related to each other.
- **Blocked requests** are retried on a new address, then on a residential proxy. Searches with a follower or email filter use residential only once, for a start account, so more start accounts can fail when Instagram is rate limiting. A start account that still fails is named in the status message, and rows already saved are kept.
- **A related account whose profile cannot be read** is saved with `enriched: false` and its list fields. A filter that needs the profile drops it instead, and the status message counts it.
- **Lists that fail past your start accounts** at depth 2 or 3 are counted in the status message and `RUN_SUMMARY`. Rows from the other lists are kept.
- **At the run timeout,** accounts found but not yet read are saved from their list fields with `enriched: false`, and the status message says how many. With a follower or email filter they cannot be judged, so they are not saved.
- **Profile pictures are signed links** that stop working after some time. Download any you want to keep.

### Tips for better results

- Start from accounts larger than the ones you want to find, then use **Maximum followers** to keep the micro and mid-size accounts.
- Use 2-5 accounts from one niche with **Minimum shared accounts** set to 2 for a tight list of lookalikes.
- At depth 2 and 3 the list grows quickly and drifts from the niche. Set **Maximum total profiles** first, and check `depth` and `seedOverlap` when you review results.
- Put accounts from earlier runs in **Exclude accounts** so you only pay for new ones.

### Integrations

- **Google Sheets**: keep a shared list of creators to review.
- **Make, Zapier and n8n**: send accounts with an email to your CRM or outreach tool.
- **Slack**: post new accounts in a niche from a weekly scheduled run.
- **Graph tools such as Gephi**: export `suggestedBy` and `username` from the Connection graph view.
- **Webhooks**: start your own processing as soon as a run finishes.

### Use the Actor through the API

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~instagram-related-users-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"usernames": ["natgeo"], "maxTotalProfiles": 50}'
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/instagram-related-users-scraper').call({
    usernames: ['natgeo', 'patagonia'],
    maxTotalProfiles: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((row) => `${row.username}: ${row.followersCount}`));
```

#### Python

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("automation-lab/instagram-related-users-scraper").call(run_input={
    "usernames": ["natgeo", "patagonia"],
    "maxTotalProfiles": 100,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["username"], row["followersCount"], row["emails"])
```

### Use with MCP and AI agents

Connect this Actor to Claude Code through the Apify MCP server:

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/instagram-related-users-scraper"
```

#### Claude Desktop

Add this server in Claude Desktop settings:

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com?tools=automation-lab/instagram-related-users-scraper"
        }
    }
}
```

#### Cursor

Use the same `mcpServers` JSON in Cursor's MCP settings.

#### VS Code

Add the same Apify MCP URL through VS Code's MCP server configuration.

#### Reading results

Selecting this Actor also adds the `get-actor-run`, `get-dataset-items`, `get-key-value-store-record` and `abort-actor-run` tools. Start one run and keep its run ID. `call-actor` waits 45 seconds at most, so if the run is still going, check that same run with `get-actor-run` instead of starting another. Then read the rows with `get-dataset-items` using the dataset ID, an explicit `limit` and `offset`, and only the `fields` you need. Read pages of about 20 rows, and keep full exports outside the model's context.

Example prompts:

- "Find accounts related to @patagonia with under 500,000 followers, then show me the ones with something in the `emails` column. Don't use the email filter."
- "Which accounts are related to both @glossier and @sephora?"
- "Map the accounts around @mkbhd two levels out, limited to 200 profiles."

### Data handling and dependencies

The Actor reads data Instagram serves to logged-out visitors, through Apify proxies. It uses no third-party data provider, no AI service and no account of yours. It stores nothing beyond your run's dataset, key-value store and logs, which follow your Apify retention settings. Rows can contain names, biographies and contact details people chose to publish, so treat them as personal data where that applies.

Instagram can change what it shows logged-out visitors at any time, which can change what this Actor returns.

Failed operations send sanitized diagnostic input, exceptions and Actor/build/run IDs to our private GlitchTip service for repair. Secret fields and URL queries are removed, and reports are retained for 30 days.

### Is it legal to scrape Instagram related accounts?

This Actor collects only publicly visible data and does not log in or access private accounts. Whether you may use that data depends on your location and purpose. Personal data is protected by laws such as the GDPR and CCPA, and outreach to people found this way may fall under marketing and anti-spam laws. Use the data responsibly, and ask a lawyer if you are unsure. The Actor is not affiliated with or endorsed by Instagram or Meta.

### FAQ

#### Do I need an Instagram account or cookies?

No. The Actor works only with what Instagram shows to logged-out visitors.

#### Why did a public account return no related accounts?

Instagram has no logged-out list for it, which is common for smaller accounts and happens for some large ones too. The status message and `RUN_SUMMARY` say so. Running it again gives the same result, so try a larger account in the same niche.

A run that ends with no rows pays the start fee and no row charge.

#### Why did my filtered search stop early?

Follower and email filters are checked against each account's profile, so a narrow filter can read many profiles and keep few. A search starts with a few dozen profile checks, and each row saved pays for a few hundred more. It checks the accounts from each group of lists before reading the next group, so matches also pay for going deeper. If too few match, it stops, saves what it has, and the status message says how many profiles it checked.

A filter that matches rarely can therefore end with 0 rows and the start fee. In our tests the email filter did this on some searches and found every row asked for on others, because only about 4 in 100 accounts have an email in the bio. For rare matches, run without the filter and filter the `emails` and `followersCount` columns afterwards: every account is saved, at the normal row price.

#### Why do I see fewer rows than I expected?

Instagram may return a short list, or your settings may have dropped accounts. The status message gives the number dropped for each setting: Minimum shared accounts, the limit per account, verified, private, Exclude accounts and the follower and email filters. Check `drops`, `droppedByFilters` and `seeds` in `RUN_SUMMARY`.

#### Why are followers empty on some rows?

The account is private, so Instagram gives no public count, or its profile could not be read (`enriched: false`), or you turned off profile details.

#### Does it find the same accounts as the Instagram app?

Not exactly. The app personalizes suggestions for the signed-in user and shows more of them. This Actor returns the list for logged-out visitors, which is the same for everyone and stays stable between runs.

### Related Actors

- [Instagram Public Profile Details](https://apify.com/automation-lab/instagram-public-profile-details): read the profile of accounts you already have.
- [Instagram Profile Stats Scraper](https://apify.com/automation-lab/instagram-profile-stats-scraper): track follower and engagement numbers for a list of accounts.
- [Instagram Followers Count Bulk Scraper](https://apify.com/automation-lab/instagram-followers-count-bulk-scraper): check follower counts in bulk.
- [Instagram Keyword Search Scraper](https://apify.com/automation-lab/instagram-keyword-search-scraper): find accounts and posts by topic when you have no starting account.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/instagram-related-users-scraper/changelog.md

# Actor input Schema

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

Public accounts to find related accounts for. Handles (nike), @handles (@nike) and profile URLs all work, one per line.

## `maxRelatedPerAccount` (type: `integer`):

How many related accounts to take from each account's list, in Instagram's order. Instagram shows logged-out visitors at most 50, and many fewer for some accounts.

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

1 returns the related accounts of your accounts. 2 and 3 also follow the related accounts of those accounts, to map a whole niche. Each account is returned and charged once. Set Maximum total profiles to keep deeper runs in budget.

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

Stop the whole run after saving this many profiles. This also caps what the run can charge for profiles.

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

With several accounts above, keep only profiles related to at least this many of them, to find lookalikes of the whole set. Values above 1 turn off Search depth. Rows always show matchedSeeds and seedOverlap, with the most shared first.

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

Accounts that must not appear in the results, such as your own brand or creators you already work with. Handles, @handles or profile URLs.

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

Keep only accounts with Instagram's verified badge.

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

Drop private accounts. Private accounts are never followed further, whatever this setting says.

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

Drop accounts with fewer followers. Turns on profile details. Private accounts have no public count, so this drops them too.

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

Drop accounts with more followers, to keep results to micro and mid-size accounts. Turns on profile details. Private accounts have no public count, so this drops them too.

## `onlyWithEmail` (type: `boolean`):

Keep only accounts that show an email address in their biography. Turns on profile details. Only about 4 in 100 accounts have one, so a search can end with 0 rows.

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

Read each account's profile to add followers, following, biography, bio links, and emails and phones from the bio. There is no extra charge. Turn it off for a faster list of usernames.

## Actor input object example

```json
{
  "usernames": [
    "natgeo",
    "https://www.instagram.com/nasa/"
  ],
  "maxRelatedPerAccount": 50,
  "depth": 1,
  "maxTotalProfiles": 100,
  "minSeedOverlap": 1,
  "onlyVerified": false,
  "excludePrivate": false,
  "onlyWithEmail": false,
  "enrichProfiles": true
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per related account, with profile details.

## `graph` (type: `string`):

The same rows with the fields that describe how accounts connect.

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

The result for each start account: found, no related accounts, private, not found or failed.

# 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",
        "nasa"
    ],
    "maxTotalProfiles": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/instagram-related-users-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",
        "nasa",
    ],
    "maxTotalProfiles": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/instagram-related-users-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",
    "nasa"
  ],
  "maxTotalProfiles": 100
}' |
apify call automation-lab/instagram-related-users-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/instagram-related-users-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/9qlacFKdjXbOJkhaI/builds/u1eVUSkXfZ6Ag1FPG/openapi.json
