Instagram Related Users Profiles Scraper. Similar Accounts AYML avatar

Instagram Related Users Profiles Scraper. Similar Accounts AYML

Pricing

from $1.00 / 1,000 relateds

Go to Apify Store
Instagram Related Users Profiles Scraper. Similar Accounts AYML

Instagram Related Users Profiles Scraper. Similar Accounts AYML

Discover related Instagram profiles and similar accounts from seed handles or profile URLs, chain discovery across multiple levels, and optionally enrich with follower counts, bio details, and business contact info. Also known as Suggested Accounts, AYML or "Accounts You Might Like" carousels.

Pricing

from $1.00 / 1,000 relateds

Rating

0.0

(0)

Developer

karamelo

karamelo

Maintained by Community

Actor stats

1

Bookmarked

3

Total users

1

Monthly active users

2 months ago

Last modified

Categories

Features

Limited permissions

Share

Overview

Instagram Related Users Profiles Scraper automatically discovers accounts connected or similar to any seed Instagram profile — also known as Suggested Accounts, AYML or "Accounts You Might Like" carousels. Instead of relying on manual keyword searches or broad hashtag exploration, this Actor harnesses Instagram's algorithmic suggestion graph to surface relevant creators, competitors, partner brands, and industry peers with high audience overlap.

Whether you supply a single handle, multiple profile handles, or complete profile URLs, the Actor extracts immediate suggestion sets and can follow related accounts across chained discovery depths of up to five consecutive levels. Discovered accounts can be exported as clean tabular profiles, supplemented with network connection edges for graph visualization, or enriched with complete bio details, follower counts, verified badges, and public contact information.

