# Instagram Related Profiles (Similar Accounts) (`locaihost/instagram-related-profiles`) Actor

The accounts Instagram suggests next to any public profile, in its order, with name and verified badge. Add follower counts and bio, filter, or get only new ones. Read signed in through our own account on paid plans: no login or cookies needed. $2.50 per 1,000 profiles.

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

## Pricing

from $1.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.
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 (Similar Accounts)

Get the accounts Instagram suggests next to any public profile ("Suggested for you"), in Instagram's own order, as clean rows. Add follower counts and bio, filter by followers, verified badge or keywords, and run it on a schedule to get only newly suggested accounts.

**$2.50 per 1,000 related profiles.** With follower counts and bio: $5.00 per 1,000. Private, missing and failed profiles are free.

Did it help? A short rating on the Store helps other people find it.

### How do I start?

Paste one or more usernames or profile links and press Start:

```json
{
    "usernames": ["natgeo"]
}
```

On a paid Apify plan that is all you need: the run signs in with our own Instagram account. On the free plan, paste your own session cookie (see [Signed-in access](#signed-in-access)).

### What data do I get?

One row per related account, for each profile you entered:

```json
{
    "type": "related-profile",
    "sourceUsername": "natgeo",
    "position": 1,
    "username": "natgeotravel",
    "fullName": "National Geographic Travel",
    "isVerified": true,
    "url": "https://www.instagram.com/natgeotravel/",
    "profilePicUrl": "https://scontent.cdninstagram.com/...",
    "id": "13299427",
    "enriched": true,
    "followersCount": 41800000,
    "followingCount": 200,
    "biography": "Travel the world with National Geographic.",
    "externalUrl": "https://www.nationalgeographic.com/travel",
    "access": "logged-in",
    "input": "natgeo",
    "scrapedAt": "2026-11-14T09:12:44.512Z"
}
```

- `sourceUsername` is the profile you entered and `position` is where Instagram placed the account in its list (1 = first).
- `followersCount`, `followingCount`, `biography`, `externalUrl` and `bioLinks` are filled when **Add follower counts and bio** is on (`enriched: true`).
- Email addresses and phone numbers are removed from names and bios.
- Instagram usually suggests 30 to 80 accounts per profile.

### Which rows are free?

A profile that can't be read gives one free row with `type: "unavailable"` and a plain reason: private account, not found, or needs sign-in (free plan with no cookie, or our account busy or used up for the day). Private and teen accounts in Instagram's suggestions are never returned and never charged; the run summary counts them.

Each run also writes a free summary to the key-value store (`OUTPUT`): profiles read, rows returned, accounts hidden, filtered or skipped as already seen.

### What makes it different?

| | This Actor |
|---|---|
| Instagram's order kept | Every row has its `position` |
| Many profiles at once | Accounts suggested for several of your profiles come back once, with the first profile that suggested them |
| Only new accounts | **Only accounts not returned before** skips accounts an earlier run of the same input already returned, so a weekly schedule gives only fresh suggestions. Skipped accounts are not charged |
| Filters before you pay | Verified only, minimum and maximum followers, keywords, skip list. Filtered accounts are not charged |
| Follower counts optional | Plain rows are cheap; turn on follower counts and bio only when you need them |
| No account needed on paid plans | The signed-in request goes through our own account |

### How much does it cost?

| Event | Price per 1,000 |
|---|---|
| Related profile | $2.50 |
| Related profile with follower counts and bio | $5.00 |

Each row is charged once, as one or the other, never both. Paid Apify plans get the usual volume discounts. Free rows (private, not found, needs sign-in), hidden accounts, filtered accounts and accounts skipped as already seen cost nothing. Set a maximum charge on the run and it stops cleanly when it is reached.

### Signed-in access

Instagram shows suggested accounts only to signed-in visitors, so each profile needs one signed-in request.

**With our account (paid Apify plans, no cookie needed):** leave **Use our account** on. Our account is shared by every user, so it is rationed:

- one run at a time, within a daily limit for all users together (it resets at midnight UTC);
- a run that finds it busy, used up or paused returns a free "needs sign-in" row for each profile and says so in its status message;
- if Instagram asks our account to verify itself or slow down, it pauses for everyone until we have checked it. Your run still ends successfully.

**With your own account (any plan):** paste the `sessionid` cookie of your own Instagram account into **Your Instagram session cookie**. Yours is used instead of ours, with no shared daily limit.

**How to copy your `sessionid`:** sign in at instagram.com in a desktop browser, open the developer tools (F12), go to Application (Chrome, Edge) or Storage (Firefox), then Cookies, `https://www.instagram.com`, and copy the value of the cookie named `sessionid`. Paste just that value. A whole cookie header works too; only `sessionid`, `csrftoken` and `ds_user_id` are kept, the rest is dropped. Signing out of instagram.com ends that session, so copy a fresh value after you sign in again.

**Account safety:** one request at a time, at least 2 seconds apart plus a random extra second, all through one address. If Instagram asks the account to verify itself, the signed-in part stops at once, rows already collected are kept, and the run ends successfully with a message telling you what to do. Nothing ever tries to pass a challenge for you.

**We don't store your cookie.** It is a secret input field (encrypted by Apify), kept in memory for that run only, sent only to instagram.com, and removed from every log line, row, run summary and status message.

**Your account, your risk.** Use only your own account. Instagram's terms limit automated access, and Instagram may ask the account to verify itself or restrict it; that risk is yours.

### Inputs

| Field | What it does | Default |
|---|---|---|
| Usernames or profile links | `natgeo`, `@natgeo` or `https://www.instagram.com/natgeo/`, one per line | `natgeo` |
| Related accounts per profile | Most rows per entered profile, 1 to 100 | 50 |
| Add follower counts and bio | Reads each related account's own public profile | off |
| Verified accounts only | Keep only accounts with the badge | off |
| Minimum / maximum followers | Follower range; setting either turns on follower counts | no limit |
| Keywords | Keep accounts whose username, name or bio contains one of these words | none |
| Skip these accounts | Usernames or links that never come back | none |
| Only accounts not returned before | For schedules: skip accounts returned by an earlier run of this input | off |
| Use our account | Paid plans: sign in with our account | on |
| Your Instagram session cookie | Your own `sessionid`; takes priority | empty |
| Max rows | Stop after this many charged rows in total (0 = no limit) | 0 |

### Can I run it on a schedule?

Yes. Save your input as a task, turn on **Only accounts not returned before**, and add a weekly schedule. Each run returns only the accounts Instagram newly suggests for your profiles, which is a cheap way to watch who shows up next to you or your competitors. The memory lives in a named key-value store in your own Apify account.

### What can go wrong?

- **"Needs sign-in" rows on the free plan:** paste your own session cookie, or use a paid plan.
- **Our account busy or used up:** run again later, or paste your own cookie.
- **Fewer rows than expected:** Instagram suggests fewer accounts for small profiles, and private or teen accounts are left out.
- **Bad input** (an empty list, minimum followers above maximum) ends successfully with a message saying what to fix, and costs nothing beyond the start.

### Can AI agents use it?

Yes. It is a pay-per-event Actor with a small input, so agents can call it through the [Apify MCP server](https://apify.com/apify/actors-mcp-server) and pay per row. A default run returns natgeo's related accounts in well under a minute.

### Is it legal?

This Actor reads public accounts only and returns no messages, follower lists, stories or private accounts. Email addresses and phone numbers are removed. You are responsible for how you use the results: follow Instagram's terms and the data-protection laws that apply to you.

# Changelog

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

# Actor input Schema

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

Instagram usernames (natgeo, @natgeo) or profile links (https://www.instagram.com/natgeo/), one per line. Each returns the accounts Instagram suggests next to it, usually 30 to 80.

## `maxRelatedPerProfile` (type: `integer`):

Most rows per entered profile, in Instagram's order. Instagram usually suggests 30 to 80.

## `enrichRelated` (type: `boolean`):

Also reads each related account's own public profile: followers, following, bio, website and bio links. Slower, and charged as an enriched related profile instead of a plain one (never both).

## `relatedOnlyVerified` (type: `boolean`):

Keep only accounts with the verified badge.

## `relatedMinFollowers` (type: `integer`):

Keep only accounts with at least this many followers. 0 = no minimum. Setting a follower limit turns on "Add follower counts and bio".

## `relatedMaxFollowers` (type: `integer`):

Keep only accounts with at most this many followers, for example 100000 to find smaller creators. 0 = no maximum.

## `relatedKeywords` (type: `array`):

Keep only accounts whose username, name or bio (bio only with follower counts on) contains one of these words. Not case-sensitive.

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

Usernames or links that never come back, for example accounts you already know.

## `onlyNew` (type: `boolean`):

Skip related accounts this input returned in an earlier run, so a weekly schedule gives only newly suggested accounts. Skipped accounts are not charged.

## `useOurAccount` (type: `boolean`):

On a paid Apify plan, the one signed-in request per profile goes through our own Instagram account. It is shared by everyone, so it has a daily limit and serves one run at a time: when it is busy or used up for the day, each profile gets a free row saying so. Your own session cookie below takes priority if you give one.

## `sessionCookie` (type: `string`):

The value of the sessionid cookie from your own Instagram account, signed in at instagram.com (see the README for how to copy it). We never store it: it is kept in memory for this run only, sent only to instagram.com, and removed from every log and message.

## `maxResults` (type: `integer`):

Stop after this many charged rows in total. 0 means no limit (the run's maximum charge still applies).

## `relatedProfiles` (type: `boolean`):

Set by this listing.

## `maxPostsPerProfile` (type: `integer`):

Set by this listing.

## `listing` (type: `string`):

Set by this listing.

## Actor input object example

```json
{
  "usernames": [
    "natgeo",
    "@nike",
    "https://www.instagram.com/nasa/"
  ],
  "maxRelatedPerProfile": 50,
  "enrichRelated": false,
  "relatedOnlyVerified": false,
  "relatedMinFollowers": 0,
  "relatedMaxFollowers": 0,
  "relatedKeywords": [
    "travel",
    "photo"
  ],
  "excludeUsernames": [
    "bbcnews"
  ],
  "onlyNew": false,
  "useOurAccount": true,
  "maxResults": 0,
  "relatedProfiles": true,
  "maxPostsPerProfile": 0,
  "listing": "related"
}
```

# Actor output Schema

## `related` (type: `string`):

One row per suggested account: the profile it was suggested next to, Instagram's position, username, name, verified, and follower counts and bio when added.

## `full` (type: `string`):

Every field of every row, including free rows and any posts.

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

Counts per profile, accounts skipped by filters or as already returned, free rows by reason and cost.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/instagram-related-profiles").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"] }

# Run the Actor and wait for it to finish
run = client.actor("locaihost/instagram-related-profiles").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"
  ]
}' |
apify call locaihost/instagram-related-profiles --silent --output-dataset

```

## MCP server setup

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

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/QaHrgMKws0iagm4gu/builds/dXjJp1ISFZD63t1yw/openapi.json
