# TikTok Followers & Following API

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 /v1/data/tiktok/followers/run`

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `profiles` | string | Yes | TikTok username or handle whose followers/following you want (with or without @). |
| `maxFollowersPerProfile` | integer | No | Number of followers to return (accounts that follow the target). Leave blank for all. |
| `maxFollowingPerProfile` | integer | No | Number of following to return (accounts the target follows). Set to 0 to skip following. |

## Example

```bash
curl -X POST https://api.mindcase.co/v1/data/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/v1/data/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/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/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 |
| `userId` | User ID | text |
