# Twitter / X Profiles

Get Twitter (X) user profiles — bio, follower/following counts, verification status and type, location, and links. Look them up by handle or profile URL, or discover accounts by keyword search. Returns the same complete profile either way.

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `inputs` | array | No | One per line. You can input profile URLs or handles (e.g. 'NASA' or 'https://x.com/NASA'). |
| `searchTerms` | string | No | Keywords or topics to find X (Twitter) accounts for (e.g. 'climate scientist'). |
| `maxResults` | integer | No | Number of accounts to return. Use 0 for all. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/twitter/profiles/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {}},
)
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 |
|-------|--------------|------|
| `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 |
| `following` | Following | number |
| `tweets` | Tweets | number |
| `mediaPosts` | Media Posts | number |
| `likesGiven` | Likes Given | number |
| `blueVerified` | Blue Verified | boolean |
| `verifiedType` | Verified Type | text |
| `protected` | Protected | boolean |
| `accountCreated` | Account Created | text |
| `openDms` | Open DMs | boolean |
| `pinnedTweetUrl` | Pinned Tweet URL | url |
| `profilePicture` | Profile Picture | url |
| `coverImage` | Cover Image | url |
