# Instagram Following Scraper (`igview-owner/instagram-following-scraper`) Actor

Extract the complete following list from any public Instagram account without login or cookies. Scrape usernames, numerical user IDs, full names, profile pictures, and verification status with automated pagination. Export clean datasets instantly to  JSON for outreach and network analysis.

- **URL**: https://apify.com/igview-owner/instagram-following-scraper.md
- **Developed by:** [Sachin Kumar Yadav](https://apify.com/igview-owner) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Following Scraper

Scrape and export complete **Instagram Following lists** for any public Instagram user. Extract profile details, user IDs, usernames, full names, profile pictures, and verified status with automated pagination and customizable limits.

This actor is built for:

- Influencer & creator network analysis
- Competitor following intelligence
- Audience research and prospecting
- Brand partnership and outreach discovery
- Social graph and connection mapping

***

### Table of Contents

- [Features](#features)
- [Use Cases](#use-cases)
- [Quick Start](#quick-start)
- [Input Parameters](#input-parameters)
- [Output](#output)
- [Output Fields](#output-fields)
- [Dataset Views](#dataset-views)
- [FAQ](#faq)
- [SEO Keywords](#seo-keywords)

***

### Features

| Feature | Description |
|---------|-------------|
| Complete Following Extraction | Fetch the entire list of accounts a public user follows |
| Automatic Pagination | Seamlessly traverses pages via cursor to retrieve all records |
| Configurable Results Limit | Scrape all followings or cap the count with a custom limit |
| User Identification | Extracts unique user ID, username, and full display name |
| Account Metadata | Captures verification status (isVerified) and privacy status (isPrivate) |
| Profile Image URLs | Direct links to high-resolution profile avatars |
| High Performance Batching | Records are pushed in batches of 25 for efficient data storage |
| Reliable Key Rotation | Automatic key cycling and error handling to ensure job completion |

***

### Use Cases

| Use Case | What You Can Do | Why It Helps |
|----------|-----------------|--------------|
| Competitor Intelligence | Track who your competitors follow | Spot industry trends, partners, and vendors |
| Influencer Discovery | Audit accounts followed by key niche figures | Discover relevant creators and micro-influencers |
| Lead Generation & Outreach | Collect verified accounts followed by targets | Build targeted B2B and creator outreach lists |
| Audience & Network Research | Map connections between industry leaders | Understand niche ecosystems and community clusters |
| Brand Affinity Analysis | Inspect what brands a creator follows | Identify organic sponsorship and partnership fits |
| Account Monitoring | Regularly capture snapshot of followings | Detect changes, new connections, and unfollow trends |

***

### Quick Start

#### 1. Basic Run (All Followings)

To scrape the complete following list of an account without restrictions, set `resultsLimit` to `0`:

```json
{
  "username": "instagram",
  "resultsLimit": 0
}
```

#### 2. Limited Results Run

To scrape only the top 100 or 500 followed accounts:

```json
{
  "username": "instagram",
  "resultsLimit": 100
}
```

#### 3. Tips for Best Results

- Use public accounts: Instagram restricts following lists for private accounts.
- Do not include the `@` symbol: Prefixed `@` symbols are trimmed automatically.
- Unlimited scraping: Large following lists (1,000+) use automated cursor pagination and built-in rate-limit delays to protect data integrity.
- Export formats: Data can be exported from Apify Dataset in JSON, CSV, Excel, XML, or HTML table formats.

***

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|:--------:|---------|-------------|
| `username` | String | Yes | `"instagram"` | The target Instagram username whose following list will be scraped. |
| `resultsLimit` | Integer | No | `0` | Maximum number of followed accounts to scrape. Set to `0` for unlimited (fetches all pages). |

***

### Output

Each record in the dataset corresponds to **one followed Instagram user**.

#### Example Output

```json
{
  "inputUsername": "instagram",
  "userId": "257641244",
  "username": "komal_nambiar",
  "fullName": "komal ✼🧿",
  "profilePicUrl": "https://instagram.ftpe7-1.fna.fbcdn.net/v/t51.82787-19/...",
  "isPrivate": false,
  "isVerified": false
}
```

***

### Output Fields

| Category | Field Name | Data Type | Description |
|----------|------------|-----------|-------------|
| Source | `inputUsername` | String | Username of the scraped target account |
| User Profile | `username` | String | Instagram handle of the followed account |
| User Profile | `fullName` | String | Full display name of the followed account |
| User Profile | `userId` | String | Unique numerical Instagram account ID |
| Media | `profilePicUrl` | String | Direct CDN URL of the user profile avatar |
| Flags | `isVerified` | Boolean | True if the account possesses a verified badge |
| Flags | `isPrivate` | Boolean | True if the followed user profile is private |

***

### Dataset Views

This actor includes a pre-configured tabular overview for rapid data inspection:

| View Name | Fields Displayed | Purpose |
|-----------|------------------|---------|
| Following Overview | Source, Username, Full Name, User ID, Verified, Private, Profile Pic | Clean tabular view with image render and verification status |

***

### FAQ

#### Can I scrape private Instagram accounts?

No. Following lists for private Instagram accounts are protected and cannot be scraped. Only public accounts are supported.

#### How does pagination work?

Instagram returns followings in paginated batches. This actor captures cursor tokens (`pageInfo.maxId`) and continuously queries successive pages until all followings are fetched or until your `resultsLimit` threshold is reached.

#### What happens if I set resultsLimit to 0?

Setting `resultsLimit` to `0` tells the actor to scrape without limits. It will continue paginating until the entire following list has been retrieved.

#### What export formats can I use?

You can download the resulting dataset directly from Apify Console or via Apify API in:

- JSON / JSONL
- CSV
- Microsoft Excel (XLSX)
- XML
- HTML Table / RSS

#### Can I integrate this actor into my own applications?

Yes. You can trigger runs and fetch datasets using the Apify REST API, Apify Python client, Apify JavaScript client, or via Webhooks to Zapier, Make, and custom endpoints.

#### How are rate limits handled?

The scraper incorporates adaptive delays between pagination requests and automatic key rotation to ensure steady and uninterrupted extraction.

***

### SEO Keywords

Instagram following scraper, scrape Instagram followings, Instagram following list exporter, extract Instagram following, download Instagram following list, Instagram followers and following scraper, Instagram user following list API, export Instagram followings to CSV, export Instagram followings to Excel, Instagram network analyzer, Instagram influencer network scraper, Instagram connection finder, Instagram profile scraper, Apify Instagram following tool, Instagram data extraction tool, Instagram audience research tool, Instagram lead generation, Instagram profile picture downloader, Instagram user ID finder, Instagram API following list.

### Related Actors

- [Instagram Story Scraper](https://apify.com/igview-owner/instagram-story-viewer) - Extract Instagram Story data
- [Instagram Highlights Scraper](https://apify.com/igview-owner/instagram-highlights-stories-viewer) - Extract Instagram Highlights And Stories data
- [Instagram Post Scraper](https://apify.com/igview-owner/instagram-post-viewer) - Extract Instagram Post data
- [Instagram Reels downloader](https://apify.com/igview-owner/instagram-video-downloader) - Extract Instagram Reel data

### **Get Started Now**

**Ready to download Instagram media anonymously?**

1. Click ["Try for free"](https://apify.com?fpr=ykgg9c) to test the actor
2. Enter an Instagram Username
3. Get comprehensive media data instantly

**If this actor helps your workflow, please give it a star!**

***

*Built with ❤️ by Sachin Kumar Yadav using Apify Platform*

# Actor input Schema

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

Enter an Instagram username to scrape their following list. Do not include '@' symbol - it will be removed automatically.

## `resultsLimit` (type: `integer`):

Maximum number of following accounts to scrape. Set 0 for unlimited (all followings). Default is 0 (unlimited).

## Actor input object example

```json
{
  "username": "instagram",
  "resultsLimit": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

Open the dataset view with an overview of scraped Instagram Following lists including usernames, user IDs, and verification status.

# 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 = {
    "username": "instagram"
};

// Run the Actor and wait for it to finish
const run = await client.actor("igview-owner/instagram-following-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 = { "username": "instagram" }

# Run the Actor and wait for it to finish
run = client.actor("igview-owner/instagram-following-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 '{
  "username": "instagram"
}' |
apify call igview-owner/instagram-following-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,igview-owner/instagram-following-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/8dnpTH48rC57t1XBv/builds/uHczsdWUmdkIn7b8v/openapi.json
