# Twitter / X Followers

Pull a Twitter (X) profile's followers or following as full profile records — username, display name, bio, follower/following counts, location, links, account age, and latest tweet — from a single handle or profile URL.

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `handle` | string | Yes | The X (Twitter) account whose network you want. Enter a handle or profile URL (e.g. 'NASA' or 'https://x.com/NASA'). |
| `listType` | string | No | Which list to pull: 'followers' (accounts that follow this profile) or 'following' (accounts this profile follows). |
| `maxResults` | integer | No | Maximum number of profiles to return. The actor fetches in batches of up to 200; use 0 for the maximum available. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/twitter/followers/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "handle": "..."
}},
)
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, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `username` | Username | text |
| `profileUrl` | Profile URL | url |
| `displayName` | Display Name | text |
| `accountId` | Account ID | text |
| `bio` | Bio | text |
| `website` | Website | url |
| `bioLinks` | Bio Links | array |
| `location` | Location | text |
| `followers` | Followers | number |
| `followingCount` | Following Count | number |
| `tweets` | Tweets | number |
| `mediaPosts` | Media Posts | number |
| `likesGiven` | Likes Given | number |
| `listedCount` | Listed Count | number |
| `protected` | Protected | boolean |
| `accountCreated` | Account Created | text |
| `pinnedTweetUrl` | Pinned Tweet URL | url |
| `profilePicture` | Profile Picture | url |
| `coverImage` | Cover Image | url |
| `relationship` | Relationship | text |
| `followedHandle` | Followed Handle | text |
| `latestTweet` | Latest Tweet | object |
