# X (Twitter) Follow Relationship Checker - Does X Follow Y (`seemuapps/x-follow-relationship-checker`) Actor

Check whether any X (Twitter) account follows or is followed by a list of target accounts. One row per pair with follow flags and mutual status.

- **URL**: https://apify.com/seemuapps/x-follow-relationship-checker.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:** Social media, Developer tools, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 check results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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) Follow Relationship Checker - Does X Follow Y

Check whether any X (Twitter) account follows or is followed by a list of target accounts. One row per pair with follow flags and mutual status - no login required.

### What you get

- One dataset row per source/target account pair
- `sourceFollowsTarget` - does the source account follow the target?
- `targetFollowsSource` - does the target account follow the source back?
- `mutual` - true when both accounts follow each other
- `checkedAt` timestamp for every check, so you can track changes over time
- Clean tabular output - export straight to CSV, Excel, or Google Sheets

### Free tier vs. paid

Free runs are capped at **10 target accounts per run** to help cover data costs. Upgrade to any paid plan on the actor's pricing page to lift the limit - your full target list is checked in one run.

### Use cases

- "Does X follow Y" checks - instantly answer whether one account follows another
- Unfollow audits - re-run the same list periodically and diff the results to catch unfollows
- Influencer outreach qualification - check whether prospects already follow your brand before reaching out
- Community and CRM enrichment - add follow-relationship columns to your contact or member lists
- Mutual-follow mapping - find which accounts in a list are mutuals with a key account

### How to use

1. Enter the **Source Username** - the account whose relationships you want to check (with or without @)
2. Enter **Target Usernames** - one account per line
3. Run the actor - one row per pair appears in the **Dataset** tab
4. Export to JSON, CSV, or Google Sheets directly from the Apify console

### Output format

One account pair per dataset row - perfect for direct CSV, Excel, or Google Sheets export:

```json
{
  "sourceUsername": "elonmusk",
  "targetUsername": "jack",
  "sourceFollowsTarget": true,
  "targetFollowsSource": true,
  "mutual": true,
  "checkedAt": "2026-07-17T09:30:00.000Z"
}
```

### Input options

| Field | Type | Description |
|-------|------|-------------|
| Source Username | string | The account whose relationships to check (required) |
| Target Usernames | array | Target accounts to check against the source, one per line (required) |

### Related X (Twitter) actors

Part of a complete X (Twitter) toolkit - explore the rest of the suite:

- [X (Twitter) Profile Scraper](https://apify.com/seemuapps/x-profile-scraper) - Public profile data - bio, counts, links
- [X (Twitter) User Tweets Scraper](https://apify.com/seemuapps/x-user-tweets-by-username) - Full timeline of any account by username
- [X (Twitter) Tweet Scraper](https://apify.com/seemuapps/x-tweet-scraper) - Search and export tweets by query, hashtag, user
- [X (Twitter) Tweet Replies Scraper](https://apify.com/seemuapps/x-tweet-replies-scraper) - Every reply under a post for sentiment analysis
- [X (Twitter) Quote Tweets Scraper](https://apify.com/seemuapps/x-quote-tweets-scraper) - Every quote tweet of a post, with engagement
- [X (Twitter) Retweeters Scraper](https://apify.com/seemuapps/x-tweet-retweeters-scraper) - Every account that retweeted a post
- [X (Twitter) Followers & Following Scraper](https://apify.com/seemuapps/x-followers-following-scraper) - Full followers and following lists, no login
- [X (Twitter) List Members Scraper](https://apify.com/seemuapps/x-list-members-scraper) - Members or followers of any public list
- [X (Twitter) Active Hours Analyzer](https://apify.com/seemuapps/x-active-hours-analyzer) - Posting heatmap, peak hours, and time zone
- [X (Twitter) User Mentions Scraper](https://apify.com/seemuapps/x-user-mentions-scraper) - Brand and keyword monitoring across mentions
- [X (Twitter) User Search Scraper](https://apify.com/seemuapps/x-user-search-scraper) - Find accounts by bio or keyword for lead gen
- [X (Twitter) Trends Scraper](https://apify.com/seemuapps/x-trends-scraper) - Trending topics and hashtags by location
- [X (Twitter) Article to Markdown Scraper](https://apify.com/seemuapps/x-article-to-markdown-scraper) - Long form Articles as clean Markdown
- [X (Twitter) MCP Server](https://apify.com/seemuapps/x-mcp) - All X tools for AI agents via MCP

# Actor input Schema

## `sourceUsername` (type: `string`):

The X (Twitter) account whose follow relationships you want to check, with or without @.

## `targetUsernames` (type: `array`):

Target accounts to check against the source account, one per line. Each pair returns whether the source follows the target and vice versa.

## Actor input object example

```json
{
  "sourceUsername": "elonmusk",
  "targetUsernames": [
    "jack",
    "nasa",
    "BillGates"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

One row per account pair: sourceUsername, targetUsername, sourceFollowsTarget, targetFollowsSource, mutual, checkedAt.

# 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 = {
    "sourceUsername": "elonmusk",
    "targetUsernames": [
        "jack",
        "nasa",
        "BillGates"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/x-follow-relationship-checker").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 = {
    "sourceUsername": "elonmusk",
    "targetUsernames": [
        "jack",
        "nasa",
        "BillGates",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/x-follow-relationship-checker").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 '{
  "sourceUsername": "elonmusk",
  "targetUsernames": [
    "jack",
    "nasa",
    "BillGates"
  ]
}' |
apify call seemuapps/x-follow-relationship-checker --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bIWNyLatEtquZaGCc/builds/3Fp6LbSCE290gSpnb/openapi.json
