# Instagram Similar Accounts Scraper (`apt_marble/instagram-similar-accounts-scraper`) Actor

Export the accounts Instagram itself suggests as similar to any public profile - the same Suggested-for-you list the platform shows its own users - as clean structured JSON, streamed live as each row lands.

- **URL**: https://apify.com/apt_marble/instagram-similar-accounts-scraper.md
- **Developed by:** [Hamza](https://apify.com/apt_marble) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 90.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 similar account collecteds

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 Similar Accounts Scraper

Get the accounts Instagram itself suggests as **similar to any public profile** - the same "Suggested for you" list Instagram shows its own users - delivered as clean, structured JSON.

Instagram's suggestions are one of the strongest competitor-research and audience-expansion signals on the platform: they are the accounts Instagram's own recommendation system considers closest to your target. This actor collects them for one profile or a whole list in a single run.

### Why this scraper

- **Instagram's own recommendation data** - not a lookalike guess; the platform's actual similarity graph.
- **Bulk seeds** - one profile or a hundred in a single run, each suggestion tagged back to its source.
- **Live streaming results** - rows appear as they are found; start reading while the run continues.
- **Resilient by design** - rate limits are handled with automatic pauses and retries; if Instagram holds the limit, you keep a clean partial result with a clear status instead of a failed run.
- **Pay only for results** - pay-per-event pricing: one small charge per suggested account delivered.

### What you get

One dataset row per suggested account:

| Field | Description |
|-------|-------------|
| `username` | Suggested account's username |
| `fullName` | Display name |
| `userId` | Numeric Instagram user id - stable key for joins and dedupe |
| `isVerified` | Verified badge |
| `profilePic` | Profile picture URL (may expire - download if you need to keep it) |
| `profileUrl` | Direct link to the suggested profile |
| `socialContext` | Reserved - currently always empty |
| `similarTo` / `similarToUrl` | The seed profile this suggestion came from |

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| **Profiles** | list | *(required)* | Profile links, @handles, or bare usernames - e.g. `nasa` or `https://www.instagram.com/nasa/` |
| **Maximum similar accounts per profile** | number | 30 | Stop after this many suggestions per profile |

### Example output

```json
{
    "username": "esa",
    "fullName": "European Space Agency",
    "isVerified": true,
    "profilePic": "https://scontent.cdninstagram.com/v/t51.2885-19/...",
    "profileUrl": "https://www.instagram.com/esa/",
    "similarTo": "nasa",
    "similarToUrl": "https://www.instagram.com/nasa/",
    "userId": "234470765",
    "socialContext": null,
    "scrapedAt": "03-11-2026 21:07:10"
}
```

### Ideas

- Map a competitor's neighborhood: who else their audience follows
- Build lookalike seed lists for outreach, influencer discovery, or ad targeting
- Discover creators in a niche starting from one known name
- Track how Instagram's understanding of a brand or topic shifts over time - re-run periodically and diff

### Honest limits

- **Public profiles only.** Unknown, private or unavailable profiles are skipped with a clear log line - the run keeps going with the rest of your list.
- Suggestions come from Instagram's own recommendation system and are personalized signals - the list for a profile can change over time and between viewers. That is the nature of the data, not a bug.
- Instagram offers a bounded suggestion list per profile; the actor collects everything Instagram offers.
- **Rate limits are real.** Heavy use can hit Instagram's limits; the actor pauses and retries automatically, then returns everything collected so far with a clear status.

### FAQ

**Do I need an Instagram account?**
No. Paste profile names or links and run.

**How many suggestions does a profile have?**
It varies - Instagram decides. The actor collects everything offered, up to your per-profile limit.

**Why did the list change since last week?**
Instagram regenerates suggestions continuously. Re-run on a schedule to track the changes.

**What formats can I export?**
JSON, CSV, Excel, XML, or straight into your pipeline via the Apify API.

# Actor input Schema

## `profiles` (type: `array`):

Instagram profiles to find similar accounts for: profile links (https://www.instagram.com/nasa/), @handles, or bare usernames.

## `maxSimilarPerProfile` (type: `integer`):

Stop after this many suggested accounts per profile.

## Actor input object example

```json
{
  "profiles": [
    "https://www.instagram.com/nasa/"
  ],
  "maxSimilarPerProfile": 40
}
```

# Actor output Schema

## `dataset` (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 = {
    "profiles": [
        "https://www.instagram.com/nasa/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/instagram-similar-accounts-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 = { "profiles": ["https://www.instagram.com/nasa/"] }

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/instagram-similar-accounts-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 '{
  "profiles": [
    "https://www.instagram.com/nasa/"
  ]
}' |
apify call apt_marble/instagram-similar-accounts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_marble/instagram-similar-accounts-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/DP8DRhhmhAtTwtkXI/builds/ffHZKFwBNxrkYJEYV/openapi.json
