# Instagram Related Profiles Finder V2 (`fetchfinch/similar-instagram-accounts-finder-v2`) Actor

Find related Instagram accounts for a public profile. Accepts usernames, profile URLs, and numeric user IDs.

- **URL**: https://apify.com/fetchfinch/similar-instagram-accounts-finder-v2.md
- **Developed by:** [Fetch Finch](https://apify.com/fetchfinch) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 related instagram 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Instagram Related Profiles Finder V2

Find related Instagram accounts for a public profile. Enter a username, profile URL, or numeric Instagram user ID and receive a ranked recommendation list in a clean Apify dataset.

This Actor performs depth-1 discovery only: it returns the profiles recommended for the input account and does not recursively expand those recommendations.

### Example

Run the ready-made example for Cristiano Ronaldo:

[Similar Instagram Accounts for Cristiano Ronaldo](https://apify.com/fetchfinch/similar-instagram-accounts-finder-v2/examples/similar-instagram-accounts-for-cristiano-ronaldo)

If you only need 10 recommendations and the additional fields from the earlier version, try [Similar Instagram Accounts Finder V1](https://apify.com/fetchfinch/similar-instagram-accounts-finder).

### Input

The `username` field accepts any of these forms:

```json
{ "username": "cristiano" }
```

- `cristiano`
- `@cristiano`
- `https://www.instagram.com/cristiano/`
- A numeric Instagram user ID such as `18527`

Handles and profile URLs are resolved to a numeric Instagram ID from the public profile page. Numeric IDs skip that lookup. No Instagram login or customer credentials are required.

### Output

The default dataset contains one item per related profile, preserving recommendation order. Each item includes:

- `rank`, `username`, `fullName`, and `userId`
- `profileUrl` and `profilePicUrl`
- `isVerified` and `isPrivate`
- Viewer relationship flags available for the input profile
- `sourceUsername`, `sourceUserId`, and `discoveryType`
- `retrievedAt` in UTC

The profile image URL may expire because it is a signed CDN URL. The `SUMMARY` key-value record contains the resolved input, output count, request count, and retrieval timestamp.

### Results

The Actor returns the related accounts available for the input profile in ranked order. Results can change over time, and private, unavailable, or restricted profiles may return fewer results.

Each run retrieves the related profiles for the input account. A handle or profile URL may require an additional public profile-page lookup to resolve its numeric ID; numeric IDs avoid that extra lookup. Retries can increase the request count shown in `SUMMARY`.

### Pricing

Pricing is per related-profile dataset item, with the run's small platform overhead included. A typical run returns dozens of profiles, and only returned items are charged.

### Data and usage notes

Use this Actor only with data and workloads you are permitted to process. This Actor is not affiliated with or endorsed by Instagram.

### API usage

The Actor can also be run through the Apify API or client libraries. The input is a JSON object containing the required `username` string, and results are available in the run's default dataset.

# Actor input Schema

## `username` (type: `string`):

Enter an Instagram username, profile URL, or numeric Instagram user ID. Handles are resolved to IDs from the public profile HTML before the related-profiles request.

## Actor input object example

```json
{
  "username": "cristiano"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("fetchfinch/similar-instagram-accounts-finder-v2").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("fetchfinch/similar-instagram-accounts-finder-v2").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 '{}' |
apify call fetchfinch/similar-instagram-accounts-finder-v2 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fetchfinch/similar-instagram-accounts-finder-v2"
        }
    }
}

```

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/yRcLoQ98E3R6C4X1i/builds/QD7WUhdPAWZn4ME1g/openapi.json
