> ## 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 Stories API

> Extract a public Instagram account's currently-active Stories (media URLs, timestamps, links, music, and poster details) by username

`POST /v1/data/instagram/stories/run`

**Pricing:** $0.01 per storie ($10.00 per 1,000).

Look up the currently-active Stories for one or more public accounts by username or profile URL.

## Request

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

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

Instagram usernames (e.g. natgeo, cnn) or full profile URLs (e.g. [https://www.instagram.com/natgeo/](https://www.instagram.com/natgeo/)) whose active Stories you want. Accounts with no live story return no rows.

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

How many stories to return in total across all accounts. Defaults to 100; at most 10,000.

Min `1`; max `10000`.

## Example

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

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

r = requests.post(
    "https://api.mindcase.co/v1/data/instagram/stories/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "usernames": [
        "natgeo"
    ]
}},
)
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/stories/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "usernames": [
    "natgeo"
  ]
} }),
});
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 storie, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `storyId` | Story ID | text |
| `shortcode` | Shortcode | text |
| `username` | Username | text |
| `profileUrl` | Profile URL | url |
| `fullName` | Full Name | text |
| `isVerified` | Is Verified | boolean |
| `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 |
| `expiringAt` | Expiring At | text |
| `isPaidPartnership` | Is Paid Partnership | boolean |
| `linkUrl` | Link URL | url |
| `linkTitle` | Link Title | text |
| `musicTitle` | Music Title | text |
| `musicArtist` | Music Artist | text |
| `posterProfilePic` | Poster Profile Pic | url |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "instagram/stories",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "videoUrl": null,
      "posterProfilePic": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-19/683576066_18653628823019133_9051036240972105113_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3R...",
      "mediaType": "Image",
      "videoDuration": null,
      "linkTitle": "Visit Link",
      "profileUrl": "https://www.instagram.com/natgeo/",
      "username": "natgeo",
      "hasAudio": null,
      "musicTitle": null,
      "storyId": "3964977242590919849_787132",
      "fullName": "National Geographic",
      "expiringAt": "2026-08-17T12:09:05Z",
      "isVerified": true,
      "imageUrl": "https://scontent-iad6-1.cdninstagram.com/v/t51.82787-15/774075767_18686981326019133_8752804760499767234_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=1&ig_cache_key=Mzk2...",
      "takenAt": "2026-08-16T12:09:05Z",
      "isPaidPartnership": false,
      "height": 2080,
      "width": 1170,
      "linkUrl": "nationalgeographic.com/health/article/gut-microbiome-stress-response?cmpid=org=ngp::mc=social::src=instagram::cmp=editorial::add=igs20260816health-peoplestre...",
      "musicArtist": null,
      "shortcode": "DcGbct3I7yp"
    }
  ]
}
```

## Related APIs

For saved story highlights use [`instagram/highlights`](https://docs.mindcase.co/apis/instagram/highlights); for posts and reels use [`instagram/posts`](https://docs.mindcase.co/apis/instagram/posts).


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