# Snapchat Profile & Spotlight Scraper (`karamelo/snapchat-profile-scraper`) Actor

Extract 1 or 1000s of public Snapchat profiles data, including username, bio, subscriber count, profile picture, and much much more. Scrape Spotlight content to analyze trends and understand user engagement. Works with public, private, and any type of accounts.

- **URL**: https://apify.com/karamelo/snapchat-profile-scraper.md
- **Developed by:** [karamelo](https://apify.com/karamelo) (community)
- **Categories:** Social media, Automation
- **Features:** Limited permissions
- **Stats:** 993 total users, 23 monthly users, 99.9% runs succeeded, 8 bookmarks
- **User rating**: 4.00 out of 5 stars

## Pricing

from $1.30 / 1,000 profiles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Profile Scraper

### ✨ Get insights from public profiles with Spotlight highlights

Scrape 1 or 1000s of profiles fast with this easy-to-use Snapchat profile scraper.

**Unleash the power of Snapchat data with public profile insights.**

### 🔎 What is the Snapchat Profile Scraper?

The Snapchat Profile Scraper lets you extract publicly available data from Snapchat profiles. Use it to analyze influencer accounts, track competitors, or understand social-media trends.

### ⚙️ How does it work?

Provide the Snapchat username(s) or URL(s) you want to collect. The Actor gathers publicly available profile information, including:

- **👤 Public Profile Information**
  - **username:** The profile's unique identifier on Snapchat.
  - **title:** The user's displayed name on the profile.
  - **snapcodeImageUrl:** A link to the profile's Snapcode image.
  - **badge:** A numerical value indicating the profile's type.
  - **categoryStringId:** The primary category the profile belongs to.
  - **subcategoryStringId:** A more specific subcategory within the primary category.
  - **subscriberCount:** The number of followers the profile has.
  - **bio:** The user's bio text.
  - **websiteUrl:** A link to the user's external website.
  - **profilePictureUrl:** The URL of the user's profile image.
  - **address:** The user's location, if provided.
  - **hasCuratedHighlights:** Indicates whether the profile has curated Spotlight content.
  - **hasSpotlightHighlights:** Indicates whether the profile has Spotlight content.
  - **mutableName:** An alternative name, if applicable.
  - **publisherType:** The type of publisher.
  - **squareHeroImageUrl:** A profile image URL, if available.
  - **primaryColor:** The main color used in the profile's design.
  - **hasStory:** Indicates whether the profile currently has a Story posted.
  - **relatedAccountsInfo:** An array of information about related accounts, if available.

- **🎬 Spotlight Highlights**
  - **storyType:** The type of Spotlight content.
  - **snapList:** An array of Snaps within the highlight.
  - **snapIndex:** The order of the Snap within a highlight.
  - **snapId:** A unique identifier for the Snap.
  - **snapMediaType:** The media type.
  - **snapUrls:** URLs for the Snap's media and preview image.
  - **timestampInSec:** The upload time in seconds since the Unix epoch.
  - **storyId:** A unique identifier for the entire Spotlight highlight.
  - **storyTitle:** The highlight title, if available.
  - **thumbnailUrl:** The highlight thumbnail URL.
  - **storyTapId:** An identifier associated with the highlight.
  - **highlightId:** An identifier specific to the highlight.

- **📽️ Spotlight**
  - **spotlightId:** A unique identifier for the Spotlight video.
  - **link:** The direct URL to the Spotlight video page on Snapchat.
  - **thumbnailSrc:** The thumbnail URL for the Spotlight video.
  - **spotlightTitle:** The title shown for the Spotlight video, if available.
  - **plays:** The number of plays received by the video.
  - **shares:** The number of shares received by the video.
  - **comments:** The number of comments received by the video.
  - **isSponsored:** Whether the video is sponsored content, when available.
  - **timestampInSec:** The original Snap upload time in seconds since the Unix epoch.
  - **mediaUrl:** The media URL for the Spotlight Snap, if available.
  - **transcriptUrl:** The audio-transcription URL for the Spotlight Snap, if available.

### 🚀 Getting Started

1. **Sign up for free:** Get access to the Apify platform.
2. **Enter usernames:** Add Snapchat usernames or URLs such as `selenagomez`, `loganpaul`, or `https://snapchat.com/add/miketyson`.
3. **Click Run:** Start the Actor.
4. **Preview and download:** View the collected data and export it in your preferred dataset format.

### 📦 Example Output

```json
[
  {
    "search": "samplecreator",
    "spotlight": [],
    "userProfile": {
      "publicProfileInfo": {
        "username": "samplecreator",
        "title": "Sample Creator",
        "subscriberCount": "125000",
        "bio": "Public profile bio",
        "hasCuratedHighlights": false,
        "hasSpotlightHighlights": true,
        "hasStory": false,
        "relatedAccountsInfo": []
      },
      "$case": "publicProfileInfo"
    },
    "spotlightHighlights": []
  }
]
```

### 🔗 Integrations & More

- **Powerful integrations:** Connect your dataset with workflow tools, data platforms, and other services available through Apify.
- **Apify API access:** Use the Apify platform for programmatic control of your Actor runs and results.
- **Data research:** Analyze collected data to uncover trends and support research.

### ⚖️ Responsible use

Use publicly available information responsibly. You are responsible for ensuring that your collection and downstream use comply with applicable law, privacy expectations, and Snapchat's terms.

# Actor input Schema

## `userName` (type: `array`):

Add up to 100 public Snapchat usernames or profile URLs, one per row.

## `proxyOptions` (type: `object`):

Optional Apify Proxy settings for this run.

## Actor input object example

```json
{
  "userName": [
    "shawnmendes1",
    "https://snapchat.com/add/selenagomez",
    "@loganpaul"
  ],
  "proxyOptions": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Open the collected profile records.

# 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 = {
    "userName": [
        "shawnmendes1",
        "https://snapchat.com/add/selenagomez",
        "@loganpaul"
    ],
    "proxyOptions": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("karamelo/snapchat-profile-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 = {
    "userName": [
        "shawnmendes1",
        "https://snapchat.com/add/selenagomez",
        "@loganpaul",
    ],
    "proxyOptions": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("karamelo/snapchat-profile-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 '{
  "userName": [
    "shawnmendes1",
    "https://snapchat.com/add/selenagomez",
    "@loganpaul"
  ],
  "proxyOptions": {
    "useApifyProxy": true
  }
}' |
apify call karamelo/snapchat-profile-scraper --silent --output-dataset

```

## MCP server setup

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