# TikTok Followers & Following

Pull the follower or following list of any public TikTok account — each row is a full profile (handle, name, followers, likes, videos, verified, bio) of someone connected to the queried account.

**Pricing:** $1 / 1k profiles

**Endpoint:** `POST /api/v1/agents/tiktok/followers/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `profiles` | array | Yes | TikTok usernames/handles whose followers/following you want (with or without @). One per line. |
| `maxFollowersPerProfile` | integer | No | Max followers to fetch per profile (accounts that follow the target). Set to 0 to skip followers. |
| `maxFollowingPerProfile` | integer | No | Max following to fetch per profile (accounts the target follows). Set to 0 to skip following. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/tiktok/followers/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"profiles":["..."]}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/tiktok/followers/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "profiles": [
        "..."
    ]
}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/api/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

| Field | Display 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 |
| `avatar` | Avatar | image |
