# Snapchat API Python Story and Highlight Media Downloader

**Use case:** 

Extract public Snapchat stories and highlight media for Python integrations and archiving. Returns direct mediaUrl, mediaPreviewUrl, postedAt, storyTitle, subscriberCount, and bio. Customize usernames, sources, and maxSnapsPerUser to collect video and image content.

## Input

```json
{
  "mode": "profiles",
  "usernames": [
    "khaby.lame",
    "brentrivera"
  ],
  "sources": [
    "curatedHighlights",
    "activeStory"
  ],
  "maxSnapsPerUser": 30,
  "maxHighlightsPerUser": 0,
  "maxItems": 3,
  "downloadMedia": false
}
```

## Output

```json
{
  "username": {
    "label": "Username",
    "format": "text"
  },
  "displayName": {
    "label": "Display Name",
    "format": "text"
  },
  "storySource": {
    "label": "Source",
    "format": "text"
  },
  "storyTitle": {
    "label": "Story",
    "format": "text"
  },
  "snapIndex": {
    "label": "#",
    "format": "number"
  },
  "mediaType": {
    "label": "Type",
    "format": "text"
  },
  "postedAt": {
    "label": "Posted At",
    "format": "text"
  },
  "mediaUrl": {
    "label": "Media URL",
    "format": "link"
  },
  "mediaPreviewUrl": {
    "label": "Thumbnail",
    "format": "link"
  },
  "sourceUrl": {
    "label": "Source Page",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Snapchat Highlight & Story Media Downloader Actor is ready to run with the inputs already set for "Snapchat API Python Story and Highlight Media Downloader". [Sign up or log in](https://console.apify.com/create-task-from-example/DB0WzQYy1FnW6BEsr) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Snapchat API Python Story and Highlight Media Downloader" task

The Snapchat Highlight & Story Media Downloader Actor will start running based on the input automatically. You can also change all the input fields, like mode, usernames or profile urls, and more, to match your specific use case.

### 3. Receive the "Snapchat API Python Story and Highlight Media Downloader" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as username, display name, source, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Snapchat API Python Story and Highlight Media Downloader" task via API](https://apify.com/dataspryva/snapchat-highlight-and-story-media-downloader.md).

## FAQ

### How can I download Snapchat stories with Python?

The Snapchat story media task returns downloadable media URLs and preview images for public stories and saved highlights, with timestamps and creator details.

### What does the Snapchat story media task return for each snap?

Each record can include the media URL, preview image, media type, posting time, story title, creator name, subscriber count, and bio in the Snapchat story media task.

### Which Snapchat usernames can I use to collect public stories?

The Snapchat story media task is set to collect from khaby.lame and brentrivera. You can enter usernames or public profile URLs.

### How many Snapchat snaps can I collect in one run?

The Snapchat story media task is set to a limit of 30 snaps per user across selected sources; highlights are counted first, then active story snaps fill any remaining slots.

### Can I download the Snapchat story results as JSON or CSV?

Results from the Snapchat story media task can be downloaded as JSON, CSV, Excel, XML, RSS, or an HTML table, or read through the Apify API.

## About this Actor

This example demonstrates how to use [Snapchat Highlight & Story Media Downloader](https://apify.com/dataspryva/snapchat-highlight-and-story-media-downloader.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/dataspryva/snapchat-highlight-and-story-media-downloader.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/dataspryva/snapchat-highlight-and-story-media-downloader.md

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`).
