# 👻 Snapchat Profile & Spotlight Finder (`inexhaustible_glass/snapchat-profile-spotlight-finder`) Actor

Public Snapchat profile data, Spotlight videos (with direct media URL + free official transcript), story highlights, and current story — by username. No login, no proxy needed.

- **URL**: https://apify.com/inexhaustible_glass/snapchat-profile-spotlight-finder.md
- **Developed by:** [Hitman studio](https://apify.com/inexhaustible_glass) (community)
- **Categories:** Agents, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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/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 & Spotlight Finder

Public Snapchat profile data, Spotlight videos, story highlights, and
current stories — by username. Direct media URLs, and (confirmed by direct
testing) a bonus most Spotlight scrapers skip: Snapchat already attaches an
**official closed-caption transcript** to many videos — free, more accurate
than AI speech-to-text, no extra compute.

> Keywords: snapchat scraper, snapchat spotlight api, public profile
> scraper, snapchat video downloader, snapchat transcript, social media
> data api.

### 🌟 Why this one

- **No login, no proxy, no API reverse-engineering** — Snapchat
  server-renders a full JSON payload (`__NEXT_DATA__`) into every public
  profile and Spotlight page it serves a logged-out visitor. This Actor
  just reads that JSON — confirmed working from a plain outbound request.
- **Free official transcripts** — confirmed by direct testing: Snapchat
  attaches a real `.vtt` closed-caption file (with timestamps) to many
  Spotlight videos. This Actor downloads it directly instead of running
  the video through AI speech-to-text, which is both free and more
  accurate than a reconstructed transcript.
- **Real comments, correctly matched** — Snapchat embeds public Spotlight
  comments on the profile page; this Actor matches each comment to the
  correct video by its real internal ID (not by list position, which can
  be misaligned) and returns commenter name, text, and timestamp.
- **Everything in one pass per profile**: public profile info, related
  accounts, Spotlight videos, saved story highlights, and the current
  story — one Actor run, not four.
- **Honestly scoped**: Snapchat's public pages don't expose every metric
  (e.g. boost/recommend counts aren't present in the data Snapchat serves
  anonymously) — this Actor returns what's genuinely there (`view_count`,
  `share_count`, when populated) and never fabricates a number Snapchat
  itself doesn't show.

### ⚙️ How it works

1. Fetches `snapchat.com/add/{username}` (the public profile page) and
   parses the embedded JSON for profile info, related accounts, Spotlight
   list, story highlights, and the current story.
2. For each Spotlight (when "fetch full details" is on), fetches its own
   dedicated page for the richer field set — caption, duration, dimensions,
   share count — and matches it to its real comments by internal ID.
3. Downloads the official transcript file when one is attached.

### 🚀 Quick start

```json
{ "usernames": ["nba"], "maxSpotlightsPerProfile": 5 }
```

Or via the API, once published:

```bash
curl "https://api.apify.com/v2/acts/snapchat-profile-spotlight-finder/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"usernames": ["nba"], "includeTranscript": true}'
```

### 📥 Input

| Field | Type | Default | Description |
|---|---|---|---|
| `usernames` | array (required) | — | Public Snapchat usernames, with or without `@` |
| `maxSpotlightsPerProfile` | integer | `5` | Max Spotlight videos per profile (0–30) |
| `fetchSpotlightDetails` | boolean | `true` | One extra request per Spotlight for caption/duration/comments/share count |
| `maxCommentsPerSpotlight` | integer | `10` | Only used with the above (0–25) |
| `includeTranscript` | boolean | `true` | Free — downloads the official caption file when one exists |
| `maxHighlightsPerProfile` | integer | `5` | Saved story highlights (0–30) |
| `includeCurrentStory` | boolean | `true` | Include the profile's current public story, if any |

### 📤 Output

**Profile row** (`record_type: "profile"`): `username`, `display_name`,
`badge`, `category`, `subcategory`, `subscriber_count`, `bio`,
`website_url`, `profile_picture_url`, `has_story`, `has_spotlight_highlights`,
`related_accounts` (list of `{username, title, subscriber_count}`).

**Spotlight row** (`record_type: "spotlight"`): `story_id`, `caption`,
`description`, `media_url` (direct video), `thumbnail_url`, `duration_ms`,
`width`, `height`, `share_count`, `view_count`, `posted_at`, `transcript`
(when available), `spotlight_url`, `comments` (list of `{text,
poster_display_name, posted_at}`).

**Highlight / story_snap rows**: `media_url`, `thumbnail_url`,
`snap_media_type` (0 = image, 1 = video), `posted_at`.

A username that doesn't resolve produces one `record_type: "error"` row
with a real error message — never a silent empty result.

```json
{
  "record_type": "spotlight",
  "username": "nba",
  "story_id": "W7_EDlXWTBiXAEEniNoMPwAAY...",
  "caption": "ONE OF THE GREATEST COMEBACKS IN SIXERS FRANCHISE HISTORY",
  "media_url": "https://cf-st.sc-cdn.net/d/....",
  "duration_ms": "60290",
  "transcript": "WEBVTT\n\n00:00:00.000 --> 00:00:05.120\nThis has to be one of the most anticipated Sixers seasons...",
  "comments": [{"text": "Happy B-day JB hope you have a good one", "poster_display_name": "JJ"}]
}
```

