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

Snapchat scraper collects data on the discover and spotlight page. Browse snapchat posts and collect information. The web crawler also provide a feature to extract profile informations

- **URL**: https://apify.com/saswave/snapchat-scraper.md
- **Developed by:** [SASWAVE](https://apify.com/saswave) (community)
- **Categories:** News, Social media
- **Stats:** 212 total users, 3 monthly users, 97.2% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 – Profile, Spotlight & Discover Extraction

The Snapchat Scraper allows you to collect structured data from Snapchat’s Discover and Spotlight pages as well as user profiles.

This tool is useful for social media monitoring, influencer research, content analytics, and marketing intelligence.

### 🔹 Features

Profile Data Extraction

Scrape public profile information including username, bio, subscriber count, profile picture, and location.

Extract Snapcode URLs and other profile-specific metadata.

Detect highlights, stories, and profile badges.

Spotlight Scraping

Extract videos from Spotlight.

Collect metrics such as views, shares, comments.

Get associated creator profile info.

Discover Page Scraping

Extract content from Snapchat Shows or Discover feeds.

Collect snaps, video URLs, preview images, and timestamps.

Capture creator metadata for each story or show.

### Ouput example

Profile

```json
{
  "url": "https://www.snapchat.com/add/gianni_officiel\\nmarvinachi",
  "username": "gianni_officiel",
  "title": "GIANNI OFFICIEL",
  "snapcodeImageUrl": "https://app.snapchat.com/web/deeplink/snapcode?username=gianni_officiel&type=SVG&bitmoji=enable",
  "badge": 0,
  "categoryStringId": "public-profile-category-v3-people",
  "subcategoryStringId": "public-profile-subcategory-v3-public-figure",
  "subscriberCount": "309000",
  "bio": "🎥TIKTOK 2m4👉🏽 gianni_gofficiel\nTiktokeur a temp plein \nColab  📧: gianniofficiel@icloud.com",
  "websiteUrl": "",
  "profilePictureUrl": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvZnFwa2dGWjl1alNQMGVQRnE5VFRZP2JvPUVnMGFBQm9BTWdFRVNBSlFHV0FCJnVjPTI1._RS0,90_FMjpeg",
  "address": "Perpignan, 66140, France",
  "bitmoji3d": null,
  "hasCuratedHighlights": false,
  "hasSpotlightHighlights": true,
  "mutableName": "",
  "publisherType": "",
  "squareHeroImageUrl": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvaWIyQTBqUG9kZmM1Tk1mWkg0UlppP2JvPUVna3lBUVJJQWxBWllBRSUzRCZ1Yz0yNQ._RS0,1080_FMjpeg",
  "primaryColor": "",
  "hasStory": false,
  "relatedAccountsInfo": [],
  "businessProfileId": "340d2921-e5dc-4d72-9b29-e78212f4fa56",
  "creation_date": "2021-10-30 10:18:14",
  "last_update": "2025-04-13 23:43:44"
}
```

Spotlight

```json
{
  "url": "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYdGZtcmprZWNrAZUqntImAZUqnpD8AAAAAQ",
  "snap_qrcode": "https://app.snapchat.com/web/deeplink/snapcode?username=rozy_hama&type=SVG&bitmoji=enable",
  "video_url": "https://bolt-gcdn.sc-cdn.net/x/5QnZMxEB1XXGCMqv3jtjt.27.IRZXSOY?mo=Go0BGgkyAXdIAlAuYAFaEFNwb3RsaWdodFNoYXJpbmeiAWgIGxJXClUI8JOWAiABSkoKRZoBP0hNV1NMS0c9NjlERExAT0VIQUNHQzo6OD03QUQ4MTtINDpSRlZBQTRPQURCOEFDNjs9N0NFQTwwOUU7JypTMUM7IhD0A2gCIgsSACoHSVJaWFNPWZADlooC&uc=46",
  "comments": "949",
  "shares": "61.0t",
  "views": "8m",
  "descriptions": [],
  "account_title": "Rozy hama🖤",
  "account_username": "rozy_hama",
  "account_url": "https://www.snapchat.com/add/rozy_hama"
}
```

Discover

```json
{
  "id": "574348619610112",
  "type": "SHOW",
  "snaps": [
    {
      "id": "574348619610112",
      "snapUrls": {
        "mediaUrl": "",
        "mediaPreviewUrl": "",
        "__typename": "SnapMedia"
      },
      "snapMediaType": "VIDEO",
      "intervalStartTimeMs": 0,
      "__typename": "Snap"
    },
    //truncated for example
    {
      "id": "574348619610117",
      "snapUrls": {
        "mediaUrl": "https://cf-st.sc-cdn.net/d/7Y3XgwFcyxqbMjhmIxLoH.111?mo=GrACGgcyAQRQBWABWhFTaG93c1NuYXBWYXJpYW50c6IBLwhvEhgKFgjIqBRKDgoJDgoKCwkLCQoLEPQDaAEiEQoNOgF9QgYIjaKuvwZIAhIAogEvCG4SGAoWCKjJEEoOCgkLCQcICAkHCAkQ9ANoASIRCg06AX1CBgiKoq6_BkgCEgCiATEIJRIaChgImdwaIAFKDgoJKg4NDQ4NDQ4OEPQDaAIiEQoNOgF9QgYIj6KuvwZIAhIAogEyCIEBEhoKGAjw4AkgAUoOCgkdBAYFBQUEBQcQ9ANoAiIRCg06AX1CBgiaoq6_BkgCEgCiATIIgAESGgoYCJj3FCABSg4KCSYKCgoKCwkLDBD0A2gCIhEKDToBfUIGCJ-jrr8GSAISAKIBCwgBIgcKBTIBfUgBkAPIdA%3D%3D&uc=5",
        "mediaPreviewUrl": "https://cf-st.sc-cdn.net/d/rsgMBrjeJpTqm2iXz10LG.380?mo=Gl4aBzIBBFAFYAFaE1B1Ymxpc2hlclNuYXBJbWFnZXOiARYI_AIiEQoNOgF9QgYI7aGuvwZIAhIAogEWCPICIhEKDToBfUIGCO2hrr8GSAISAKIBCwgBIgcKBTIBfUgB&uc=5",
        "__typename": "SnapMedia"
      },
      "snapMediaType": "VIDEO",
      "intervalStartTimeMs": null,
      "__typename": "Snap"
    }
  ],
  "title": "Trend Gone Wrong 🫠",
  "thumbnailUrl": "https://app.snapchat.comhttps://cf-st.sc-cdn.net/aps/bolt_df/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2Qva2dmYUpBRU1kbGtWbXpDS2JEY3Z2LjMxMD91Yz01._FMjpeg",
  "tapId": "9113081596219359556",
  "publishedTimeInSec": 1743981366000,
  "videoTrackUrl": "https://cf-st.sc-cdn.net/d/xsj1MhEiFFTvdkrrYV3nW.1202.m3u8?mo=GucEGh4SFUhnU3E5amgyN0tSM1ZsdXFWdndDcTIBBFAFYAFaFUxvbmdmb3JtVmlkZW9WYXJpYW50c6IBOwiyCRIECgJoAyIwCi4SH3hzajFNaEVpRkZUdmRrcnJZVjNuVy4xMjAyLm0zdTg6AX1CBgjZoq6_BkgCogGBAQiFCxJLCklKRQpAFA0JBQwQBQsKDQsUDwsODhAQDQwLBhIRDAsMDQ8QBgsGBgMLAggGBQcMBAkFCQgQCg8JBxAUCw8NDw8PAwMEAxD0A2gEIi8KLRIeS0R4cUcyQUJlOGhlQlBzTms3Z2VELjE0MTMubXBkOgF9QgYI2aKuvwZIAqIBgQEIjwsSSwpJSkUKQBQMCAoGDAMLBA4IEAwHDgkNDwoMBwkKEggODAkLEgYQCAoDDgcEBwUFDAcDBgkHDwwLBgwPEQoOEAoQDQEDAgIQ9ANoBCIvCi0SHnhCTTIxN09rM1lrQWR5Y0dDeHh3cS4xNDIzLm1wZDoBfUIGCJWjrr8GSAKiAUgIbhIYChYIr9JTSg4KCSMYDxcPEg0WEhD0A2gBIioKKBIZMldVSURPaThGSXhQcFdhWTk0T2FzLjExMDoBfUIGCO2irr8GSAKiAUkIbxIZChcIho-gAUoOCglBKiApHSEXMSQQ9ANoASIqCigSGVMyM3FnMFRhV1RncXZudWowYTVzZC4xMTE6AX1CBgj7oq6_BkgCogE7CJYKEgQKAmgDIjAKLhIfUlBTM2lpek1MSnVoSUtxRHNwbUtjLjEzMDIubTN1ODoBfUIGCJ-jrr8GSAKiAQsIASIHCgUyAX1IAZADqvsB&uc=5",
  "__typename": "PremiumPublisherStory",
  "creator": {
    "businessProfileId": "de06bf6c-12fa-4a19-b4ab-94ab9bd2137e",
    "username": null,
    "title": "Craft It",
    "snapcodeImageUrl": "https://www.snapchat.com/deeplink/discover/snapcode/L3AvZGUwNmJmNmMtMTJmYS00YTE5LWI0YWItOTRhYjliZDIxMzdl",
    "badge": null,
    "bio": "Mesmerizing craft ideas that are bound to blow your mind! ",
    "profilePictureUrl": "https://cf-st.sc-cdn.net/aps/bolt_df/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvOVFiQzZPNHlqOXo3MFVCMElSdEVqLjM1NT9tbz1Ha3NhQ3hvQUdnQXlBUVJRQldBQldoVlFkV0pzYVhOb1pYSk1iMmR2Vm1GeWFXRnVkSE9pQVJZSTR3SWlFUW9OT2dGOVFnWUlwcXYxbmdaSUFoSUFvZ0VMQ0FFaUJ3b0ZNZ0Y5U0FFJTNEJnVjPTU._FMpng",
    "squareHeroImageUrl": "https://cf-st.sc-cdn.net/aps/bolt_df/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvWnNHRmhzRGthZXVTR1dQV0x2R0JsLjM0MD9tbz1HbEFhQ3hvQUdnQXlBUVJRQldBQldocFFjbVZ0YVhWdFUzUnZjbmxVWldGelpYSldZWEpwWVc1MGM2SUJGZ2pVQWlJUkNnMDZBWDFDQmdpbmtPNmRCa2dDRWdDaUFRc0lBU0lIQ2dVeUFYMUlBUSUzRCUzRCZ1Yz01._FMjpeg",
    "__typename": "Publisher",
    "primaryColor": "#000000"
  }
}
```

### 🔹 Use Cases

Influencer Tracking – Monitor follower counts, bio info, and engagement stats.

Content Research – Analyze trending Spotlight videos or Discover shows.

Marketing Analytics – Evaluate reach and engagement for campaigns.

Social Media Archiving – Store historical profile or content data.

Competitive Analysis – Compare profiles and video performance.

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

## `urls_profiles` (type: `array`):

url need to start with https://www.snapchat.com/@

## `feature` (type: `string`):

When selecting feature 'Profile', you need to provide an input in section 'Profile username or url'

## `max_results` (type: `integer`):

Maximum posts extracted (0 = no limit)

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

The best option is usually Automatic proxy. But you can also use your own proxies or no proxy

## Actor input object example

```json
{
  "urls_profiles": [],
  "feature": "spotlight",
  "max_results": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "urls_profiles": [],
    "feature": "spotlight",
    "max_results": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/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 = {
    "urls_profiles": [],
    "feature": "spotlight",
    "max_results": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("saswave/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 '{
  "urls_profiles": [],
  "feature": "spotlight",
  "max_results": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call saswave/snapchat-scraper --silent --output-dataset

```

## MCP server setup

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