
Twitter Follow Checker
Pricing
$25.00/month + usage

Twitter Follow Checker
This tool is a high-performance, stealth-enabled scraper designed to determine whether one Twitter user follows another. It accepts two Twitter usernames as input and returns a boolean response indicating the follow relationship.
0.0 (0)
Pricing
$25.00/month + usage
1
Total users
4
Monthly users
4
Runs succeeded
>99%
Last modified
8 hours ago
An Apify actor that checks the follow relationship between two Twitter users using Twitter's API.
Features
- Check if user A follows user B and vice versa
- Get detailed user information including follower/following counts
- Determine relationship type: mutual, one-way, or none
- Outputs results in structured JSON format
Overview
This actor uses Twitter's API to reliably check follow relationships between users. It requires Twitter cookies for authentication and provides detailed information about both users in addition to their follow status.
Prerequisites
- Apify Account to run the actor
- Twitter cookies for authentication
Usage
Running on Apify Platform
- Go to the Apify Console
- Navigate to your Actor
- Fill in the input form:
user_a
: First Twitter username (without @)user_b
: Second Twitter username (without @)cookies
: Twitter cookies in JSON format (see below)
- Click "Run"
Twitter Cookie Authentication
This actor requires Twitter cookies for authentication. To obtain Twitter cookies:
- Log in to Twitter in your browser
- Open Developer Tools (F12 or right-click > Inspect)
- Go to the Network tab
- Refresh the page
- Select any Twitter API request
- In the Headers tab, find the "Cookie" header
- Export the cookies as JSON (You can use browser extensions like "Cookie-Editor" for this)
The cookies must include the CSRF token (ct0
) and ideally the authentication token (auth_token
).
Input Parameters
Parameter | Type | Description |
---|---|---|
user_a | String | First Twitter username (without @) |
user_b | String | Second Twitter username (without @) |
cookies | String | Twitter cookies in JSON format for authentication |
Example input:
{"user_a": "elonmusk","user_b": "BarackObama","cookies": "[{\"name\":\"ct0\",\"value\":\"your-csrf-token-here\"},...]"}
Output Format
The actor outputs JSON with the following structure:
{"user_a": "elonmusk","user_b": "BarackObama","user_a_info": {"id": "44196397","name": "Elon Musk","followers_count": 180500000,"following_count": 538},"user_b_info": {"id": "813286","name": "Barack Obama","followers_count": 133800000,"following_count": 576978},"user_a_follows_user_b": true,"user_b_follows_user_a": false,"relationship": "one_way_a_to_b"}
Relationship Types
mutual
: Both users follow each otherone_way_a_to_b
: User A follows User B, but User B doesn't follow User Aone_way_b_to_a
: User B follows User A, but User A doesn't follow User Bnone
: Neither user follows the other
How It Works
The actor performs the following steps:
- Authenticates with Twitter using provided cookies
- Searches for both users to obtain their user IDs
- Checks follow relationship using Twitter's friendships/show API
- Collects detailed information about both users
- Determines the relationship type
- Outputs the results
Troubleshooting
Authentication Issues
If you encounter authentication errors:
- Ensure your Twitter cookies are fresh and valid
- Verify the cookies include the required
ct0
token - Check that your Twitter account has API access
Common error messages:
- "Missing CSRF token ('ct0') in the cookies data" - Your cookies are missing the CSRF token
- "Failed to search for user" - Authentication issue or Twitter API changes
User Not Found
If a user can't be found:
- Double-check the username spelling
- Verify the user hasn't been suspended or deleted
- Try using the user's @ handle exactly as it appears on Twitter