### 🎯 Use cases

- **Social listening / brand monitoring** — track a public account's recent Spotlight content and engagement
- **Content research** — pull a creator's or brand's recent talking points, with real transcripts for text search
- **Auto-captioning pipelines** — feed the free official transcript straight into a caption generator
- **Competitive analysis** — related-accounts graph + subscriber counts at scale
- **Archiving** — direct media URLs for a public profile's recent public content

### 🔌 Integration examples

**Python (apify-client):**

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_TOKEN>")
run = client.actor("snapchat-profile-spotlight-finder").call(run_input={"usernames": ["nba"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["record_type"] == "spotlight":
        print(item["caption"], item.get("transcript", "")[:80])
```

**JavaScript (apify-client):**

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_TOKEN>' });
const run = await client.actor('snapchat-profile-spotlight-finder').call({ usernames: ['cnn'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### 📊 Performance & reliability

| Metric | Value (measured, not estimated) |
|---|---|
| Cost per run (1 profile, 2 spotlights w/ details+transcript) | ~$0.0014 (real cloud run, tracked via Apify REST API) |
| Proxy required | No — confirmed by direct testing, plain outbound request |
| Login / API key required | No |
| Data source | Snapchat's own public profile & Spotlight pages (server-rendered JSON) |
| Transcript source | Snapchat's own official closed-caption file, when attached — not AI-generated |
| Known limitation | Only ~30 most recent Spotlights are exposed per profile; boost/recommend counts aren't present in the public data Snapchat serves anonymously |

### ❓ FAQ

**Does this need a Snapchat login?**
No — it reads the same public page any logged-out visitor's browser gets.

**Is this affiliated with Snapchat?**
No. It's an independent tool reading Snapchat's own public data — not an
official Snapchat product.

**Why don't I see view/boost/recommend counts on every video?**
Snapchat's public, logged-out pages don't consistently expose those
specific counters for every video — this Actor returns `view_count` and
`share_count` exactly as Snapchat's own page reports them, including when
that's `-1` or `0`, rather than guessing a number.

**Does this work on private accounts?**
No — only accounts with a public profile. Private/friends-only content was
never fetched and never will be.

**Will this get my Snapchat account banned?**
This Actor never logs in or uses any account — there's no account to ban.
It only reads public pages anonymously.

**Found a bug or a username that fails unexpectedly?**
A failed row always includes a real `error` message — worth reporting
through the Actor's Issues tab if it doesn't match a known limitation above.

### ⚖️ Notes

Reads only public profile and Spotlight data — no login, no scraping of
private accounts, DMs, or friends-only content.

# Actor input Schema

## `usernames` (type: `array`):

Public Snapchat usernames, with or without @.

## `maxSpotlightsPerProfile` (type: `integer`):

Snapchat exposes roughly the most recent 30 Spotlights per public profile.

## `fetchSpotlightDetails` (type: `boolean`):

One extra request per Spotlight video, for caption, duration, dimensions, share count, and comments. Off = faster, fewer fields.

## `maxCommentsPerSpotlight` (type: `integer`):

Only used when 'Fetch full Spotlight details' is on.

## `includeTranscript` (type: `boolean`):

Free — downloads Snapchat's own official closed-caption file when the video has one, instead of running AI speech-to-text.

## `maxHighlightsPerProfile` (type: `integer`):

Saved story highlights (photos/videos pinned to the profile).

## `includeCurrentStory` (type: `boolean`):

Include the profile's current (non-highlight) public story, if it has one.

## Actor input object example

```json
{
  "usernames": [
    "nba",
    "cnn",
    "teamsnapchat"
  ],
  "maxSpotlightsPerProfile": 5,
  "fetchSpotlightDetails": true,
  "maxCommentsPerSpotlight": 10,
  "includeTranscript": true,
  "maxHighlightsPerProfile": 5,
  "includeCurrentStory": true
}
```

# 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 = {
    "usernames": [
        "teamsnapchat"
    ],
    "maxSpotlightsPerProfile": 5,
    "fetchSpotlightDetails": true,
    "maxCommentsPerSpotlight": 10,
    "includeTranscript": true,
    "maxHighlightsPerProfile": 5,
    "includeCurrentStory": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("inexhaustible_glass/snapchat-profile-spotlight-finder").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 = {
    "usernames": ["teamsnapchat"],
    "maxSpotlightsPerProfile": 5,
    "fetchSpotlightDetails": True,
    "maxCommentsPerSpotlight": 10,
    "includeTranscript": True,
    "maxHighlightsPerProfile": 5,
    "includeCurrentStory": True,
}

# Run the Actor and wait for it to finish
run = client.actor("inexhaustible_glass/snapchat-profile-spotlight-finder").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 '{
  "usernames": [
    "teamsnapchat"
  ],
  "maxSpotlightsPerProfile": 5,
  "fetchSpotlightDetails": true,
  "maxCommentsPerSpotlight": 10,
  "includeTranscript": true,
  "maxHighlightsPerProfile": 5,
  "includeCurrentStory": true
}' |
apify call inexhaustible_glass/snapchat-profile-spotlight-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,inexhaustible_glass/snapchat-profile-spotlight-finder"
        }
    }
}
```

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/gkaG3EeSrSN2zlcyL/builds/wQy9N1KZrCr5cMwKJ/openapi.json