Why Use This Actor?

  • Algorithmic Audience Relevance — Discover accounts that Instagram itself considers closely related to your seed profiles, capturing organic audience clusters and niche communities that keyword searches often miss.
  • Multi-Level Chained Exploration — Expand discovery across up to 5 consecutive depth levels with configurable branch limits per step, enabling systematic mapping of entire vertical ecosystems.
  • Configurable Worker Concurrency — Concurrently resolves seed profiles and enriches discovered candidate accounts using configurable worker concurrency (maxConcurrency), maximizing throughput while adhering to sticky session proxy boundaries.
  • Flexible Profile Enrichment — Optionally enrich discovered accounts with follower metrics, biography texts, external website links, and public business details such as business category, contact email, and phone number when available.
  • Connection Graph Export — Generate structured network edge records (from, to, and depth) alongside account records to facilitate network graph visualization in tools like Gephi, Cytoscape, or Neo4j.
  • Flexible Input Normalization — Accepts plain handles (such as natgeo), handles with @ prefixes (@natgeo), or direct Instagram profile URLs (https://www.instagram.com/natgeo/).
  • Precision Filtering Controls — Filter candidate accounts by verification status (verifiedOnly), privacy settings (skipPrivate), and minimum or maximum follower thresholds to eliminate irrelevant accounts before saving.
  • Automatic Residential Proxy with Sticky Sessions — Employs Apify residential proxies automatically with sticky sessions that persist per runner and rotate dynamically on failures or rate limits for maximum stability.
  • Clean Structured Outputs — Exports comprehensive JSON and CSV records directly to your default Apify dataset, ready for analysis in spreadsheets, BI dashboards, or CRM pipelines.

Target Audiences and Practical Use Cases

1. Influencer Discovery and Creator Outreach

Marketers, brand managers, and agency talent scouts frequently face the challenge of discovering relevant micro-influencers and niche content creators. By entering several known brand ambassadors or benchmark creators as seeds, the Actor maps related profiles that share an overlapping follower base. Enabling profile enrichment allows outreach teams to capture verified emails and external portfolio links for immediate outreach.

2. Competitive Intelligence and Market Research

Market researchers can input key competitors to discover previously unknown market entrants, subsidiary accounts, regional partner handles, and co-marketing collaborators. Chaining discovery to depth 2 or 3 reveals how industry leaders are interlinked within the broader social ecosystem.

3. Lead Generation and B2B Prospecting

Sales development representatives targeting specific verticals (such as boutique fitness studios, specialty coffee roasters, or indie beauty brands) can seed the Actor with top industry brands. Enabling full profile details extracts publicly listed business emails, telephone numbers, and categories for prospecting and qualification.

4. Audience and Network Graph Analysis

Data scientists, academic researchers, and social network analysts can leverage the connection graph export option to model relationship topologies, identify influential community hubs, and analyze structural clustering within digital subcultures.

Discovery Modes Explained

The Actor operates in two distinct exploration modes depending on the chainDepth parameter:

Flat Discovery (chainDepth: 0)

In flat mode, the Actor inspects only the immediate suggestions surfaced directly by the provided seed profiles (depth 1). Each seed account is processed independently, and up to maxItem matching accounts are collected. This mode is fast, focused, and ideal when you simply need a list of immediate peers for a known set of targets.

Chained Multi-Level Discovery (chainDepth >= 1)

In chained mode, discovery executes as a breadth-first network traversal. After retrieving the initial suggestions for each seed, the Actor enqueues newly discovered accounts and explores their subsequent suggestions at the next depth level (depth 2, depth 3, etc., up to depth 5). The parameter maxItemPerLevel determines how many unique suggestions are branched from each account at each step, preventing exponential runaway while allowing broad niche mapping. The maxItem limit acts as a global cap across all seeds and levels.

Getting Started

Quick Start via Apify Console

  1. Navigate to the Actor page on the Apify Store.
  2. Enter one or more Instagram usernames or profile URLs into the Username(s) or Profile URLs field.
  3. Choose your desired discovery mode by adjusting Chain Depth (leave at 0 for direct suggestions or set to 1 or 2 for network expansion).
  4. Decide whether you want full bio and follower statistics by checking Enrich Profiles.
  5. Click Start to run the scraper.
  6. Once completed, review the discovered accounts in the Dataset tab and export them as JSON, CSV, or Excel.

Example 1: Direct Similar Accounts Discovery (Flat Mode)

Find up to 20 immediate suggestions for a single seed account:

{
"username": ["natgeo"],
"chainDepth": 0,
"maxItem": 20,
"enrichProfile": false,
"verifiedOnly": false,
"skipPrivate": true
}

Example 2: Multi-Level Niche Exploration with Graph Export

Explore two levels outward from a seed account, following up to 5 suggestions per profile, and exporting network connection edges:

{
"username": ["https://www.instagram.com/nasa/"],
"chainDepth": 2,
"maxItemPerLevel": 5,
"maxItem": 50,
"enrichProfile": false,
"exportGraph": true
}

Example 3: Lead Generation with Profile Enrichment & High Concurrency

Discover similar brand accounts and enrich each with follower counts, bio details, and public contact information using parallel worker concurrency:

{
"username": ["patagonia"],
"chainDepth": 1,
"maxItemPerLevel": 5,
"maxItem": 25,
"enrichProfile": true,
"maxConcurrency": 10,
"minFollowers": 10000
}

Input Parameters Reference

The Actor accepts the following input parameters:

ParameterTypeDefaultRequiredDescription
usernameArray of strings["natgeo"]YesList of seed Instagram usernames, @handles, or profile URLs.
chainDepthInteger0NoDepth levels to explore outward from seeds (0 for immediate suggestions, up to 5 for multi-step exploration).
maxItemPerLevelInteger5NoMaximum number of related accounts to follow per account at each chain level (range: 1 to 20).
maxItemInteger100NoMaximum total accounts to collect (0 for unlimited; when enrichment is active, defaults to 100).
maxConcurrencyInteger10NoMaximum number of concurrent requests for seed resolution and profile enrichment (range: 1 to 50).
enrichProfileBooleanfalseNoWhen enabled, fetches complete profile data including follower counts, biographies, and bio links.
verifiedOnlyBooleanfalseNoRetains only accounts carrying the verified blue badge.
skipPrivateBooleanfalseNoExcludes private accounts from the final results.
minFollowersInteger0NoMinimum follower threshold required to retain an account. Automatically enables profile enrichment.
maxFollowersInteger0NoMaximum follower threshold required to retain an account. Automatically enables profile enrichment.
exportGraphBooleanfalseNoEmits graph edge records (_type: 'graph_edge', from, to, depth) for connection modeling.

Output Data Structure

The Actor pushes records incrementally to the default Apify dataset. Two types of records may appear:

1. Standard Account Discovery Record

When enrichProfile is disabled, the record captures core identification and discovery lineage:

{
"id": "378353537",
"username": "animalplanet",
"full_name": "Animal Planet",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent.cdninstagram.com/pic.jpg",
"discovered_from": "natgeo",
"depth": 1,
"chain_path": ["natgeo"],
"enriched": false,
"is_business_account": null,
"business_category_name": null,
"business_email": null,
"business_phone_number": null,
"business_contact_method": null,
"business_address_json": null,
"is_partial": false,
"partial_reason": null,
"biography": null,
"bio_links": null,
"external_url": null,
"followers": null,
"following": null
}

2. Enriched Account Record

When enrichProfile is enabled, full audience metrics and biography details are attached:

{
"id": "378353537",
"username": "animalplanet",
"full_name": "Animal Planet",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent.cdninstagram.com/pic.jpg",
"discovered_from": "natgeo",
"depth": 1,
"chain_path": ["natgeo"],
"enriched": true,
"biography": "Keeping the childhood joy and wonder of animals alive.",
"bio_links": [
{
"url": "http://puppybowl.com/",
"title": "",
"link_type": "external"
}
],
"external_url": "http://puppybowl.com/",
"followers": {
"count": 5389682
},
"following": {
"count": 863
},
"is_business_account": true,
"business_category_name": "Media/News Company",
"business_email": "contact@animalplanet.com",
"business_phone_number": null,
"business_contact_method": "EMAIL",
"business_address_json": null,
"is_partial": false,
"partial_reason": null
}

3. Graph Edge Record

When exportGraph is set to true, the connection topology is emitted as individual edge rows:

{
"_type": "graph_edge",
"from": "natgeo",
"to": "animalplanet",
"depth": 1
}

Dataset Fields Description

Field NameTypeDescription
usernameStringAccount handle on Instagram.
full_nameStringDisplay name shown on the user's profile.
idStringNumeric user identifier assigned by Instagram.
is_privateBooleanIndicates whether the account privacy is restricted.
is_verifiedBooleanTrue if the account possesses the verified blue badge.
profile_pic_urlStringDirect CDN link to the profile avatar image.
discovered_fromStringParent handle from which this account was suggested.
depthIntegerExploration level at which the account was uncovered.
chain_pathArray of stringsTraversal sequence of accounts leading from seed to this account.
enrichedBooleanTrue if full profile details were fetched.
biographyStringBiography content published on the profile.
bio_linksArray of objectsLinks listed within the profile biography.
external_urlStringPrimary external website URL from the profile.
followersObjectObject containing the total follower count.
followingObjectObject containing the total following count.
is_business_accountBooleanTrue if registered as a professional business account.
business_category_nameStringPublic business category selected by the account.
business_emailStringPublic contact email address if published.
business_phone_numberStringPublic telephone contact number if published.
business_contact_methodStringSurfaced action button type (e.g., "EMAIL", "CALL").
business_address_jsonStringSerialized JSON containing street address and coordinates.
is_partialBooleanFlag indicating if certain upstream business fields were unavailable.
partial_reasonStringDiagnostic reason code for partial records.
_typeStringPresent on edge records ("graph_edge").
fromStringSource handle in a network edge connection.
toStringTarget handle in a network edge connection.

Practical Workflow Tutorials

Workflow 1: Building a Micro-Influencer Seed List

Objective: Identify 50 active, verified or high-credibility accounts similar to an established authority in your niche, filtering out inactive accounts.

  1. Seed Selection: Identify 1 to 3 benchmark accounts representing your desired niche tone and audience.
  2. Actor Configuration:
    • username: ["seed_creator_handle"]
    • chainDepth: 1
    • maxItemPerLevel: 10
    • maxItem: 50
    • enrichProfile: true
    • minFollowers: 5000
    • maxFollowers: 150000
    • skipPrivate: true
  3. Execution & Analysis: Run the Actor. Filter the resulting dataset by followers.count and sort by engagement relevance. Examine bio_links to confirm portfolio or collaboration readiness.
  4. Outcome: A qualified, outreach-ready spreadsheet of targeted creators with verified follower statistics.

Workflow 2: Exporting and Visualizing a Niche Ecosystem Graph

Objective: Map out the cluster relationships between 10 major brands and their overlapping peers to detect dominant central influencers.

  1. Seed Selection: Compile a list of 5 industry competitors or brand handles.
  2. Actor Configuration:
    • username: ["brand1", "brand2", "brand3", "brand4", "brand5"]
    • chainDepth: 2
    • maxItemPerLevel: 4
    • maxItem: 150
    • enrichProfile: false
    • exportGraph: true
  3. Graph Extraction: Export the dataset in CSV format. Separate rows where _type == 'graph_edge' into an edge list file containing from, to, and depth.
  4. Visualization: Import the edge list into Gephi or network visualization software. Calculate degree centrality to identify accounts that appear as mutual suggestions across multiple competitors.

Integration with Apify API and SDKs

You can integrate this Actor into existing Node.js, Python, or command-line automation pipelines using the official Apify Client libraries.

Node.js Integration Example

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({
token: process.env.APIFY_TOKEN,
});
const input = {
username: ['natgeo'],
chainDepth: 1,
maxItemPerLevel: 5,
maxItem: 20,
enrichProfile: true,
skipPrivate: true,
};
// Run the actor and wait for completion
const run = await client.actor('karamelo/instagram-related-users-profiles-scraper').call(input);
// Fetch resulting dataset items
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Discovered ${items.length} accounts:`);
for (const item of items) {
if (item.username) {
console.log(`- @${item.username}: ${item.full_name} (${item.followers?.count || 0} followers)`);
}
}

Python Integration Example

import os
from apify_client import ApifyClient
client = ApifyClient(os.getenv('APIFY_TOKEN'))
run_input = {
'username': ['natgeo'],
'chainDepth': 0,
'maxItem': 25,
'enrichProfile': False,
'exportGraph': True,
}
run = client.actor('karamelo/instagram-related-users-profiles-scraper').call(run_input=run_input)
dataset_items = client.dataset(run['defaultDatasetId']).list_items().items
print(f"Collected {len(dataset_items)} total records.")
for record in dataset_items:
if record.get('_type') == 'graph_edge':
print(f"Edge: {record['from']} -> {record['to']}")
else:
print(f"User: @{record.get('username')} - {record.get('full_name')}")

REST API Example with cURL

curl --request POST \
--url "https://api.apify.com/v2/acts/karamelo~instagram-related-users-profiles-scraper/runs?token=$APIFY_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"username": ["natgeo"],
"chainDepth": 0,
"maxItem": 15,
"enrichProfile": false
}'

Export and Data Pipeline Integrations

The default dataset produced by this Actor can be connected to external tools:

  • Google Sheets & Excel — Set up an Apify Google Sheets integration or use the permanent dataset CSV URL to automatically sync new results into a live spreadsheet.
  • Airtable & Notion — Pipe discovered accounts and contact details directly into customer relationship management bases using Apify Webhooks or Make/Zapier automations.
  • Cloud Storage & Data Warehouses — Push collected JSON payloads into AWS S3, Google Cloud Storage, or Snowflake for longitudinal community tracking and machine learning models.

Operational Tips and Best Practices

  1. Start with Conservative Limits — When testing chained discovery (chainDepth >= 1), start with a low maxItemPerLevel (such as 3 to 5) and a moderate maxItem limit (such as 25 to 50). Because chained expansion is multiplicative, higher depths can quickly traverse hundreds of accounts.
  2. Deduplication is Automatic — Seed accounts are marked as visited before discovery begins so they are never returned as suggestions of themselves or other seeds. Accounts discovered through multiple paths are attributed to the earliest path that reached them and recorded only once.
  3. Use Follower Filters Strategically — Remember that follower counts are only available when a profile is enriched. If you specify minFollowers or maxFollowers, profile enrichment will be automatically activated.
  4. Built-in Sticky Residential Proxy — The Actor automatically leverages Apify US residential proxies with sticky session persistence. If an individual request encounters a temporary network issue or rate limit, the Actor rotates to a fresh residential IP session automatically, ensuring optimal uptime without requiring user proxy configuration.
  5. Batch Profiling Efficiency — When running high-volume discovery jobs with enrichProfile: true, profile requests are paced with polite rate-limiting intervals to avoid sudden platform throttling and maintain consistent progress.

Limitations and Platform Considerations

  • Algorithmic Dynamic Nature — The suggested accounts list is curated dynamically by Instagram. Suggestions may vary over time depending on account activity, platform updates, geographic affinity, and algorithmic adjustments.
  • Private Profiles — Suggestions for private accounts are included unless skipPrivate is enabled. However, private accounts do not display extended biographies, post grids, or public contact information.
  • Partial Contact Availability — Business contact fields (business_email, business_phone_number, and business_category_name) appear only if the account owner has explicitly registered as an Instagram professional account and published those details publicly.
  • Maximum Depth Cap — To maintain operational reliability and prevent infinite recursive traversals, chainDepth is capped at a maximum of 5.
  • No Login Required — This Actor operates without requiring your personal Instagram credentials or cookies, preserving account security and preventing account suspension risks.

Troubleshooting Guide

SymptomProbable CauseRecommended Action
No accounts discovered for a seedSeed username is misspelled or has no public suggestions availableVerify the handle on Instagram. Some newly created or inactive accounts have no suggested peers.
Run finishes with fewer accounts than maxItemReached the end of available unique suggestions or applied strict filtersIncrease chainDepth to expand the search radius or relax verifiedOnly and follower constraints.
Enrichment takes longer than expectedHigh result count with individual profile lookupsLower maxItem or disable enrichProfile if only handle discovery is required.
Business emails are nullThe discovered accounts are personal profiles or have not published contact infoThis is normal behavior. Only business/creator accounts with public contact buttons expose emails.
Invalid input errorThe username input is empty or formatted incorrectlyEnsure at least one valid username or Instagram URL is supplied in the username field.

Responsible Scraping and Compliance

This Actor extracts only publicly accessible profile information published openly by Instagram users. It does not bypass login screens, access private direct messages, or harvest private personal data. When utilizing scraped contact information (such as business emails or telephone numbers) for sales outreach or marketing campaigns, ensure your communications comply with relevant digital privacy and messaging regulations, including the CAN-SPAM Act, the GDPR, and local commercial electronic messaging laws. Always respect individuals' communication preferences and honor unsubscribe requests promptly.

Frequently Asked Questions (FAQ)

What determines which accounts are surfaced as related? Instagram's recommendation algorithm determines related profiles based on audience overlap, content similarity, shared followers, and mutual network connections. The Actor retrieves these suggested accounts directly.

Do I need an Instagram account or login cookies to use this Actor? No. The Actor does not require user accounts, passwords, session tokens, or browser cookies. It operates entirely on publicly visible web data.

Can I scrape related accounts for multiple seeds in a single run? Yes. You can supply an array of usernames or profile URLs in the username input. In flat mode (chainDepth: 0), suggestions are fetched for each seed. In chained mode (chainDepth >= 1), the traversal queue begins with all provided seeds.

How does concurrency work? The Actor processes seed account resolution and candidate profile enrichments in parallel using the maxConcurrency parameter (default 10, configurable up to 50). Concurrent requests share the active sticky residential proxy session, which automatically rotates if any request encounters a network challenge or rate limit.

How does deduplication work across multi-level runs? The Actor keeps track of every account encountered. Seeds are marked as visited before any requests are made, preventing self-referencing loops. Discovered accounts are recorded once at the earliest depth they appear.

What are the graph_edge records? When exportGraph is checked, the Actor records directional connections between accounts in addition to profile records. Each edge record contains { _type: 'graph_edge', from: 'parent_user', to: 'discovered_user', depth: 1 }. This format is optimized for importing into network graph visualization tools.

Why are follower counts missing when enrichProfile is off? Instagram's suggestion listing surfaces core identification data (username, full name, user ID, profile image, verified badge, and private status). Exact follower counts require fetching the account's individual profile, which is performed only when enrichProfile is enabled.