# Instagram Profiles

Extract Instagram account data — bio, followers, verification, business info, links, and recent posts — by username or keyword search

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `usernames` | array | No | Instagram usernames (e.g. natgeo, shopify) or full profile URLs (e.g. https://www.instagram.com/natgeo/). One per line. |
| `query` | array | No | Keywords to find Instagram accounts (e.g. coffee, nasa). One per line. |
| `maxResults` | integer | No | Maximum profiles per search term. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/instagram/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/instagram/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 |
|-------|--------------|------|
| `profileUrl` | Profile URL | url |
| `username` | Username | text |
| `instagramId` | Instagram ID | text |
| `fullName` | Full Name | text |
| `bio` | Bio | text |
| `followers` | Followers | number |
| `following` | Following | number |
| `posts` | Posts | number |
| `verified` | Verified | boolean |
| `private` | Private | boolean |
| `businessAccount` | Business Account | boolean |
| `businessCategory` | Business Category | text |
| `bioLinks` | Bio Links | object_array |
| `profilePicture` | Profile Picture | url |
| `highlightReels` | Highlight Reels | number |
| `lastPostDate` | Last Post Date | text |
| `recentPosts` | Recent Posts | object_array |
| `relatedAccounts` | Related Accounts | object_array |
| `facebookPageName` | Facebook Page Name | text |
| `facebookPageUrl` | Facebook Page URL | url |
| `facebookCategory` | Facebook Category | text |
| `facebookLikes` | Facebook Likes | number |
| `searchTerm` | Search Term | text |
