# Instagram Followings Scraper (`devil_port369-owner/instagram-followings-scraper`) Actor

The Instagram Followings Scraper extracts following data from public Instagram account. Ideal for influencer marketing, audience analysis, and business intelligence. Safe API rates ensure account protection while providing valuable insights.

- **URL**: https://apify.com/devil_port369-owner/instagram-followings-scraper.md
- **Developed by:** [DataFusionX](https://apify.com/devil_port369-owner) (community)
- **Categories:** Lead generation, Social media
- **Stats:** 434 total users, 1 monthly users, 100.0% runs succeeded, 9 bookmarks
- **User rating**: 4.86 out of 5 stars

## Pricing

from $1.70 / 1,000 results

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 Following Scraper

**Looking to extract Instagram following data efficiently?**\
The Instagram Followings Scraper is the ultimate tool for extracting valuable following data, profile details, and engagement metrics from any public Instagram account. Whether you're working on influencer marketing campaigns, conducting in-depth audience analysis, or gathering data for business intelligence, this scraper delivers the information you need in a structured and easy-to-use format.
With this tool, you can extract comprehensive following data, including following counts, usernames, profile URLs, and engagement metrics such as average likes and comments per post. It also provides insights into following behavior and activity, helping you identify key influencers, target audiences, or business prospects on Instagram. The data can be utilized for tracking following growth, analyzing social media performance, or enhancing your marketing strategies.
One of the key features of this Instagram Followings Scraper is its safe API request rate, which ensures your account remains protected from bans or suspicion by Instagram. This means you can confidently use the scraper to gather data without risking the integrity of your Instagram account. Ideal for digital marketers, social media managers, and businesses, this scraper gives you a powerful way to access and analyze Instagram following data in real-time. Whether you're looking to improve your Instagram strategy, identify new opportunities for engagement, or simply keep track of public profiles, this tool is perfect for extracting Instagram following data and gaining valuable insights into social media trends and audience behavior.

### Usage Example

To scrape Followings, simply enter the Instagram username or profile link:

- `username`: e.g., `profile1`
- `profile link`: e.g., `https://www.instagram.com/profile1/`

### Input Requirements

In order to run this scraper, you will need to provide the `sessionid` value from your logged-in Instagram account. This allows the scraper to access following data from public profiles on your behalf.
***This actor will request the Instagram API at a low rate to ensure that your account remains safe and avoids being flagged for suspicious activity.***

#### How to Obtain Your Instagram **`sessionid`**:

1. **Log in to your Instagram account** using your preferred web browser (e.g., Chrome).
2. **Install the Cookie Editor Extension**\
   You can use the following Chrome extension:\
   [Cookie Editor Extension](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm)\
   Alternatively, use any other cookie extraction tool you are comfortable with.
3. **Extract the `sessionid` Cookie**\
   Open the extension and look for the `sessionid` cookie under Instagram's domain.\
   **Copy only the value** of the `sessionid` cookie name.
4. **Input the `sessionid`**\
   Ent

For an alternative Full Instagram profile scraping solution, check out this [Instagram Profile Scraper](https://apify.com/devil_port369-owner/instagram-profile-scraper).
For an alternative Full Instagram followings scraping solution, check out this [Instagram Follwings Scraper](https://apify.com/devil_port369-owner/instagram-followings-scraper).

### Overview

The Instagram Followings Scraper extracts detailed information about Followings of any public Instagram profile, offering a comprehensive tool for data-driven strategies in marketing and audience engagement.

### Features

#### 1. **Following List**

- **Profile URL:** Direct link to each following's Instagram profile.
- **Username:** Handle of each following.
- **Full Name:** Display name on the following's profile.
- **Following Status:** Indicates whether the following is following the main profile back.
- **Profile Picture URL:** Link to the following's profile picture.

### Output Sample

Below is a sample of the JSON output you will receive:

```json
{
  "id": "user_id",
  "full_name": "Full Name",
  "profile_pic_url": "profile_pic_link",
  "is_verified": true,
  "followed_by_viewer": false,
  "username": "username",
  "requested_by_viewer":true,
  "creators_username": "profile_username",
  "status": "Followings"
}

```

### Connect with me:

[Upwork Profile](https://www.upwork.com/freelancers/~019f20afe191f8bfb3) | [LinkedIn Profile](https://www.linkedin.com/in/karkimanoj2020/)

**Start today and unlock the full potential of your Instagram data!**

# Actor input Schema

## `creatorURL` (type: `string`):

Enter username or full profile url for which followings you want to extract.

## `cookiesID` (type: `string`):

Enter session_id value from the cookies.

## `proxy` (type: `object`):

Select Residential Proxy only.

## Actor input object example

```json
{
  "creatorURL": "https://www.instagram.com/instagram",
  "proxy": {
    "useApifyProxy": true,
    "groups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "creatorURL": "https://www.instagram.com/instagram",
    "cookiesID": "",
    "proxy": {
        "useApifyProxy": true,
        "groups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devil_port369-owner/instagram-followings-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 = {
    "creatorURL": "https://www.instagram.com/instagram",
    "cookiesID": "",
    "proxy": {
        "useApifyProxy": True,
        "groups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("devil_port369-owner/instagram-followings-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 '{
  "creatorURL": "https://www.instagram.com/instagram",
  "cookiesID": "",
  "proxy": {
    "useApifyProxy": true,
    "groups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call devil_port369-owner/instagram-followings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,devil_port369-owner/instagram-followings-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/WdMBLziQDTUKlVAuK/builds/Hc1dzWjRzGJEGqi7I/openapi.json
