> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Followers & Following API

> The followers or following list of any public TikTok account, each row a full profile with handle, name, followers, likes, video count and bio.

`POST /v1/data/tiktok/followers/run`

**Pricing:** $0.001 per profile ($1.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**profiles** `string` *required*

TikTok username or handle whose followers/following you want (with or without @).

Format e.g. `https://www.tiktok.com/@khaby.lame`.

**maxFollowersPerProfile** `integer`

Number of followers to return (accounts that follow the target). Leave blank for all.

Min `0`.

**maxFollowingPerProfile** `integer` (default: 0)

Number of following to return (accounts the target follows). Set to 0 to skip following.

Min `0`.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/tiktok/followers/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "profiles": "khaby.lame",
    "maxFollowersPerProfile": 50,
    "maxFollowingPerProfile": 0
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/tiktok/followers/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "profiles": "khaby.lame",
    "maxFollowersPerProfile": 50,
    "maxFollowingPerProfile": 0
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/tiktok/followers/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "profiles": "khaby.lame",
  "maxFollowersPerProfile": 50,
  "maxFollowingPerProfile": 0
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one profile, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `profileUrl` | Profile URL | url |
| `handle` | Handle | text |
| `displayName` | Display Name | text |
| `connectionType` | Connection Type | text |
| `connectedAccount` | Connected Account | url |
| `bio` | Bio | text |
| `followers` | Followers | number |
| `following` | Following | number |
| `totalLikes` | Total Likes | number |
| `videos` | Videos | number |
| `verified` | Verified | boolean |
| `private` | Private | boolean |
| `tiktokSeller` | TikTok Seller | boolean |
| `mutualFollows` | Mutual Follows | number |
| `likesGiven` | Likes Given | number |
| `avatar` | Avatar | image |
| `userId` | User ID | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "tiktok/followers",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "private": false,
      "followers": 2992,
      "videos": 12,
      "bio": "10k followers",
      "profileUrl": "https://www.tiktok.com/@mr.fayaz.official",
      "totalLikes": 1252,
      "following": 4473,
      "userId": "7655539297239860246",
      "connectionType": "follower",
      "connectedAccount": "https://www.tiktok.com/@khaby.lame",
      "verified": false,
      "avatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-no1a-avt-0068c001-no/77bd5735bb11b180055f814d8591884d~tplv-tiktokx-cropcenter:720:720.jpeg?dr=10399&refresh_toke...",
      "tiktokSeller": false,
      "displayName": "ahsan ka fan love you",
      "handle": "mr.fayaz.official"
    }
  ]
}
```

## Related APIs

For one creator's own stats use [`tiktok/profiles`](https://docs.mindcase.co/apis/tiktok/profiles).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.