# Snapchat Story Scraper (`codenest/snapchat-story-scraper`) Actor

Extract unlimited Snapchat Stories at rocket speed with rich metadata! Output includes video/audio streams, merged MP4 files, thumbnails & creator metadata, story titles, series/episode labels, and CDN URLs. Perfect for content archiving.

- **URL**: https://apify.com/codenest/snapchat-story-scraper.md
- **Developed by:** [CodeNest](https://apify.com/codenest) (community)
- **Categories:** Social media, Developer tools, Other
- **Stats:** 31 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00/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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 📸 Snapchat Story Scraper - Professional Snapchat Content Extraction Tool

**Effortlessly download Snapchat stories with our enterprise-grade **Snapchat Story Scraper**! This Apify actor enables you to batch download Snapchat stories while preserving high video quality, comprehensive metadata, and direct CDN access.**

***

### 📋 Overview

Need to archive Snapchat content or repurpose stories? This **Snapchat Story Scraper** delivers:

- 🎬 **Smart media handling**: Automatic video+audio merging
- ☁️ **Apify Storage**: Encrypted download URLs
- 📊 **Rich metadata**: Titles, creators, series/episode info
- 🔄 **Batch processing**: Handle multiple stories at once
- 🛡️ **Proxy-ready**: Bypass geo/IP restrictions

Perfect for content agencies 🎬, social media managers 📈, market researchers 🔍, and app developers 📱!

***

### ⭐ Core Capabilities/Key Features

#### 🎥 Media Options

- **Dual Streams**: Separate video-only + audio-only tracks
- **Auto-Merged Output**: Combined audio+video file via Apify KV store
- **Thumbnails**: High-quality cover images for each story
- **Bulk Mode**: Process 100+ story URLs per run

#### 📝 Metadata Mastery

- **Creator Profiles**: Author names and handles
- **Episode Information**: Series and episode labels
- **Story Titles**: Original Snapchat story titles
- **Thumbnail URLs**: Direct access to preview images

#### ⚙️ Advanced Tech

- **Smart Merging**: Automatic video/audio combination
- **Apify Storage Toggle**: On/Off for download links
- **Error Resilience**: Per-story error handling
- **Resolution Fallback**: Auto-select best available

***

### 🔧 Input Configuration

Configure your **Snapchat Story Scraper** by entering story URLs in the Input Section. The **Snapchat Story Scraper** accepts URLs in this format:

```json
{
  "download_media": true,
  "useKvStore": true,
  "timeout": 30,
  "story_urls": [
    {
      "url": "https://www.snapchat.com/p/0d99af18-a50d-437c-a2a9-97eb2310eb2f/63102283948032"
    },
    {
      "url": "https://www.snapchat.com/p/18f16e7a-f963-46ad-b5a7-c49ada85d713/3137365866115072"
    }
  ]
}
```

#### 📊 Input Specifications

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `story_urls` | Array | ✅ Yes | - | Snapchat story URLs to process |
| `url` | String | ✅ Yes | - | Valid Snapchat story URL (p/ format) |
| `download_media` | Boolean | ❌ No | `true` | Enable/disable media downloading |
| `useKvStore` | Boolean | ❌ No | `true` | Store merged videos in Apify KV store |
| `timeout` | Integer | ❌ No | `30` | Request timeout in seconds |

***

### 📤 Output Structure

Your **Snapchat Story Scraper** will produce output like this:

```json
[
  {
    "status": "ok",
    "success": true,
    "input_url": "https://www.snapchat.com/p/0d99af18-a50d-437c-a2a9-97eb2310eb2f/63102283948032",
    "resolved_page_url": "https://www.snapchat.com/p/0d99af18-a50d-437c-a2a9-97eb2310eb2f/63102283948032",
    "story_ids": {
      "profile_id": "0d99af18-a50d-437c-a2a9-97eb2310eb2f",
      "story_id": "63102283948032"
    },
    "story_metadata": {
      "title": "Cat Walk In Mall 😎🫡",
      "creator_name": "Rush Hour",
      "description": "Watch Rush Hour on Snapchat",
      "series_label": "Series 15",
      "episode_label": "Episode 62",
      "duration_seconds": null,
      "timestamp": null,
      "upload_date": null,
      "availability": null,
      "thumbnail_url": "https://cf-st.sc-cdn.net/d/L0L4ze70LQHSZj3aVyPXi.410"
    },
    "download": {
      "downloadable_assets": {
        "video_url": "https://cf-st.sc-cdn.net/d/Q3zO9gv3oU1a8ZFmjUEZE.85.mp4",
        "audio_url": "https://cf-st.sc-cdn.net/d/oH9Co5ZwsVwP1mh4cxdvb.mp4",
        "separate_streams": true,
        "merge_required": true,
        "merged_video": {
          "success": true,
          "file_size": 6204380,
          "url": "https://api.apify.com/v2/key-value-stores/.../snapchat_63102283948032.mp4"
        }
      }
    },
    "errors": []
  }
]
```

#### 📖 Output Field Documentation

**Status Section**
| Field | Description |
|-------|-------------|
| `status` | Processing status (ok/error) |
| `success` | Boolean success indicator |
| `input_url` | Original URL provided to scraper |
| `resolved_page_url` | Canonical URL after resolution |

**Story Identifiers**
| Field | Description |
|-------|-------------|
| `profile_id` | Unique Snapchat profile identifier |
| `story_id` | Unique story content identifier |

**Metadata Section**
| Field | Description |
|-------|-------------|
| `title` | Story title from Snapchat |
| `creator_name` | Content creator's display name |
| `description` | Story description text |
| `series_label` | Series name if part of collection |
| `episode_label` | Episode number/title |
| `thumbnail_url` | High-quality preview image URL |

**Download Assets**
| Field | Description |
|-------|-------------|
| `video_url` | Direct video stream URL (no audio) |
| `audio_url` | Separate audio track URL |
| `separate_streams` | Whether streams are separate |
| `merge_required` | Whether merging is needed |
| `merged_video.success` | Merging success status |
| `merged_video.file_size` | Merged file size in bytes |
| `merged_video.url` | Download URL for merged video |

***

### 🎯 Quality Features

The **Snapchat Story Scraper** automatically detects and provides:

1. **Original Quality** - Source resolution from Snapchat CDN
2. **Optimized Streams** - Separate video/audio for editing
3. **Merged Output** - Ready-to-use combined file
4. **Thumbnail Generation** - High-quality preview images

***

### 🛠️ Technical Features

#### Advanced Format Support

- **DASH/HLS extraction** from Snapchat CDN
- **Separate stream handling** (video + audio tracks)
- **Automatic merging** using FFmpeg
- **Container format detection**

#### Metadata Extraction

- **Creator attribution** data preservation
- **Series/episode** structure detection
- **Story titles** and descriptions
- **Thumbnail URL** extraction

#### Reliability Features

- **Direct CDN access** for maximum reliability
- **Per-story error handling** (one failure doesn't break all)
- **Comprehensive error logging**
- **URL validation and normalization**
- **Configurable timeout** for slow connections

***

### 💼 Use Cases

- **Content Agencies** – Archive client Snapchat campaigns
- **Social Media Managers** – Track competitor story content
- **Market Researchers** – Analyze Snapchat content trends
- **Video Editors** – Remix raw video/audio tracks
- **App Developers** – Build Snapchat-powered applications
- **Brands** – Monitor influencer story mentions

***

### 🌟 Why Choose Our Snapchat Story Scraper?

- **Reliable Performance** – Stable and efficient downloading process
- **User-Friendly** – Simple interface for both beginners and advanced users
- **Regular Updates** – Maintained to ensure Snapchat compatibility
- **Comprehensive Data** – Get all metadata in one place
- **Smart Merging** – Automatic video+audio combination
- **Batch Processing** – Handle multiple stories simultaneously

***

### ⚠️ Limitations

- Only works with **public Snapchat stories**
- The **Snapchat Story Scraper** may hit rate limits depending on Snapchat's restrictions
- Merged videos require `useKvStore: true` for Apify storage
- Some stories may have missing duration/timestamp metadata

***

### 🔗🛠 Related Actors (Full Content Scraping Suite)

Explore our complete scraping suite for enhanced content extraction:

#### 🎵 Facebook Scrapers:

- [Facebook Video Downloader](https://apify.com/codenest/facebook-video-downloader)
- [Facebook Reels Downloader](https://apify.com/codenest/facebook-reels-downloader)

#### OK.ru Scrapers:

- [OK.ru Video Downloader](https://apify.com/codenest/ok-ru-video-downloader)

#### IFunny Scrapers:

- [IFunny Picture/Image Downloader](https://apify.com/codenest/ifunnypicturedownloader)
- [IFunny Video Downloader](https://apify.com/codenest/ifunny-video-downloader)

#### 9GAG Scrapers:

- [9GAG Post Downloader(Video & Image)](https://apify.com/codenest/9gag-post-downloader-video-image)

***

### 📧 Need Customization?

Want **higher resolutions**, **batch downloads**, or **metadata enhancements** for your **Snapchat Story Scraper**?

✉ Email **<codenest2.0@gmail.com>** for tailored solutions!

***

# Actor input Schema

## `story_urls` (type: `array`):

List of public Snapchat story URLs (e.g. https://www.snapchat.com/p/profile-id/story-id).

## `download_media` (type: `boolean`):

When enabled, the actor downloads separate video and audio backing files and merges them into a single MP4 using ffmpeg.

## `useKvStore` (type: `boolean`):

When enabled (and download\_media is also on), the merged MP4 is uploaded to Apify KV Store and a permanent public URL is returned.

## `timeout` (type: `integer`):

Timeout in seconds for page fetches and manifest checks. Must be 5-120.

## Actor input object example

```json
{
  "story_urls": [
    {
      "url": "https://www.snapchat.com/p/example-profile/example-story-id"
    }
  ],
  "download_media": true,
  "useKvStore": true,
  "timeout": 30
}
```

# 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 = {
    "story_urls": [
        {
            "url": "https://www.snapchat.com/p/example-profile/example-story-id"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codenest/snapchat-story-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 = { "story_urls": [{ "url": "https://www.snapchat.com/p/example-profile/example-story-id" }] }

# Run the Actor and wait for it to finish
run = client.actor("codenest/snapchat-story-scraper").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 '{
  "story_urls": [
    {
      "url": "https://www.snapchat.com/p/example-profile/example-story-id"
    }
  ]
}' |
apify call codenest/snapchat-story-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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