# Instagram Related Profiles Scraper: Similar Accounts & Creators (`data-for-agents/instagram-related-profiles-scraper`) Actor

Related (similar) Instagram accounts for any public profile, no login: up to 50 suggested profiles per seed, ranked. One row per profile: username, name, verified, private, picture, link. Optional followers and post count. $0.38 per 1,000 profiles; failed seeds free, no start or per-seed fee.

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

## Pricing

from $0.38 / 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.

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 and creators

Give one or more Instagram usernames. Get the accounts Instagram itself suggests as related to each one: up to about
50 similar profiles per seed, in Instagram's order. No login, no cookies, no proxy setup.

**One row per related profile:** `seedUsername`, `rank`, `username`, `fullName`, `id`, `url`, `isVerified`, `isPrivate`,
`profilePicUrl`. With `includeProfileDetails`: `followersCount`, `postsCount`.

**$0.38 per 1,000 related profiles.** No start fee, no fee per seed. Seeds that fail, do not exist or have no related
profiles are free rows that say why. Followers and post count are an add-on: $0.40 per 1,000 profiles filled.

### Input

```json
{ "usernames": ["mkbhd"], "maxResultsPerProfile": 10 }
```

| Field | What it does | Default |
|---|---|---|
| `usernames` | Seed accounts: `mkbhd`, `@mkbhd` or `https://www.instagram.com/mkbhd/`. Up to 500. | required |
| `maxResultsPerProfile` | The most related profiles per seed (1-100; Instagram gives up to about 50). | 50 |
| `includeProfileDetails` | Also read each related profile's follower count and number of posts. Add-on, $0.40 per 1,000 profiles filled. | false |

### Output

One real row (seed `mkbhd`):

```json
{
  "status": "ok",
  "error_code": null,
  "error": null,
  "inputUrl": "mkbhd",
  "seedUsername": "mkbhd",
  "seedId": "28943446",
  "rank": 1,
  "username": "pcmag",
  "id": "928748200",
  "fullName": "PCMag",
  "url": "https://www.instagram.com/pcmag/",
  "isVerified": true,
  "isPrivate": false,
  "profilePicUrl": "https://scontent.cdninstagram.com/v/...jpg",
  "followersCount": null,
  "postsCount": null,
  "scrapedAt": "2026-11-20T10:55:46.000Z"
}
```

Every row has the same fields. The run's counts are in the `OUTPUT` record: `status` (`ok`, `partial`, `failed`),
`profiles`, and error rows by `error_code`.

### What it is good for

- Creator and influencer discovery: start from one creator, get 50 like them.
- Competitor mapping: the accounts Instagram groups with a brand.
- Ranking a niche: similar accounts with follower and post counts when details are on.
- Growing a seed list one hop at a time: feed the results back in as seeds.

### Limits

- Instagram decides the list: up to about 50 accounts per seed, and none for many small or new accounts (`no_data`).
- The list is Instagram's logged-out suggestion. It can differ from what a logged-in user sees.
- Profile pictures are 150 x 150 and their links expire after some days.
- Bio, website links and following count are not returned.

### Errors

Every error row is free. `status` is `error`, `error_code` names the reason, `error` says what to do.

| `error_code` | Meaning | Retry helps |
|---|---|---|
| `missing_input`, `invalid_input` | No usernames, or an entry is not a username or profile link | No, fix the input |
| `not_found` | Instagram has no account by this name | No |
| `access_restricted` | Instagram shows this account to logged-in users only, for example an age limit (the row quotes Instagram's notice) | No |
| `no_data` | The account exists; Instagram suggests no related profiles for it | No |
| `blocked`, `rate_limited` | Instagram refused the request | Yes, later |
| `timeout`, `network_error`, `proxy_error` | The request did not get through | Yes |
| `site_changed` | Instagram's answer changed shape; the Actor needs an update | No |
| `partial_result` | A returned row whose followers and post count could not be read; the details add-on is not charged for it | Yes |
| `cost_limit` | Your maximum charge for the run is reached | Raise the limit |
| `run_timeout` | The run stopped before its time limit | Yes, with more time |
| `internal_error` | A bug in this Actor | Maybe; please report it |

### FAQ

**Is it legal?** The Actor reads only what Instagram shows to any visitor without an account. You are responsible for
how you use the data; check the laws that apply to you, and Instagram's terms.

**Personal data.** Rows describe public accounts and can include personal data (names, bios). Collect it only for a
lawful purpose.

**Is this affiliated with Instagram?** No.

# Changelog

This Actor's version history is a separate document: https://apify.com/data-for-agents/instagram-related-profiles-scraper/changelog.md

# Actor input Schema

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

Instagram usernames to find similar accounts for: mkbhd, @mkbhd or https://www.instagram.com/mkbhd/. Up to 500. Each seed gives up to about 50 related profiles.

## `maxResultsPerProfile` (type: `integer`):

The most related profiles to return for each seed, in Instagram's order (default 50). Instagram suggests up to about 50; small accounts can have none.

## `includeProfileDetails` (type: `boolean`):

Also read each related profile's follower count and number of posts. A paid add-on per filled profile. Off: username, name, verified, private, picture and link only.

## Actor input object example

```json
{
  "usernames": [
    "mkbhd"
  ],
  "maxResultsPerProfile": 10,
  "includeProfileDetails": false
}
```

# Actor output Schema

## `profiles` (type: `string`):

Every row: related profiles (status ok) and free notes (status error).

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

status (ok, partial, failed), profiles returned, error rows by error_code.

# 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": [
        "mkbhd"
    ],
    "maxResultsPerProfile": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("data-for-agents/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": ["mkbhd"],
    "maxResultsPerProfile": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("data-for-agents/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": [
    "mkbhd"
  ],
  "maxResultsPerProfile": 10
}' |
apify call data-for-agents/instagram-related-profiles-scraper --silent --output-dataset

```

## MCP server setup

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