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

Extract unlimited Snapchat Stories and spotlight from profile 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-scraper.md
- **Developed by:** [CodeNest](https://apify.com/codenest) (community)
- **Categories:** Social media, Developer tools, Other
- **Stats:** 35 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 scraped results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 📸 Snapchat Scraper (Stories, Spotlight & Profiles Downloader)

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange?logo=apify)](https://apify.com)
[![Pay-Per-Event](https://img.shields.io/badge/Pricing-Pay--Per--Event-green)](https://apify.com)
[![Category](https://img.shields.io/badge/Category-Social%20Media-blue)](#)
[![Category](https://img.shields.io/badge/Category-Video%20Downloader-red)](#)
[![No Login Required](https://img.shields.io/badge/Auth-No%20Login%20Required-brightgreen)](#)

**The most reliable and comprehensive Snapchat scraper on Apify! Download public Snapchat Stories, Spotlight Videos, Creator Profiles, and Show Episodes with full metadata (views, likes, comments, subscriber count, bio, avatar) and high-speed MP4 downloads with automatic audio muxing.**

***

### 🌟 Why Choose This Snapchat Scraper?

| Feature | This Scraper | Generic Scrapers |
|---|---|---|
| **Direct Media & Profile Slots** | ✅ **Separate Slots** (Direct & Profile URLs) | ❌ Confusing Single Input |
| **Spotlight Metrics** | ✅ **Views, Likes, Boosts, Comments & Shares** | ❌ Missing or Broken Stats |
| **Video & Audio Merging** | ✅ **Automatic ffmpeg Muxing into single MP4** | ❌ Muted Videos or Broken HLS |
| **Permanent Cloud Links** | ✅ **Apify Key-Value Store Public URLs** | ❌ Temporary URLs only |
| **Story & Highlights Scraper** | ✅ **24h Active Stories & Highlight Albums** | ❌ Only Profile Bios |
| **Ephemeral Story Handling** | ✅ **Graceful 24h Expiry Detection** | ❌ Fails with Unhandled Errors |
| **Pricing Transparency** | ✅ **Pay-Per-Event ($0.005/snap)** | ❌ Expensive Monthly Lock-in |
| **Free Tier Access** | ✅ **3 Free Items for Every User** | ❌ Paid Only |

***

### 📋 What Can You Extract?

- 🌟 **Spotlight Videos**: Extract viral Spotlight videos with captions, view counts, likes (`boostCount`), comments, shares, duration, and direct MP4 downloads.
- 👤 **Creator & Show Profiles**: Extract creator username, display name, bio, subscriber count, avatar, snapcode QR, website, and verification badge.
- 🎬 **Stories & Highlights**: Scrape active 24-hour stories, curated highlight albums, and episodic publisher shows.
- 🔊 **Auto-Merged Audio**: Automatically mux separate video and audio backing streams into a single high-quality MP4 using ffmpeg.
- ☁️ **Permanent Public Links**: Upload directly to Apify Key-Value Store for permanent, shareable video links.
- ⚡ **High Concurrency & Speed**: Multi-threaded async processing scrapes batches of snaps in seconds.

***

### 🔧 Input Configuration

Configure your **Snapchat Scraper** easily with dedicated input fields for direct media and profile channels:

```json
{
  "direct_urls": [
    { "url": "https://www.snapchat.com/@garywagman19/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYd2lhZ3dxZmJzAaCQsCiVAaCQsCh2AAAAAQ" }
  ],
  "profile_urls": [
    { "url": "https://www.snapchat.com/@mr_yashuuu09" }
  ],
  "scrape_types": ["stories", "spotlight"],
  "max_items_per_profile": 20,
  "download_media": true,
  "useKvStore": true,
  "maxConcurrency": 5
}
```

#### 📊 Input Specifications

| Parameter | Type | Default | Description |
|---|---|---|---|
| `direct_urls` | Array | `[]` | **Direct Story & Spotlight URLs**: Direct links to individual Snapchat Stories (`/p/{profile}/{story}`) or Spotlight videos (`/spotlight/{id}`). Scrapes exact media items directly. |
| `profile_urls` | Array | `[]` | **Profile & Channel URLs**: Creator profiles (`@username`, `/add/{username}`) or Show/Channel links (`/p/{profile_uuid}`). Scrapes profile metadata, subscribers, bio, and all active stories, show episodes, and spotlights. |
| `scrape_types` | Array | `["stories", "spotlight"]` | **Profile Content Filter**: Choose whether to extract stories (active stories & show episodes), spotlight videos, or both from profile URLs. |
| `max_items_per_profile` | Integer | `20` | Maximum number of snaps or spotlight videos to extract per profile (1–100). |
| `download_media` | Boolean | `true` | Automatically download and mux separate video + audio streams into a single high-quality MP4 using ffmpeg. |
| `useKvStore` | Boolean | `true` | Upload merged MP4 to Apify Key-Value Store for a permanent, shareable public link. |
| `maxConcurrency` | Integer | `5` | Number of URLs to process concurrently (1–15). |
| `proxyConfiguration` | Object | Enabled | Apify proxy configuration (Residential proxy recommended for large batch jobs). |
| `startUrls` | Array | Optional | Legacy slot accepting any combination of direct or profile URLs for backward compatibility. |

***

### 📤 Output Structures

#### 1. Spotlight Video Output

```json
{
  "status": "ok",
  "success": true,
  "type": "spotlight",
  "id": "W7_EDlXWTBiXAEEniNoMPwAAYd2lhZ3dxZmJzAaCQsCiVAaCQsCh2AAAAAQ",
  "url": "https://www.snapchat.com/@garywagman19/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYd2lhZ3dxZmJzAaCQsCiVAaCQsCh2AAAAAQ",
  "title": "Gary Wagman's Bold Green Look & Sing-Along Moment",
  "description": "Spotlight video by Gary Wagman",
  "creator_name": "Gary Wagman",
  "creator_username": "garywagman19",
  "creator_url": "https://www.snapchat.com/@garywagman19",
  "source_profile": "Gary Wagman (@garywagman19)",
  "subscriber_count": 1450,
  "view_count": 28583,
  "views_display": "28,583",
  "like_count": 5131,
  "boost_count": 5131,
  "recommend_count": 87,
  "comment_count": 3,
  "share_count": 68,
  "duration_seconds": 23.4,
  "thumbnail_url": "https://bolt-gcdn.sc-cdn.net/bb/...",
  "video_url": "https://bolt-gcdn.sc-cdn.net/bb/...mp4",
  "merged_video_url": "https://api.apify.com/v2/key-value-stores/.../records/snapchat_W7_EDlX...mp4",
  "upload_date": "2025-08-14 12:44:11 UTC"
}
```

#### 2. Creator Profile Output

```json
{
  "status": "ok",
  "success": true,
  "type": "profile",
  "username": "mr_yashuuu09",
  "display_name": "Yash Choudhary",
  "bio": "Creator & Lifestyle Vlogger",
  "subscriber_count": 1250000,
  "avatar_url": "https://cf-st.sc-cdn.net/aps/bolt/...",
  "snapcode_url": "https://app.snapchat.com/web/deeplink/snapcode?username=mr_yashuuu09",
  "website_url": "https://youtube.com/@mryashuuu",
  "is_verified": true,
  "url": "https://www.snapchat.com/@mr_yashuuu09",
  "stories_count": 10,
  "spotlights_count": 10,
  "total_media_scraped": 20
}
```

#### 3. Story / Highlight Snap Output

```json
{
  "status": "ok",
  "success": true,
  "type": "story",
  "subtype": "active_24h_story",
  "id": "f0Re8uHTTvKiNaWuyBWRaAAAgeXZ2d25nbnZ4AaF6hsLFAaF6hrQCAAAAAA",
  "url": "https://www.snapchat.com/@mr_yashuuu09",
  "title": "Story Snap by Yash Choudhary",
  "creator_name": "Yash Choudhary",
  "creator_username": "mr_yashuuu09",
  "source_profile": "Yash Choudhary (@mr_yashuuu09)",
  "subscriber_count": 1250000,
  "view_count": null,
  "views_display": "Private on 24h Story",
  "like_count": null,
  "comment_count": null,
  "share_count": null,
  "media_type": "video",
  "video_url": "https://cf-st.sc-cdn.net/d/...",
  "thumbnail_url": "https://cf-st.sc-cdn.net/d/...",
  "upload_date": "2026-11-01 08:30:15 UTC"
}
```

***

### 🔍 Understanding Snapchat Metrics & Story Lifecycles

#### 1. Why are 0 stories returned for some creators?

Snapchat Stories are **24-hour ephemeral posts**. They automatically vanish after 24 hours. If a creator has not posted a new story within the last 24 hours and has no saved highlights album, they genuinely have **0 stories** available on Snapchat at that time.

#### 2. Why does a Spotlight video show `< 1,000` views?

Snapchat enforces a privacy threshold on public views: when a video has fewer than 1,000 views, Snapchat's API officially reports `viewCount: "-1"`. This scraper intelligently presents it as `view_count: 0` and `views_display: "< 1,000"`. Once the video crosses 1,000 views, the exact view count (e.g. `1,590`, `28,583`, `2,469,663`) is displayed. **Likes (`boostCount`), comments, and shares are always accurately extracted regardless!**

#### 3. Why are Story views `null`?

Unlike Spotlight videos, Snapchat keeps 24-hour Story views 100% private inside the creator's personal mobile app. They are never published on the public web.

***

### 💎 Pricing & Free Tier Limits

- **Pay-Per-Event (PPE)**: Scrape with complete budget control. Charged only **$0.005** per successfully scraped story or spotlight video.
- **Free Users**: Users on the Apify Free Plan (`APIFY_USER_IS_PAYING != '1'`) can scrape up to **3 stories/spotlights** per run to test the scraper.
- **Paying Users**: Users on an Apify Paid Subscription (`APIFY_USER_IS_PAYING == '1'`) enjoy **unlimited** batch scraping without caps.

***

### 💼 Use Cases

- **Social Media Managers & Agencies**: Monitor competitor stories, archive campaign creative assets, and repurpose viral content.
- **Influencer Marketing & Analytics**: Extract follower/subscriber counts, engagement metrics, and verify creator activity.
- **Video Editors & Creators**: Download high-quality Snapchat Spotlight & Story videos with original audio.
- **Researchers & Data Scientists**: Track social media trends, viral audio, and meme propagation.

***

### ⚠️ Notes & Best Practices

1. **Public Accounts Only**: This scraper processes publicly available Snapchat profiles, Spotlight videos, and public stories.
2. **Ephemeral Nature**: 24-hour stories expire after 24 hours. Scrape regularly to archive daily snaps.
3. **Supported Formats**:
   - Spotlight: `https://www.snapchat.com/spotlight/{id}` or `https://www.snapchat.com/@user/spotlight/{id}`
   - Profiles: `https://www.snapchat.com/@username`, `https://www.snapchat.com/add/username`, `@username`
   - Show/Channel: `https://www.snapchat.com/p/{profile_id}`
   - Individual Stories: `https://www.snapchat.com/p/{profile_id}/{story_id}`
   - Shortlinks: `https://t.snapchat.com/{token}`

***

### 📧 Support & Custom Solutions

Need enterprise volume, custom data formats, or automated webhook pipelines?\
Contact: **<codenest2.0@gmail.com>**

***

#### 🏷️ Search Keywords

`snapchat-scraper` `snapchat-story-downloader` `snapchat-spotlight` `snapchat-profile-scraper` `download-snapchat-video` `snapchat-api` `social-media-scraper` `video-downloader` `snapchat-metrics` `snapchat-views` `snapchat-likes` `story-saver`

# Actor input Schema

## `direct_urls` (type: `array`):

Direct URLs of Snapchat Stories (e.g. /p/profile/story_id) and Spotlight videos (e.g. /spotlight/id). Scrapes specific media directly.

## `profile_urls` (type: `array`):

URLs of Snapchat Creators, Shows or Channels (e.g. @mr_yashuuu09, https://www.snapchat.com/@mr_yashuuu09, or https://www.snapchat.com/p/fc00fb07-8091-4081-8ef1-41327f3304cf). Scrapes profile bio, subscribers, stories, show episodes & spotlight videos.

## `scrape_types` (type: `array`):

Select what content to extract when a creator or channel URL is provided: stories and/or spotlight.

## `max_items_per_profile` (type: `integer`):

Maximum number of stories or spotlight videos to extract per profile (1-100).

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

When enabled, separate video and audio backing streams are merged 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.

## `maxConcurrency` (type: `integer`):

Number of URLs to process concurrently (1-15).

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

Apify proxy settings. Recommended for high-volume batch scraping.

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

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

## `startUrls` (type: `array`):

Alternative slot supporting any mix of Snapchat URLs (stories, spotlight, profiles).

## Actor input object example

```json
{
  "direct_urls": [
    {
      "url": "https://www.snapchat.com/@garywagman19/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYd2lhZ3dxZmJzAaCQsCiVAaCQsCh2AAAAAQ"
    }
  ],
  "profile_urls": [
    {
      "url": "https://www.snapchat.com/@mr_yashuuu09"
    }
  ],
  "scrape_types": [
    "stories",
    "spotlight"
  ],
  "max_items_per_profile": 20,
  "download_media": true,
  "useKvStore": true,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "direct_urls": [
        {
            "url": "https://www.snapchat.com/@garywagman19/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYd2lhZ3dxZmJzAaCQsCiVAaCQsCh2AAAAAQ"
        }
    ],
    "profile_urls": [
        {
            "url": "https://www.snapchat.com/@mr_yashuuu09"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codenest/snapchat-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 = {
    "direct_urls": [{ "url": "https://www.snapchat.com/@garywagman19/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYd2lhZ3dxZmJzAaCQsCiVAaCQsCh2AAAAAQ" }],
    "profile_urls": [{ "url": "https://www.snapchat.com/@mr_yashuuu09" }],
}

# Run the Actor and wait for it to finish
run = client.actor("codenest/snapchat-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 '{
  "direct_urls": [
    {
      "url": "https://www.snapchat.com/@garywagman19/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYd2lhZ3dxZmJzAaCQsCiVAaCQsCh2AAAAAQ"
    }
  ],
  "profile_urls": [
    {
      "url": "https://www.snapchat.com/@mr_yashuuu09"
    }
  ]
}' |
apify call codenest/snapchat-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codenest/snapchat-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/h2e4mXPnb3TjQjvyW/builds/R3nVMRN3sAbb27Hpe/openapi.json
