# Instagram Story Downloader (`deepmine/instagram-story-downloader`) Actor

Instagram story downloader: usernames or story links in; a direct download link for each live story photo and video, with file name, time posted and age, via a public story viewer service. $1.19 per 1,000 stories on Starter, 2.5x cheaper than the most-used Instagram stories scraper. No login.

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

## Pricing

from $0.89 / 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 Story Downloader

This **Instagram story downloader** takes usernames or story links and gives you a **direct download link for each live
story photo and video**, with a ready file name, the time it was posted and its age. No login, no browser.

| username | mediaType | fileName | takenAt | ageHours | source |
|---|---|---|---|---|---|
| nasa | video | nasa_story_4027505175539163034.mp4 | 2026-11-10T18:40:51Z | 15.6 | insnoop.com |
| cnn | image | cnn_story_4027265786622288752.jpg | 2026-11-10T10:45:14Z | 23.5 | insnoop.com |
| cnn | image | cnn_story_4027331310098214090.jpg | 2026-11-10T12:55:25Z | 21.3 | insnoop.com |

<sub>Collected 2026-11-11 (run NVvJCu1qjW1k61PUC). The download links (`mediaUrl`) and the other columns are in the dataset.</sub>

**$1.19 per 1,000 stories on the Starter plan** ($1.39 Free, $0.99 Scale, $0.89 Business). You pay per story
delivered; an account with no live story costs nothing.

### Where the stories come from (please read)

Instagram shows live stories only to signed-in viewers, so this Actor reads them from **one public story viewer
service, insnoop.com**. There is **no working backup viewer today**: if insnoop.com is down or changes, the run stops
with one clear line and **charges nothing**, until it is fixed. Every row names its source in `source`.

- **Videos**: `mediaUrl` is Instagram's own CDN link (it carries an expiry, `oe=` in the address).
- **Photos**: `mediaUrl` goes through the viewer service's relay (`p-w.insnoop.com`), which serves the file itself.
- Download the files soon after the run; this Actor gives links, not a stored copy of the files.

### How to download Instagram stories

1. Paste usernames (`cnn`, `@nasa`), profile links, or story links into **Instagram usernames, profile or story
   links**. A link like `https://www.instagram.com/stories/nasa/` gives all of the account's live stories; a link that
   ends in a story number gives **that story only**, never other stories in its place. When the story service sends
   no story numbers, the story is matched by the time its number encodes, and only when exactly one of the account's
   stories fits. If that story can't be found or told apart (it may have expired, or several were posted within
   seconds of it), the link gives nothing, is named in the status line and costs nothing.
2. Keep **Max story age** at 24 hours (what Instagram shows as live), or set 48 to also get the ones the viewer still
   holds from the day before.
3. Run, then open the **Downloads** table: `mediaUrl` is the file itself, `fileName` a name to save it under. Export as
   JSON, CSV or Excel, or read the dataset through the API and fetch each `mediaUrl`.

### What you get, per story

- `mediaUrl`: the direct download link, and `fileName` (`cnn_story_<id>.mp4`)
- `imageUrl`, `videoUrl`, `thumbnailUrl`, `mediaType` (image / video), `position` (1 = the first story delivered for that account)
- `storyId`, `storyUrl`, `takenAt`, `takenAtTimestamp`, `expiringAt`, `isLive`, `ageHours`
- `mentions` when the viewer passes them
- the owner: `username`, `userId`, `fullName`, `isVerified`, `profilePicUrl`, `followersCount`
- `source` (the viewer service), `mediaUrlsFrom`, `inputUrl`, `scrapedAt`

Live-story stickers (link, location, hashtag, music, poll) are not passed by the viewer service, and Instagram has no
logged-out route to them, so those columns stay empty on live stories.

Fields, in row order: `username`, `kind`, `position`, `storyId`, `shortcode`, `storyUrl`, `mediaType`, `mediaUrl`,
`fileName`, `productType`, `takenAt`, `takenAtTimestamp`, `expiringAt`, `isLive`, `ageHours`, `imageUrl`, `videoUrl`,
`thumbnailUrl`, `width`, `height`, `videoDuration`, `hasAudio`, `imageVersions`, `videoVersions`, `linkStickers`,
`links`, `hashtags`, `locations`, `mentions`, `musicSticker`, `linkedPost`, `questions`, `sliders`, `countdowns`,
`isPaidPartnership`, `accessibilityCaption`, `highlightId`, `highlightTitle`, `highlightCoverUrl`, `highlightUrl`,
`userId`, `fullName`, `isVerified`, `isPrivate`, `profilePicUrl`, `followersCount`, `source`, `mediaUrlsFrom`,
`inputUrl`, `scrapedAt`.

### Input example

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

### Good to know

- Accounts with no story up, private accounts, accounts that don't exist and story links whose story is gone are named
  in the run's status line and in the `OUTPUT` record, and are never charged. Highlight links are not read here.
- Only Apify's datacenter proxy is used; no residential proxy, no account.
- Want highlights (stories pinned to a profile)? Use Instagram Highlights Downloader.

Did it save you time? Please **leave a review** on the Store page: it helps others find it.

# Actor input Schema

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

Usernames (cnn, @nasa), profile links (https://www.instagram.com/nasa/), or story links: https://www.instagram.com/stories/nasa/ gives all of the account's live stories, a link that ends in a story number gives that story only (nothing, and no charge, if it has expired).

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

Only stories posted within this many hours are saved and charged; older ones are skipped for free. 24 = what Instagram shows as live. Set 48 to also get stories the viewer service still holds from the day before (isLive = false), 0 for all it holds. A link to one story ignores this.

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

Apify datacenter proxy is enough; residential is never needed.

## Actor input object example

```json
{
  "usernames": [
    "cnn",
    "nasa"
  ],
  "maxAgeHours": 24,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `downloads` (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",
        "nasa"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/instagram-story-downloader").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",
        "nasa",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("deepmine/instagram-story-downloader").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",
    "nasa"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call deepmine/instagram-story-downloader --silent --output-dataset

```

## MCP server setup

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

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/vLW9dSelGTVHKRvkD/builds/mlwSiWQxyYIq9Nxam/openapi.json
