# Twitter (X) Auto Follow Bot & API (`fastcrawler/twitter-x-auto-follow-bot-api`) Actor

Automatically follow X (Twitter) users without an official API or developer account. Perfect for audience growth, marketing automation, and social engagement. Input user handles to follow accounts at scale. Bypass expensive API limits seamlessly.

- **URL**: https://apify.com/fastcrawler/twitter-x-auto-follow-bot-api.md
- **Developed by:** [fastcrawler](https://apify.com/fastcrawler) (community)
- **Categories:** Social media
- **Stats:** 6 total users, 0 monthly users, 89.7% runs succeeded, NaN 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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🤖 X (Twitter) Auto Follow Bot & API: No Dev Account Needed

**X (Twitter) Auto Follow API** is the ultimate automation tool designed to effortlessly scale your Twitter network. 

Bypass the expensive and restrictive official Twitter API limits. This actor simulates real browser actions using your session cookies, allowing you to automatically follow target accounts safely, efficiently, and at scale.

---

### 🚀 Why Use This Automation? (Top Use Cases)
- **📈 Audience Growth & Marketing:** Automatically follow users in your niche to trigger follow-backs and build your community.
- **🔄 Workflow Automation:** Seamlessly integrate with Make, Zapier, or custom AI agents to follow users based on specific triggers or data pipelines.
- **👨‍💻 Indie Developers & Creators:** Build personal SaaS tools or marketing pipelines without waiting for Twitter Developer account approvals.

---

### ✨ Key Features
- **🔓 No API Key Required:** Works directly with your logged-in account cookies. No developer approval processes needed.
- **🔄 Multi-Account Rotation:** Provide multiple cookies; the tool automatically switches and rotates sessions when one hits a rate limit.
- **🛡️ Safe & Reliable:** Built-in human-like delays, intelligent pacing, and automatic duplicate-checking (skips already-followed accounts) to ensure account safety.
- **📦 Bulk Processing:** Import large lists of target usernames or profile URLs to follow at scale.
- **💰 Cost-Effective:** Flat monthly rental—follow as many accounts as you need without per-request fees.

---

### 🛠 How it Works (Input Configuration)
You can configure the actor via UI or directly pass a JSON payload for API integration.

**Example Input (JSON):**
```json
{
  "cookie": "auth_token=YOUR_TOKEN; ct0=YOUR_CT0; ...",
  "username": "indie_dev_daily" 
}

````

*(Note: `username` can also be an array of handles or URLs for bulk processing).*

***

### 📊 Output Example

The actor returns a clear status report for each follow action, perfect for programmatic monitoring.

```json
[
  {
    "targetUsername": "indie_dev_daily",
    "status": "success",
    "message": "Successfully followed the user.",
    "timestamp": "2026-05-19T10:00:00.000Z"
  },
  {
    "targetUsername": "another_user",
    "status": "skipped",
    "message": "User already followed.",
    "timestamp": "2026-05-19T10:00:15.000Z"
  }
]

```

***

### 🙋 FAQ (Frequently Asked Questions)

**Q: Does this tool use the official Twitter API?**
**A:** No. It simulates logged-in browser actions securely using your cookie. No API keys or developer accounts are needed.

**Q: What is a `cookie` and how do I get it?**
**A:** A cookie is your browser's session token when logged into X (Twitter). The tool uses it to authenticate on your behalf.
*How to get it:*

1. Install the [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) extension.
2. Log in to your X (Twitter) account.
3. Open Cookie-Editor → Export As `Headers String`.
4. Paste the string into the tool's input field.
   👉 *Watch the [Step-by-step video guide](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie).*

**Q: Can I follow multiple accounts at once?**
**A:** Absolutely. You can input a list, or import a CSV/TXT file containing multiple usernames or URLs.

**Q: Does it skip accounts I already follow?**
**A:** Yes. The tool intelligently checks your relationship status first and skips already-followed accounts to save time and avoid errors.

**Q: Can I run multiple accounts simultaneously?**
**A:** Yes. Pass multiple `cookie` strings programmatically. The tool can rotate through them automatically to scale your operations safely and bypass single-account limits.

***

### 📬 Contact & Custom Development

As an independent developer, I am actively maintaining this tool and adding new features.
**Planned enhancements include:**

- Real-time follow activity monitoring
- Username change tracking
- Auto-unfollow detection

Need custom features or priority support? Let's connect:
📧 Email: fastcrawler9@gmail.com | 💬 [Telegram](https://t.me/+MUMR3PKOoVVjNzE9) | 👾 [Discord](https://discord.gg/s4jyupzaWu)

### 🔌 No-Code Integration (Make / Zapier / n8n)

You don't need to be a developer to build powerful growth workflows. This Follow API integrates seamlessly with no-code platforms like **Make.com**, **Zapier**, and **n8n** using the official Apify modules.

#### 🔥 Popular Automation Workflows You Can Build Today:

1. **The Competitor Snipe (Google Sheets + Apify):** Whenever you paste a list of competitor followers into a Google Sheet, Zapier automatically triggers this actor to follow them one by one.
2. **The Engagement Reward (Twitter Scraper + Apify):**
   Use a Twitter Scraper to monitor a specific hashtag or keyword. When someone posts about it, Make.com triggers this Follow Bot to automatically follow them, driving instant targeted traffic back to your profile.
3. **The CRM Sync (HubSpot/Airtable + Apify):**
   When a new lead enters your CRM with a Twitter handle, automatically follow them to build rapport before your sales pitch.

#### 🛠 How to Connect in 3 Steps:

1. Open Make or Zapier and add the **Apify** app module.
2. Select the **"Run Actor"** action and connect your Apify API Token (found in your Apify settings).
3. Select this Actor (`fastcrawler/twitter-x-auto-follow-bot-api`), map the `cookie` and target `username` fields from your previous trigger step, and run the workflow!

# Actor input Schema

## `cookie` (type: `string`):

Cookies are used to authorize the actor with twitter

Follow these steps to get the cookies:

1. Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension
2. Login to your twitter account
3. Click on the extension and Export As 'Headers String' and export the twitter cookies
4. Paste the copied contents here.

[how-to-get-twitter-cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie)

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

The username of twitter you want to follow.

## Actor input object example

```json
{
  "cookie": "auth_token=b07bd",
  "username": "elonmusk"
}
```

# 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 = {
    "cookie": "auth_token=b07bd",
    "username": "elonmusk"
};

// Run the Actor and wait for it to finish
const run = await client.actor("fastcrawler/twitter-x-auto-follow-bot-api").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 = {
    "cookie": "auth_token=b07bd",
    "username": "elonmusk",
}

# Run the Actor and wait for it to finish
run = client.actor("fastcrawler/twitter-x-auto-follow-bot-api").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 '{
  "cookie": "auth_token=b07bd",
  "username": "elonmusk"
}' |
apify call fastcrawler/twitter-x-auto-follow-bot-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=fastcrawler/twitter-x-auto-follow-bot-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Twitter (X) Auto Follow Bot & API",
        "description": "Automatically follow X (Twitter) users without an official API or developer account. Perfect for audience growth, marketing automation, and social engagement. Input user handles to follow accounts at scale. Bypass expensive API limits seamlessly.",
        "version": "0.0",
        "x-build-id": "TWro4OSJEuoxcZKiK"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/fastcrawler~twitter-x-auto-follow-bot-api/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-fastcrawler-twitter-x-auto-follow-bot-api",
                "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/fastcrawler~twitter-x-auto-follow-bot-api/runs": {
            "post": {
                "operationId": "runs-sync-fastcrawler-twitter-x-auto-follow-bot-api",
                "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/fastcrawler~twitter-x-auto-follow-bot-api/run-sync": {
            "post": {
                "operationId": "run-sync-fastcrawler-twitter-x-auto-follow-bot-api",
                "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": [
                    "cookie",
                    "username"
                ],
                "properties": {
                    "cookie": {
                        "title": "Cookies: Cookies are used to authorize the actor with twitter",
                        "type": "string",
                        "description": "Cookies are used to authorize the actor with twitter \n\n Follow these steps to get the cookies:\n\n1. Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension\n2. Login to your twitter account\n3. Click on the extension and Export As 'Headers String' and export the twitter cookies\n4. Paste the copied contents here. \n\n [how-to-get-twitter-cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie)"
                    },
                    "username": {
                        "title": "username u want to follow,eg: elonmusk",
                        "type": "string",
                        "description": "The username of twitter you want to follow."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
