# Instagram Stories & Highlights Scraper (`deepmine/instagram-stories-scraper`) Actor

Instagram stories and highlights scraper: public accounts in; live stories and highlights with photo and video links, time posted, mentions, link, hashtag and location stickers, via a public story viewer service. $1.49 per 1,000 stories on Starter, 2x under the most-used stories scraper.

- **URL**: https://apify.com/deepmine/instagram-stories-scraper.md
- **Developed by:** [DeepMine](https://apify.com/deepmine) (community)
- **Categories:** Social media, Lead generation, Videos
- **Features:** Limited permissions
- **Stats:** 10 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.09 / 1,000 stories

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Instagram Stories & Highlights Scraper

Type Instagram usernames and get one row per **live story** or **highlight item**: photo or video link, time posted, age, mentions and link stickers, with **no login**.

| username | kind | mediaType | takenAt | ageHours | isLive | source |
|---|---|---|---|---|---|---|
| bbcnews | story | image | 2026-11-11T06:37:49Z | 1.1 | true | insnoop.com |
| nasa | story | video | 2026-11-10T18:40:51Z | 13 | true | insnoop.com |
| cnn | highlight | video | 2025-12-29T02:05:04Z | 7613.1 | false | instagram.com |

<sub>Collected 2026-11-11 (runs FSIDFwI71BpINP3u6 and Qoa7Vn27GEdNSSUfT). Media links and the other columns are in the dataset.</sub>

**$1.49 per 1,000 stories on Starter** ($1.69 Free, $1.29 Scale, $1.09 Business). The prefilled run (cnn, bbcnews, nasa: 34 live stories on 2026-11-11) costs about **$0.05**.

### Where the data comes from

- **Live stories** come from **one public story viewer service, insnoop.com**, because Instagram shows live stories only to signed-in viewers. There is **no working backup viewer today**: two other viewer sites are wired in, but both answer with a captcha now, so if insnoop.com is down or changes, live stories stop until it is fixed.
- **Highlights** come from **Instagram itself** (its public, logged-out pages).
- Every row names its source in `source`, and the run's status line says which viewer answered.
- If no viewer answers, a run that asked for live stories **fails with one clear line and charges nothing**; highlights keep working.

### What you get

| Field | Live stories | Highlights |
|---|---|---|
| `imageUrl`, `videoUrl`, `thumbnailUrl` | videos on Instagram's CDN; images through the viewer's relay (`p-w.insnoop.com`) | Instagram's CDN |
| `takenAt`, `expiringAt`, `isLive`, `ageHours` | yes | yes |
| `mediaType` (image / video) | yes | yes |
| `width`, `height`, `videoDuration`, `hasAudio`, `imageVersions`, `videoVersions` (every size) | one size, no dimensions | yes |
| `mentions` (username, name, picture) | when the viewer passes them | when Instagram includes them logged out |
| `linkStickers` / `links` (real target address, unwrapped from l.instagram.com) | - | yes (when the story has a link sticker) |
| `hashtags`, `locations` (id and position) | - | when Instagram includes them logged out |
| `musicSticker`, `linkedPost`, `questions`, `sliders`, `countdowns`, `accessibilityCaption` | - | only when Instagram includes them logged out (not seen filled in our test runs) |
| `isPaidPartnership`, `storyId`, `shortcode`, `storyUrl` | `storyUrl` (account's story page) | yes |
| `highlightId`, `highlightTitle`, `highlightCoverUrl`, `highlightUrl` | - | yes |
| Owner: `username`, `userId`, `fullName`, `isVerified`, `isPrivate`, `profilePicUrl`, `followersCount` | yes | yes |
| `source`: who served the row | insnoop.com | instagram.com |

Live-story stickers (links, locations, hashtags, music, polls) are not passed by the viewer service, and Instagram has
no logged-out route to them.

### Input

```json
{ "usernames": ["cnn", "https://www.instagram.com/bbcnews/"], "content": "stories", "maxAgeHours": 24 }
```

- `usernames`: usernames, profile links, story links or highlight links.
- `content`: `stories` (live stories), `highlights`, or `both`.
- `maxAgeHours` (default **24**): only live stories posted within this many hours are saved and charged. The viewer
  service often still holds stories up to about 48 hours old; set 48 to get those too (marked `isLive: false`), or 0
  for everything it holds. Older stories are skipped for free and counted in the status line.
- `maxHighlightsPerProfile` (default 10, 0 = all), `resolveMediaUrls` (Instagram's own CDN links for videos).

### Sample row (a live story)

```json
{"username": "bbcnews", "kind": "story", "mediaType": "image", "takenAt": "2026-11-11T06:37:49.000Z",
 "expiringAt": "2026-11-12T06:37:49.000Z", "isLive": true, "ageHours": 1.1,
 "imageUrl": "https://p-w.insnoop.com/U2FsdGVkX19jNjWQ...", "videoUrl": null,
 "storyUrl": "https://www.instagram.com/stories/bbcnews/", "mentions": [], "followersCount": 31275122,
 "source": "insnoop.com", "mediaUrlsFrom": "insnoop.com"}
```

### How it works and how it tells you when something breaks

This Actor never signs in. For each account it first asks Instagram itself whether a story is up (accounts with
**no story up cost nothing** and never reach the viewer service), then reads the live stories from the viewer service
and the highlights from Instagram's own public pages.

The status line names every story source and whether it answered, e.g.
`Story suppliers: insnoop.com answered (3 accounts); iganony.net not needed; anonyig.com not needed`, plus anything
that went wrong: accounts not found, private, whose stories weren't served, or whose highlights Instagram refused.
The full detail is in the run summary (`OUTPUT`).

When no story viewer answers:

- `content: stories`: the run **fails** with one line, `Live stories unavailable: no story viewer service answered
  (...). Nothing was charged. Highlights still work: set content to 'highlights'.` You never get an empty "success".
- `content: both`: the highlights are delivered (and charged), the run succeeds, and its status line says live
  stories were unavailable (`OUTPUT.liveStoriesUnavailable: true`).
- `content: highlights` never touches a viewer service. If Instagram refuses the highlights query for every account,
  the run fails with one line (`Highlights unavailable: ... Nothing was charged.`).

Freshness: the newest story the viewer serves is compared with Instagram's own "newest story" time; an account
where the viewer is behind is listed under `problems.staleSupplier` in `OUTPUT`.

### Pricing

Pay per result: one row (a live story or a highlight item) is one result. $1.49 per 1,000 on Starter, $1.69 Free,
$1.29 Scale, $1.09 Business. No start fee. Accounts with no story up, stories older than `maxAgeHours`, private and
missing accounts are never charged.

### FAQ

**Do I need an Instagram account?** No. Nothing is signed in.

**Private accounts?** No: only public accounts. Private ones are named in the run summary and not charged.

**Why are live-story images on insnoop.com links?** The viewer service relays the image file itself; videos are
turned into Instagram's own CDN links.

**How fresh?** Stories are read at run time, as the viewer service has them. Schedule the Actor (for example every
12 hours) to archive every story an account posts.

### Feedback

Found a bug or missing a field? Open an issue in the Issues tab. If the Actor saves you time, a short review on its
Store page helps others find it.

# Actor input Schema

## `usernames` (type: `array`):

Usernames (natgeo, @nasa), profile links (https://www.instagram.com/nasa/), story links (https://www.instagram.com/stories/nasa/) or highlight links (https://www.instagram.com/stories/highlights/18145966027591735/).

## `content` (type: `string`):

Live stories are the ones an account posted recently (see 'Max story age'). Highlights are the stories an account pinned to its profile; they come from Instagram itself, with link, hashtag and location stickers when Instagram includes them.

## `maxHighlightsPerProfile` (type: `integer`):

How many highlights to open per account (each with all its items). 0 = all.

## `maxAgeHours` (type: `integer`):

Only live stories posted within this many hours are saved and charged; older ones are skipped for free. 24 = what Instagram shows as live. The viewer service often still holds stories up to about 48 hours old: set 48 to get those too (marked isLive = false), or 0 for everything it holds.

## `resolveMediaUrls` (type: `boolean`):

Turn the viewer site's video links into Instagram's own CDN links (one tiny HEAD request per video). Images always come through the viewer site's relay.

## `proxyConfiguration` (type: `object`):

Apify datacenter proxy is enough; residential is never needed.

## Actor input object example

```json
{
  "usernames": [
    "cnn",
    "bbcnews",
    "nasa"
  ],
  "content": "stories",
  "maxHighlightsPerProfile": 10,
  "maxAgeHours": 24,
  "resolveMediaUrls": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `stories` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "usernames": [
        "cnn",
        "bbcnews",
        "nasa"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/instagram-stories-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "usernames": [
        "cnn",
        "bbcnews",
        "nasa",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("deepmine/instagram-stories-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "usernames": [
    "cnn",
    "bbcnews",
    "nasa"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call deepmine/instagram-stories-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,deepmine/instagram-stories-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lTVsitqJtpAbWy8ni/builds/PPLWJqdCbdWD1B3Kv/openapi.json
