> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram Highlights API

> Instagram story highlights with title, ID, URL and owner. Pass the usernames to pull from.

`POST /v1/data/instagram/highlights/run`

**Pricing:** $0.004 per highlight ($4.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**usernames** `string[]` *required*

One or more usernames. One request reads them all.

**maxResults** `integer` (default: 10)

How many highlights to return in total. Defaults to 10; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/instagram/highlights/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "usernames": [
      "natgeo",
      "nike",
      "github"
    ],
    "maxResults": 3
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/instagram/highlights/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "usernames": [
        "natgeo",
        "nike",
        "github"
    ],
    "maxResults": 3
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/instagram/highlights/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "usernames": [
    "natgeo",
    "nike",
    "github"
  ],
  "maxResults": 3
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one highlight, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `storyId` | Story ID | text |
| `shortcode` | Shortcode | text |
| `username` | Username | text |
| `profileUrl` | Profile URL | url |
| `highlightId` | Highlight ID | text |
| `highlightTitle` | Highlight Title | text |
| `highlightUrl` | Highlight URL | url |
| `mediaType` | Media Type | text |
| `imageUrl` | Image URL | url |
| `videoUrl` | Video URL | url |
| `videoDuration` | Video Duration | number |
| `hasAudio` | Has Audio | boolean |
| `width` | Width | number |
| `height` | Height | number |
| `takenAt` | Taken At | text |
| `musicTitle` | Music Title | text |
| `musicArtist` | Music Artist | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "instagram/highlights",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "videoUrl": "https://scontent-lhr11-1.cdninstagram.com/o1/v/t2/f2/m78/AQPyy1nSmXOn73Q1QB0NVznCvo1RmXxggQMktLVDCIUMzEKO_6-0Qil9pON54uB0l9mHyflRzzzRAJIhXoDdyiKX2f5h01zsvcDN...",
      "mediaType": "video",
      "videoDuration": 9.943,
      "profileUrl": "https://www.instagram.com/natgeo/",
      "username": "natgeo",
      "hasAudio": true,
      "musicTitle": null,
      "storyId": "4012120567117354624",
      "highlightId": "18023864549864045",
      "imageUrl": "https://scontent-lhr11-1.cdninstagram.com/v/t51.71878-15/858981307_2584622395349397_7318871625928867813_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=106&ig_cache_key=ND...",
      "highlightTitle": "BOTW 2027",
      "highlightUrl": "https://www.instagram.com/stories/highlights/18023864549864045/",
      "takenAt": "2026-10-20T13:14:30.000Z",
      "height": 1280,
      "width": 720,
      "musicArtist": null,
      "shortcode": "Det6mYPEZaA"
    }
  ]
}
```

## Related APIs

For currently live stories use [`instagram/stories`](https://docs.mindcase.co/apis/instagram/stories).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.