# Snapchat Video Downloader (`khadinakbar/snapchat-video-downloader`) Actor

Download public Snapchat Spotlight videos by URL — direct MP4, thumbnail, and full metadata. HTTP-only, no login. MCP-ready.

- **URL**: https://apify.com/khadinakbar/snapchat-video-downloader.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Social media, Videos, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 video downloadeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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 Video Downloader

Download public **Snapchat Spotlight** videos by URL. Paste one or many Spotlight links and get back the **direct MP4 download URL**, the thumbnail, and full video metadata — creator, view count, share count, duration, upload date, and caption. Optionally the actor saves the actual MP4 file into storage and hands you a permanent Apify download link. HTTP-only, no login, no cookies. Built for both humans and AI agents (MCP-ready).

### What you get

| Field | Description |
|-------|-------------|
| `downloadUrl` | Direct CDN MP4 link (ready to download/stream) |
| `apifyVideoUrl` | Permanent Apify-hosted MP4 link (when "Save MP4 file to storage" is on) |
| `thumbnailUrl` | Poster image |
| `title` / `description` / `caption` | Video text fields |
| `creatorUsername` / `creatorName` / `creatorUrl` / `followerCount` | Creator profile |
| `viewCount` / `shareCount` | Engagement |
| `durationMs` / `width` / `height` | Media dimensions |
| `uploadDate` | ISO 8601 upload timestamp |
| `hashtags` | Keywords/hashtags array |
| `videoId` / `url` / `canonicalUrl` | Identifiers |

### When to use it

- Archive or repurpose your own Spotlight videos
- Bulk-collect public Spotlight clips for content research or social analytics
- Feed an AI agent a Snapchat link and get a downloadable MP4 + structured metadata back

### When NOT to use it

This actor handles **public Spotlight videos only**. Snapchat **Stories, Memories, Lenses, and private profiles are login-gated and are not supported** — those URLs are skipped with a clear reason. For the trending Spotlight feed (discover videos rather than download a specific one), see the companion **Snapchat Spotlight Scraper**.

### Input

```json
{
  "startUrls": [
    "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYcXNyam10cWZvAZzJJZEmAZzJJNj4AAAAAQ"
  ],
  "saveVideoToStore": true,
  "maxResults": 50
}
````

Accepted URL forms:

- `https://www.snapchat.com/spotlight/<id>` — a specific Spotlight video
- `https://www.snapchat.com/@username/spotlight/<id>`
- `https://t.snapchat.com/<short>` (short links — redirects are followed)
- `https://www.snapchat.com/spotlight` — the bare feed: downloads the current top trending Spotlight videos (up to `maxResults`)

### Output (one record per video)

```json
{
  "url": "https://www.snapchat.com/spotlight/W7_EDl...",
  "videoId": "W7_EDl...",
  "downloadUrl": "https://bolt-gcdn.sc-cdn.net/u/....IRZXSOY?...",
  "apifyVideoUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/video-W7_EDl....mp4",
  "thumbnailUrl": "https://bolt-gcdn.sc-cdn.net/u/....256.IRZXSOY?...",
  "title": "Spotlight Snap",
  "creatorUsername": "swatgulaly",
  "creatorName": "Swat Pinki",
  "viewCount": 5187723,
  "shareCount": 0,
  "durationMs": 6630,
  "width": 540,
  "height": 960,
  "uploadDate": "2026-03-05T12:32:41.208Z",
  "hashtags": [],
  "scrapedAt": "2026-06-30T10:00:00.000Z"
}
```

### Pricing

Pay-per-event:

- **Actor start** — $0.00005 per run
- **Video downloaded** — $0.005 per video successfully resolved

A 10-video run costs about **$0.05**. Pay-Per-Usage (compute + proxy) is also available for very large jobs.

### Use with AI agents (MCP)

This actor is exposed in the Apify MCP server as `apify--snapchat-video-downloader`. An agent can pass a Snapchat URL and receive a downloadable MP4 link plus structured metadata in one call.

### How it works

Snapchat Spotlight video pages are server-rendered. The actor fetches the page over residential proxies, parses the embedded `__NEXT_DATA__` JSON, reads the canonical `videoMetadata` (including the direct `contentUrl` MP4), and optionally streams the MP4 bytes into the actor's key-value store. No browser, no login, no cookies.

### Legal

Use this actor only for content you have the right to download and for purposes compliant with Snapchat's Terms of Service and applicable law. You are responsible for how you use the downloaded media. This actor accesses only publicly available Spotlight content and does not bypass authentication or access private data.

