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

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://beta-securitybyobscurity.apify.com/cricket.bux/instagram-mass-follower.md
- **Developed by:** [Cricket](https://beta-securitybyobscurity.apify.com/cricket.bux) (community)
- **Categories:** Social media, Automation
- **Stats:** 11 total users, 4 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.
You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

# 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=cricket.bux/instagram-mass-follower",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram Mass Follower",
        "description": "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.",
        "version": "0.1",
        "x-build-id": "gdl7qxE0Wb5tal4NJ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/cricket.bux~instagram-mass-follower/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-cricket.bux-instagram-mass-follower",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/cricket.bux~instagram-mass-follower/runs": {
            "post": {
                "operationId": "runs-sync-cricket.bux-instagram-mass-follower",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/cricket.bux~instagram-mass-follower/run-sync": {
            "post": {
                "operationId": "run-sync-cricket.bux-instagram-mass-follower",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "profiles",
                    "delayMs"
                ],
                "properties": {
                    "profiles": {
                        "title": "Instagram profiles",
                        "type": "array",
                        "description": "List of Instagram usernames to follow (without @)",
                        "items": {
                            "type": "string"
                        }
                    },
                    "cookies": {
                        "title": "Cookies",
                        "type": "array",
                        "description": "Array of cookie objects for authentication (optional)"
                    },
                    "delayMs": {
                        "title": "Delay between follows (ms)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "How many milliseconds to wait between follows (e.g. 2000 = 2 seconds)",
                        "default": 2000
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Configure proxy for requests (recommended for Instagram automation)"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
