# Instagram Mass Follower (`cricket.bux/instagram-mass-follower`) Actor

This actor allows you to mass-follow a list of Instagram usernames, with optional support for authentication cookies and customizable delay between actions. Simply provide the usernames you want to follow, your session cookies, and the delay in milliseconds.

- **URL**: https://apify.com/cricket.bux/instagram-mass-follower.md
- **Developed by:** [Cricket](https://apify.com/cricket.bux) (community)
- **Categories:** Social media, Automation
- **Stats:** 87 total users, 2 monthly users, 100.0% runs succeeded, 6 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Profiles Mass Follower

Automate following multiple Instagram profiles with ease! This Apify actor allows you to mass-follow a list of Instagram usernames, with optional support for authentication cookies and customizable delay between actions to mimic human behavior and avoid blocks. Results are saved in a convenient table (Dataset) for easy review and export.

***

### Features

- **Bulk follow** any number of Instagram profiles
- **Optional login** via cookies for private or restricted accounts
- **Adjustable delay** between follows to stay under Instagram's radar
- **Clear output table** with status for each profile (followed, already following, error, etc.)
- **Easy integration** with Apify platform and API

***

### Input

Configure the actor via Apify UI or API. The input schema supports:

| Field      | Type    | Description                                                      |
|------------|---------|------------------------------------------------------------------|
| profiles   | array   | List of Instagram usernames to follow (without @)                |
| cookies    | array   | Array of cookie objects for authentication (optional)            |
| delayMs    | integer | Delay in milliseconds between follows (e.g. 2000 = 2 seconds)    |

#### Example input

```json
{
  "profiles": ["instagram", "natgeo"],
  "cookies": [
    {
      "name": "sessionid",
      "value": "YOUR_SESSION_ID",
      "domain": ".instagram.com",
      "path": "/",
      "expires": 1234567890.987654,
      "httpOnly": true,
      "secure": true
    }
  ],
  "delayMs": 4000
}
```

***

### Output

Each processed profile is saved to the Apify Dataset with the following fields:

| Field     | Description                                      |
|-----------|--------------------------------------------------|
| username  | Instagram username                               |
| url       | Profile URL                                      |
| status    | `followed`, `already_following`, `button_not_found`, or `error` |
| error     | Error message (if any)                           |

You can view, filter, and export results in the Apify UI (tab "Dataset") or via API.

***

### Usage

1. Deploy the actor to [Apify platform](https://console.apify.com/actors).
2. Set up your input (see above) in the Apify UI or via API.
3. Run the actor. Monitor logs and progress in real time.
4. Download or analyze results from the Dataset tab.

***

### Requirements & Notes

- For private or restricted accounts, provide valid Instagram cookies (sessionid, etc.).
- Use reasonable delays to avoid Instagram rate limits or bans.
- This actor is intended for educational and research purposes. Use responsibly and in accordance with Instagram's terms of service.

# Actor input Schema

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

List of Instagram usernames to follow (without @)

## `cookies` (type: `array`):

Array of cookie objects for authentication (optional)

## `delayMs` (type: `integer`):

How many milliseconds to wait between follows (e.g. 2000 = 2 seconds)

## `proxyConfiguration` (type: `object`):

Configure proxy for requests (recommended for Instagram automation)

## Actor input object example

```json
{
  "profiles": [
    "instagram",
    "natgeo"
  ],
  "cookies": [],
  "delayMs": 2000
}
```

# 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": [
        "instagram",
        "natgeo"
    ],
    "cookies": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("cricket.bux/instagram-mass-follower").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": [
        "instagram",
        "natgeo",
    ],
    "cookies": [],
}

# Run the Actor and wait for it to finish
run = client.actor("cricket.bux/instagram-mass-follower").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": [
    "instagram",
    "natgeo"
  ],
  "cookies": []
}' |
apify call cricket.bux/instagram-mass-follower --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cricket.bux/instagram-mass-follower"
        }
    }
}
```

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/CbSA6xg0uVBsXsrTb/builds/gdl7qxE0Wb5tal4NJ/openapi.json
