# TikTok Following Scraper (`easyapi/tiktok-following-scraper`) Actor

Scrape TikTok following lists to extract detailed user information including stats, profile data, and relationships. Perfect for social media analysis, influencer research, and audience insights.

- **URL**: https://apify.com/easyapi/tiktok-following-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media
- **Stats:** 523 total users, 23 monthly users, 77.3% runs succeeded, 7 bookmarks
- **User rating**: 4.04 out of 5 stars

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

## TikTok Following List Scraper 🎵

### 🤖 What does TikTok Following List Scraper do?

This actor allows you to scrape following lists from any public TikTok account. It extracts comprehensive user data including:

- Basic profile information (username, nickname, unique ID)
- Profile statistics (followers, following, likes)
- Account details (verification status, privacy settings)
- Engagement metrics (video count, heart count)
- Bio and signature information
- Avatar images (multiple sizes)

### ✨ Key Features

- 🔍 Scrape following lists from multiple TikTok accounts
- 📊 Get detailed user statistics and metrics
- 🚀 High-performance scraping with built-in request management
- 💾 Clean, structured output
- ⏱️ Customizable item limits

### 🔧 Input Parameters

The actor accepts the following input parameters:

- `usernames`: Array of TikTok usernames to scrape (e.g., \["@espnfc", "@nike"])
- `maxItems`: Maximum number of following accounts to scrape

### 📦 Output

The actor outputs detailed user information in JSON format, including:

- User profile data
- Account statistics
- Engagement metrics
- Profile images
- Account settings and status

### 💡 Use Cases

- Influencer Research & Analysis
- Competitor Monitoring
- Audience Insights
- Social Media Marketing
- Network Analysis
- Content Strategy Development

#### Input Example

A full explanation of an input example in JSON.

```
{
    "usernames": [
        "@espnfc"
    ],
    "maxItems": 20
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
	{
		"stats": {
			"diggCount": 11,
			"followerCount": 4253,
			"followingCount": 115,
			"friendCount": 0,
			"heart": 20000,
			"heartCount": 20000,
			"videoCount": 35
		},
		"user": {
			"avatarLarger": "https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-euttp/069cd022c3754d4cc88b53b3a33fb379~c5_1080x1080.jpeg?lk3s=a5d48078&nonce=46913&refresh_token=1316d817446a9df0016b7bacc4845667&x-expires=1730426400&x-signature=3PVWRqdKRXdgP1GSFMJWsn4j0OI%3D&shp=a5d48078&shcp=81f88b70",
			"avatarMedium": "https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-euttp/069cd022c3754d4cc88b53b3a33fb379~c5_720x720.jpeg?lk3s=a5d48078&nonce=39633&refresh_token=32339eff56ea53d329d5274ef9f1842e&x-expires=1730426400&x-signature=bT6curUl9zYOQa5irYF1%2FDoXtSQ%3D&shp=a5d48078&shcp=81f88b70",
			"avatarThumb": "https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-euttp/069cd022c3754d4cc88b53b3a33fb379~c5_100x100.jpeg?lk3s=a5d48078&nonce=20400&refresh_token=fe9af6ded698be104a4e56555fbcf78e&x-expires=1730426400&x-signature=odAkFm3kfmzREuezYg4A8ap%2Fvw8%3D&shp=a5d48078&shcp=81f88b70",
			"commentSetting": 0,
			"downloadSetting": 0,
			"duetSetting": 0,
			"ftc": false,
			"id": "7301694716150842401",
			"isADVirtual": false,
			"nickname": "Rob Dawson",
			"openFavorite": false,
			"privateAccount": false,
			"relation": 0,
			"secUid": "MS4wLjABAAAACMBIwlOvkQYFyxc5EUW6emHqv8zPmWs_Z5Yd9DQgQ-Q7GfzQF4qZetpL1DJASpJY",
			"secret": false,
			"signature": "Football writer for ESPN",
			"stitchSetting": 0,
			"ttSeller": false,
			"uniqueId": "robdawsonespn",
			"verified": false
		},
		"username": "@espnfc"
	},
    ...
]
```

#### Related Actors

- 🎵 [TikTok Followers Scraper](https://apify.com/easyapi/tiktok-followers-scraper) - Extract detailed follower information from TikTok accounts with comprehensive user data and engagement metrics
- 📱 [TikTok Profile Posts Scraper](https://apify.com/easyapi/tiktok-profile-posts-scraper) - Extract comprehensive post data from user profiles with built-in anti-blocking measures
- 🎥 [TikTok Videos Scraper](https://apify.com/easyapi/tiktok-videos-scraper) - Scrape TikTok video search results with advanced filtering capabilities
- 🎥 [TikTok LIVE Scraper](https://apify.com/easyapi/tiktok-live-scraper) - Extract real-time data from TikTok live streams based on search keywords
- 💬 [TikTok Comments Scraper](https://apify.com/easyapi/tiktok-comments-scraper) - Scrape TikTok comments from any video URL with advanced features
- 🔍 [TikTok Users Scraper](https://apify.com/easyapi/tiktok-users-scraper) - Scrape TikTok user profiles from search results with detailed user information
- 📧 [TikTok Email Scraper](https://apify.com/easyapi/tiktok-email-scraper) - Find TikTok creators matching your keywords and specific email domains
- 🎥 [TikTok Video Downloader](https://apify.com/easyapi/tiktok-video-downloader) - Download TikTok videos without watermarks in original quality
- 👥 [Facebook Following Scraper](https://apify.com/easyapi/facebook-following-scraper) - Scrape Facebook following list data including profile details and friendship status
- 👥 [Instagram Following Scraper](https://apify.com/easyapi/instagram-following-scraper) - Extract detailed information about Instagram users' following lists
- 👥 [Pinterest Following Scraper](https://apify.com/easyapi/pinterest-following-scraper) - Extract detailed profile information from Pinterest users' following lists
- 👥 [Medium Following Scraper](https://apify.com/easyapi/medium-following-scraper) - Extract detailed information about Medium users' following lists
- 🔍 [Social Media Influencer Scraper](https://apify.com/easyapi/social-media-influencer-scraper) - Discover top influencers across TikTok, Instagram, and YouTube
- 📱 [All-in-One Social Media Phone Number Scraper](https://apify.com/easyapi/all-in-one-social-media-phone-number-scraper) - Discover phone numbers across 30+ social platforms
- 📧 [All-in-One Social Media Email Scraper](https://apify.com/easyapi/all-in-one-social-media-email-scraper) - Discover emails across 30+ social platforms

# Actor input Schema

## `usernames` (type: `array`):

Array of TikTok usernames to scrape (include @ symbol)

## `maxItems` (type: `integer`):

Maximum number of following accounts to scrape (leave empty for unlimited)

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

Optionally, use Apify Proxy or custom HTTP proxy to avoid IP address-based blocking.

## Actor input object example

```json
{
  "usernames": [
    "@espnfc"
  ],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/tiktok-following-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/tiktok-following-scraper").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 '{}' |
apify call easyapi/tiktok-following-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/tiktok-following-scraper"
        }
    }
}

```

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/Fiju8kh5XV3cqPqwS/builds/8QfQfIN9ZhotBkce3/openapi.json