### FAQ

**Does it work without a Snapchat login?** Yes — public Spotlight videos are fetched without any account or cookies.

**Can it download Stories or Memories?** No. Those are login-gated; only public Spotlight videos are supported.

**Is the direct `downloadUrl` permanent?** Snapchat CDN links are time-limited. Keep "Save MP4 file to storage" enabled to get a permanent `apifyVideoUrl`.

**What if a video is removed or private?** That URL returns a record with a `_status` of `no_video_found` or `restricted_or_age_gated` and a human-readable note — the run still succeeds.

# Actor input Schema

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

Public Snapchat Spotlight video URLs to download. Accepts individual video URLs like 'https://www.snapchat.com/spotlight/W7\_EDl...', '@username/spotlight/<id>' links, 't.snapchat.com/...' short links (redirects are followed), or the bare Spotlight feed 'https://www.snapchat.com/spotlight' to grab the current top trending videos (up to maxResults). NOT for Stories, Memories, Lenses, or private profiles — those are login-gated and unsupported.

## `saveVideoToStore` (type: `boolean`):

When true, the actor downloads the actual MP4 bytes into its key-value store and returns a permanent Apify download link ('apifyVideoUrl') alongside the direct CDN 'downloadUrl'. When false, only the direct CDN 'downloadUrl' is returned (faster, cheaper, but the CDN link is time-limited). Defaults to true.

## `maxResults` (type: `integer`):

Hard cap on how many videos to download and charge for in one run, regardless of how many URLs are supplied. Protects against accidental large bills. Defaults to 50. Set to the exact number of URLs you expect for tightest cost control.

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

Proxy settings. Defaults to Apify Residential proxies, which Snapchat's web pages serve reliably. Leave as default unless you have a specific reason to change it.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYcXNyam10cWZvAZzJJZEmAZzJJNj4AAAAAQ"
  ],
  "saveVideoToStore": true,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "groups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `videos` (type: `string`):

Dataset of resolved Snapchat videos with download links and metadata.

## `files` (type: `string`):

Key-value store holding saved MP4 files (when saveVideoToStore is enabled).

# 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 = {
    "startUrls": [
        "https://www.snapchat.com/spotlight"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/snapchat-video-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 = { "startUrls": ["https://www.snapchat.com/spotlight"] }

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/snapchat-video-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 '{
  "startUrls": [
    "https://www.snapchat.com/spotlight"
  ]
}' |
apify call khadinakbar/snapchat-video-downloader --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Snapchat Video Downloader",
        "description": "Download public Snapchat Spotlight videos by URL — direct MP4, thumbnail, and full metadata. HTTP-only, no login. MCP-ready.",
        "version": "0.1",
        "x-build-id": "bnP7qwDVR9NqMKzA2"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/khadinakbar~snapchat-video-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-khadinakbar-snapchat-video-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/khadinakbar~snapchat-video-downloader/runs": {
            "post": {
                "operationId": "runs-sync-khadinakbar-snapchat-video-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/khadinakbar~snapchat-video-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-khadinakbar-snapchat-video-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": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Snapchat video URLs",
                        "type": "array",
                        "description": "Public Snapchat Spotlight video URLs to download. Accepts individual video URLs like 'https://www.snapchat.com/spotlight/W7_EDl...', '@username/spotlight/<id>' links, 't.snapchat.com/...' short links (redirects are followed), or the bare Spotlight feed 'https://www.snapchat.com/spotlight' to grab the current top trending videos (up to maxResults). NOT for Stories, Memories, Lenses, or private profiles — those are login-gated and unsupported.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "saveVideoToStore": {
                        "title": "Save MP4 file to storage",
                        "type": "boolean",
                        "description": "When true, the actor downloads the actual MP4 bytes into its key-value store and returns a permanent Apify download link ('apifyVideoUrl') alongside the direct CDN 'downloadUrl'. When false, only the direct CDN 'downloadUrl' is returned (faster, cheaper, but the CDN link is time-limited). Defaults to true.",
                        "default": true
                    },
                    "maxResults": {
                        "title": "Max videos",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Hard cap on how many videos to download and charge for in one run, regardless of how many URLs are supplied. Protects against accidental large bills. Defaults to 50. Set to the exact number of URLs you expect for tightest cost control.",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. Defaults to Apify Residential proxies, which Snapchat's web pages serve reliably. Leave as default unless you have a specific reason to change it.",
                        "default": {
                            "useApifyProxy": true,
                            "groups": [
                                "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
