# Instagram Followers & Following

Extract the followers or following list of any public Instagram account — handle, name, verification, and privacy

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `usernames` | array | Yes | Instagram usernames (e.g. natgeo, shopify) or full profile URLs (e.g. https://www.instagram.com/natgeo/). One per line. |
| `dataToScrape` | string | No | Whether to fetch the account's followers or the accounts it follows. |
| `maxResults` | integer | No | Maximum profiles to return per input account. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/instagram/followers/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "usernames": [
        "..."
    ]
}},
)
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 |
| `fullName` | Full Name | text |
| `verified` | Verified | boolean |
| `private` | Private | boolean |
| `profilePicture` | Profile Picture | image |
| `sourceAccount` | Source Account | text |
| `relationship` | Relationship | text |
