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

Download Instagram stories effortlessly! Save photos and videos from multiple accounts simultaneously while preserving original quality. Perfect for content creators, social media managers, and anyone wanting to archive Instagram stories. 🚀

- **URL**: https://beta-securitybyobscurity.apify.com/easyapi/instagram-story-downloader.md
- **Developed by:** [EasyApi](https://beta-securitybyobscurity.apify.com/easyapi) (community)
- **Categories:** Social media, Videos
- **Stats:** 158 total users, 16 monthly users, 100.0% runs succeeded, 6 bookmarks
- **User rating**: 3.76 out of 5 stars

## Pricing

$14.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.
You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

# README

## 📱 Instagram Story Downloader

Effortlessly download Instagram stories with our powerful **Instagram Story Downloader**! This Apify actor enables you to download stories from multiple Instagram accounts simultaneously, preserving high-quality media content for your collection.

#### 🌟 Key Features

- **Bulk Downloads**: Download stories from multiple Instagram accounts at once
- **High-Quality Media**: Preserve original quality of photos and videos
- **Format Options**: Download in various formats (mp4 for videos, jpg/png for images)
- **Metadata Support**: Get comprehensive metadata for each story
- **Real-time Processing**: Quick and efficient downloading process

#### 📊 Data Fields Returned

Each story download includes detailed information:

- **url**: Spotify URL for the track.
- **result**:
  - **url**: Unique track identifier.
  - **title**: Title of the track.
  - **thumbnail**: URL to the album art or thumbnail image.
  - **duration**: Length of the track (if available).
  - **medias**: An array of media objects containing:
    - **url**: Direct link to the MP3 stream.
    - **quality**: Quality of the audio (e.g., "audio").
    - **extension**: File extension (e.g., "mp3").
    - **type**: Type of media (e.g., "audio").
  - **type**: Type of content (e.g., "single").
  - **error**: Indicates if there was an error during retrieval (boolean).

#### 💪 Why Choose Our Downloader?

- **User-Friendly**: Simple input format - just paste Instagram usernames
- **Reliable**: Stable performance with high success rate
- **Fast Processing**: Optimized for quick downloads
- **Regular Updates**: Maintained to work with Instagram's latest changes
- **Comprehensive Data**: Get complete story information along with media files

#### 🔧 Use Cases

- Content Creation & Curation
- Social Media Management
- Market Research & Analysis
- Personal Story Archives
- Brand Monitoring

#### Input Example

A full explanation of an input example in JSON.

```
{
    "links": [
        "https://www.instagram.com/stories/cristiano/3508360989198456576/"
    ]
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
	{
		"url": "https://www.instagram.com/stories/cristiano/3508360989198456576/",
		"source": "instagram",
		"author": "Cristiano Ronaldo",
		"title": "instagram",
		"thumbnail": "https://instagram.fhan5-9.fna.fbcdn.net/v/t51.2885-15/468111749_18589959850056421_5615000993270158534_n.jpg?stp=dst-jpg_e15&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMTcweDIwODAuc2RyLmY3NTc2MS5kZWZhdWx0X2ltYWdlIn0&_nc_ht=instagram.fhan5-9.fna.fbcdn.net&_nc_cat=1&_nc_ohc=d5t8xv7g4t8Q7kNvgGhMqTi&_nc_gid=61176ca64fa94fa6acdf915de5977ed3&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=MzUwODM2MDk4OTE5ODQ1NjU3Ng%3D%3D.3-ccb7-5&oh=00_AYBGXnHZSbU4AA8d37Kuhy-aO1jV_IG1CtOyUriPMYKRzw&oe=6749A8BA&_nc_sid=10d13b",
		"duration": 37919,
		"medias": [
			{
				"url": "https://instagram.fhan5-9.fna.fbcdn.net/v/t51.2885-15/468111749_18589959850056421_5615000993270158534_n.jpg?stp=dst-jpg_e15&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMTcweDIwODAuc2RyLmY3NTc2MS5kZWZhdWx0X2ltYWdlIn0&_nc_ht=instagram.fhan5-9.fna.fbcdn.net&_nc_cat=1&_nc_ohc=d5t8xv7g4t8Q7kNvgGhMqTi&_nc_gid=61176ca64fa94fa6acdf915de5977ed3&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=MzUwODM2MDk4OTE5ODQ1NjU3Ng%3D%3D.3-ccb7-5&oh=00_AYBGXnHZSbU4AA8d37Kuhy-aO1jV_IG1CtOyUriPMYKRzw&oe=6749A8BA&_nc_sid=10d13b",
				"height": 2080,
				"width": 1170,
				"id": "3508360989198456576_173560420",
				"quality": "HD",
				"type": "image",
				"extension": "jpg"
			}
		],
		"type": "single",
		"error": false
	},
    ...
]
```

### Related Actors

- 📸 [Instagram Photos Downloader](https://apify.com/easyapi/instagram-photos-downloader) - Effortlessly save high-quality images from Instagram posts and profiles.
- 🎥 [Instagram Videos Downloader](https://apify.com/easyapi/instagram-videos-downloader) - A powerful tool to download videos from Instagram posts, reels, and stories.
- 🎬 [Instagram Reels Downloader](https://apify.com/easyapi/instagram-reels-downloader) - Download Instagram Reels videos in bulk with high quality.
- 🎥 [All-in-One Media Downloader](https://apify.com/easyapi/all-in-one-media-downloader) - Save and download videos, images, or audio from various platforms including Instagram.
- 📱 [TikTok Video Downloader](https://apify.com/easyapi/tiktok-video-downloader) - Download TikTok videos without watermarks in original quality.
- 🎥 [Facebook Video Download](https://apify.com/easyapi/facebook-video-download) - Download high-quality videos from Facebook in various resolutions.
- 🐦 [Twitter/X Video Downloader](https://apify.com/easyapi/twitter-x-video-downloader) - Easily download high-quality videos from Twitter/X.
- 📸 [Pinterest Image Downloader](https://apify.com/easyapi/pinterest-image-downloader) - Easily download high-quality images from Pinterest.
- 🎥 [Snapchat Video Downloader](https://apify.com/easyapi/snapchat-video-downloader) - Download videos from Snapchat stories and posts with ease.
- 📊 [Instagram Profile Scraper](https://apify.com/easyapi/instagram-profile-scraper) - Extract detailed Instagram profile data with comprehensive metrics.
- 📱 [Instagram Posts Scraper](https://apify.com/easyapi/instagram-posts-scraper) - Extract comprehensive details from Instagram posts including likes, comments, and hashtags.
- 🎬 [Instagram Reels Scraper](https://apify.com/easyapi/instagram-reels-scraper) - Scrape Instagram Reels data from user profiles with comprehensive metadata.
- 💬 [Instagram Comments Scraper](https://apify.com/easyapi/instagram-comments-scraper) - Extract comments from Instagram posts with user details and engagement metrics.
- 🏷️ [Instagram Hashtag Scraper](https://apify.com/easyapi/instagram-hashtag-scraper) - Scrape Instagram hashtag data including top posts and engagement metrics.
- 📧 [Instagram Email Scraper](https://apify.com/easyapi/instagram-email-scraper) - Find Instagram users matching your keywords and extract their email addresses.

# Actor input Schema

## `links` (type: `array`):

An array of URLs to process

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

Optionally, use Apify Proxy or custom HTTP proxy to avoid IP address-based blocking.

## Actor input object example

```json
{
  "links": [
    "https://www.instagram.com/stories/kimkardashian/3570236776155599733/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/instagram-story-downloader").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call easyapi/instagram-story-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=easyapi/instagram-story-downloader",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram Story Downloader",
        "description": "Download Instagram stories effortlessly! Save photos and videos from multiple accounts simultaneously while preserving original quality. Perfect for content creators, social media managers, and anyone wanting to archive Instagram stories. 🚀",
        "version": "0.0",
        "x-build-id": "FiDufC9AhIErMTSv1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/easyapi~instagram-story-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-easyapi-instagram-story-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/easyapi~instagram-story-downloader/runs": {
            "post": {
                "operationId": "runs-sync-easyapi-instagram-story-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/easyapi~instagram-story-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-easyapi-instagram-story-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "links"
                ],
                "properties": {
                    "links": {
                        "title": "Links",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "An array of URLs to process",
                        "default": [
                            "https://www.instagram.com/stories/kimkardashian/3570236776155599733/"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Optionally, use Apify Proxy or custom HTTP proxy to avoid IP address-based blocking.",
                        "default": {
                            "useApifyProxy": false,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
