# TikTok Profiles

Find TikTok accounts by keyword — handle, display name, bio, follower and engagement counts, verification, and business/seller info.

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `searchQueries` | array | Yes | Keywords to find TikTok accounts (e.g. nasa, gymshark, cooking recipes). Any query that works in TikTok search is accepted. One per line. |
| `maxProfilesPerQuery` | integer | No | Maximum number of profiles to return for each search term. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/tiktok/profiles/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "searchQueries": [
        "..."
    ]
}},
)
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 |
| `avatar` | Avatar | image |
| `bio` | Bio | text |
| `bioLink` | Bio Link | url |
| `verified` | Verified | boolean |
| `followers` | Followers | number |
| `following` | Following | number |
| `mutualFollows` | Mutual Follows | number |
| `totalLikes` | Total Likes | number |
| `likesGiven` | Likes Given | number |
| `videos` | Videos | number |
| `businessAccount` | Business Account | boolean |
| `businessCategory` | Business Category | text |
| `tiktokSeller` | TikTok Seller | boolean |
| `private` | Private | boolean |
| `accountCreated` | Account Created | date |
| `tiktokId` | TikTok ID | text |
