# Snapchat Profile Scraper: Subscribers, Spotlight & Stories (`hyperbach/snapchat-scraper`) Actor

Scrape public Snapchat profiles by username or URL: display name, bio, exact subscriber count, verified badge, category, website, profile picture and Snapcode, plus the Spotlight videos (views, shares, comments, date, thumbnail, video URL), story snaps and highlights the page lists. No login.

- **URL**: https://apify.com/hyperbach/snapchat-scraper.md
- **Developed by:** [Hyperbach](https://apify.com/hyperbach) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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: Subscribers, Spotlight & Stories

**Snapchat public profiles by username or profile link, logged out: the display name, username, bio, exact subscriber count, verified badge, category, website, address, profile picture, Snapcode and hero image, the created and updated times and the related accounts — and nested in the same row the public Spotlight videos (views, shares, comments, boosts, upload time, duration, thumbnail, video URL, hashtags), the public story snaps and the saved highlights the profile page lists, with a max per profile.** Several profiles in one run; a free row for every name Snapchat does not know. No login, no cookie, no browser, proxies handled for you.

**$2.00 per 1,000 `profile` rows on the Free plan, $1.70 on Starter.** A run start is $0.0025. The default input returns about 3 rows for about $0.0085. A value that names nothing is a free row that says why.

![A Snapchat profile page in a browser: Orbit Lab with a verified badge, 418K followers and a grid of Spotlight videos. Beside it, the row this Actor returns, with subscriber_count as the exact integer, plus the username, bio, website and the highlight count.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-snapchat-scraper.webp)

### Why this Snapchat scraper

- **Usernames or links, mixed.** Paste `nasa`, `@nasa`, `snapchat.com/add/nasa`, `snapchat.com/@nasa` or a story.snapchat.com link, one a line; the same profile given twice is read once.
- **The exact subscriber count.** Snapchat's own integer (4,080,500 for fcbarcelona on 2026-10-30), not the rounded "4.1m" the page shows, beside the bio, the website, the address, the category and the verified badge.
- **Spotlight, stories and highlights in the profile's row.** Each Spotlight video with its id, URL, views, shares, comments, boosts, recommends, upload time, duration, size, thumbnail, video URL, hashtags and sound; each public story snap and each saved highlight with its media and preview links and times. Cap each list per profile, or take every item the page lists.
- **Honest counts.** `spotlight_count`, `story_snap_count` and `highlight_count` are the page's own counts before your caps; Spotlight slots the page serves empty are skipped and counted, never delivered as blank videos.
- **Every input a row.** A username Snapchat does not know is a free `not_found` row, checked on two connections; a value that is not a profile a free `invalid` row. A personal account gives its username, name, Snapcode and Bitmoji.

### Who it's for

- **Influencer marketing and talent agencies** — a creator's exact subscriber count and the views, shares and comments of their recent Spotlight videos, side by side for a shortlist.
- **Brand and social media teams** — their own and their competitors' profiles read again every week: subscribers, new Spotlight videos and their views, the live story.
- **Researchers and lead generation teams** — bios, websites, addresses and categories of business profiles, and the related accounts Snapchat links to each one.

### Quick start

**Three profiles, every item the page lists**

```json
{
  "profiles": [
    "https://www.snapchat.com/add/fcbarcelona",
    "nasa",
    "kyliejenner"
  ]
}
```

**A shortlist of creators, 5 Spotlight videos each, no stories**

```json
{
  "profiles": [
    "mrbeast",
    "kyliejenner",
    "nba"
  ],
  "maxSpotlightsPerProfile": 5,
  "maxStoriesPerProfile": 1
}
```

### Output

One row per profile (and one free row per value that gives no profile):

| field | meaning |
|---|---|
| `input_index` | The 1-based position of the value this row answers in `profiles`. |
| `input_value` | The value as you gave it. |
| `input_username` | The username the value names, in lower case (empty for a value that is not a profile). |
| `status` | `ok` (a profile, charged) or `not_found`, `invalid`, `duplicate`, `failed`, `not_read` (free; see the FAQ). |
| `status_detail` | Why a row is not `ok`, or a note on an `ok` row (empty Spotlight slots skipped, a personal account), in a sentence. |
| `scraped_at` | When the row was read (UTC). |
| `username` | The profile's username, as Snapchat's page names it. |
| `display_name` | The profile's display name. |
| `profile_type` | `public` (a public profile: every field the page gives) or `personal` (a personal account: username, name, Snapcode and Bitmoji only). |
| `profile_url` | The profile on snapchat.com. |
| `verified` | `true` when the profile carries Snapchat's official badge. |
| `category` | Snapchat's category of the profile (`business-group`, `people`, …), when the page gives one. |
| `subcategory` | Snapchat's subcategory (`government-org`, `sports-team`, `creator`, …), when the page gives one. |
| `subscriber_count` | The exact subscriber count, as Snapchat stores it. |
| `bio` | The profile's bio. |
| `website_url` | The website the profile links to (with `https://` added when the page gives a bare domain). |
| `address` | The address or place the profile shows. |
| `profile_picture_url` | The profile picture on Snapchat's CDN. |
| `snapcode_url` | The profile's Snapcode (an SVG image Snapchat serves). |
| `hero_image_url` | The profile's square hero image. |
| `bitmoji_url` | A personal account's Bitmoji avatar image. |
| `created_at` | When the public profile was created (UTC). |
| `updated_at` | When the public profile last changed (UTC). |
| `related_accounts` | The usernames of the accounts Snapchat links to this profile. |
| `spotlight_count` | How many Spotlight videos the profile page lists (before `maxSpotlightsPerProfile`). |
| `spotlight_slots_empty` | Spotlight slots the page serves empty (no id, no data): skipped, never delivered. |
| `spotlights` | The Spotlight videos, as the page lists them: `id`, `url`, `description`, `hashtags`, `view_count`, `share_count`, `comment_count`, `boost_count`, `recommend_count`, `uploaded_at`, `duration_ms`, `width`, `height`, `thumbnail_url`, `video_url`, `sound`. |
| `story_snap_count` | How many public story snaps the page lists (before `maxStoriesPerProfile`). |
| `story_snaps` | The public story snaps: `id`, `media_type` (image or video), `media_url`, `preview_url`, `posted_at`. |
| `highlight_count` | How many saved highlights the page lists (before `maxStoriesPerProfile`). |
| `highlights` | The saved highlights: `id`, `title`, `url`, `thumbnail_url`, `snap_count`, `latest_snap_at` and their `snaps` (as in `story_snaps`). |

Example record:

```json
{
  "input_index": 3,
  "input_value": "@nasa",
  "input_username": "nasa",
  "status": "ok",
  "status_detail": null,
  "scraped_at": "2026-10-30T22:22:01Z",
  "username": "nasa",
  "display_name": "NASA",
  "profile_type": "public",
  "profile_url": "https://www.snapchat.com/@nasa",
  "verified": true,
  "category": "business-group",
  "subcategory": "government-org",
  "subscriber_count": 752000,
  "bio": "Explore the universe and discover our home planet with official NASA snaps.",
  "website_url": "https://www.nasa.gov",
  "address": null,
  "profile_picture_url": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvUVg2VHZkaDBHNUMzcXVidWhWaTJhP2JvPUVnMGFBQm9BTWdFRVNBSlFHV0FCJnVjPTI1._RS0,90_FMjpeg",
  "snapcode_url": "https://app.snapchat.com/web/deeplink/snapcode?username=nasa&type=SVG&bitmoji=enable",
  "hero_image_url": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvalRSaVBkS2NYWmJlV0w4dXNPeWNtP2JvPUVna3lBUVJJQWxBWllBRSUzRCZ1Yz0yNQ._RS0,1080_FMjpeg",
  "bitmoji_url": null,
  "created_at": "2019-05-22T17:38:27.554Z",
  "updated_at": "2026-10-12T16:36:39.508Z",
  "related_accounts": [
    "whitehouse",
    "ilikerockets",
    "lacma"
  ],
  "spotlight_count": 7,
  "spotlight_slots_empty": 0,
  "spotlights": [
    {
      "id": "W7_EDlXWTBiXAEEniNoMPwAAYeG9xcGd0ZWd3AZ14BVv0AZ14BQkrAAAAAQ",
      "url": "https://www.snapchat.com/@nasa/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYeG9xcGd0ZWd3AZ14BVv0AZ14BQkrAAAAAQ",
      "description": null,
      "hashtags": [],
      "view_count": 25139,
      "share_count": 165,
      "comment_count": 138,
      "boost_count": 2355,
      "recommend_count": 120,
      "uploaded_at": "2026-04-10T15:31:29.195Z",
      "duration_ms": 87330,
      "width": 540,
      "height": 960,
      "thumbnail_url": "https://cf-st.sc-cdn.net/d/1z1p5kZtkBheBrRMCmyGi.256.IRZXSOY?mo=GkYaCTIBBEgCUC5gAVCgAVoQRGZMYXJnZVRodW1ibmFpbKIBEAiAAiILEgAqB0lSWlhTT1miARAImgoiCxIAKgdJUlpYU09Z&uc=46",
      "video_url": "https://cf-st.sc-cdn.net/d/1z1p5kZtkBheBrRMCmyGi.27.IRZXSOY?mo=GmAaCTIBBEgCUC5gAVCiAVoQU3BvdGxpZ2h0U2hhcmluZ6IBOAgbEicKJQitz60DIAEwnAQ4wAdAAUoOCgl_EBAQEBEREw8Q9ANQoqoFaAIiCxIAKgdJUlpYU09ZkAOiqgU%3D&uc=46",
      "sound": "Original Sound"
    },
    {
      "id": "W7_EDlXWTBiXAEEniNoMPwAAYdHBmbG9hdHR0AZ1ytS-RAZ1ytSiwAAAAAQ",
      "url": "https://www.snapchat.com/@nasa/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYdHBmbG9hdHR0AZ1ytS-RAZ1ytSiwAAAAAQ",
      "description": null,
      "hashtags": [],
      "view_count": 25891,
      "share_count": 55,
      "comment_count": 104,
      "boost_count": 1582,
      "recommend_count": 85,
      "uploaded_at": "2026-04-09T14:46:08.304Z",
      "duration_ms": 74870,
      "width": 540,
      "height": 960,
      "thumbnail_url": "https://cf-st.sc-cdn.net/d/jspypYdgsWceo4YzSltMj.256.IRZXSOY?mo=GkYaCTIBBEgCUC5gAVCgAVoQRGZMYXJnZVRodW1ibmFpbKIBEAiAAiILEgAqB0lSWlhTT1miARAImgoiCxIAKgdJUlpYU09Z&uc=46",
      "video_url": "https://cf-st.sc-cdn.net/d/jspypYdgsWceo4YzSltMj.27.IRZXSOY?mo=GmEaCTIBBEgCUC5gAVCiAVoQU3BvdGxpZ2h0U2hhcmluZ6IBOQgbEigKJgjvza0DIAEwnAQ4wAdAAUoPCgqxASojIhodIRoaEPQDUPbIBGgCIgsSACoHSVJaWFNPWZAD9sgE&uc=46",
      "sound": "Original Sound"
    }
  ],
  "story_snap_count": 0,
  "story_snaps": [],
  "highlight_count": 10,
  "highlights": [
    {
      "id": "ddf02468-ae16-4fc6-b1bc-bde7e1e22218",
      "title": "Moon Joy",
      "url": "https://www.snapchat.com/@nasa/highlight/ddf02468-ae16-4fc6-b1bc-bde7e1e22218",
      "thumbnail_url": "https://cf-st.sc-cdn.net/d/wAUDrJs74QBAl504N3DhT.410?mo=GjUaFDIBBDoBfUIGCMWw5M4GSAJQXmABUMUBWhBEZkxhcmdlVGh1bWJuYWlsogEHCJoDIgISAA%3D%3D&uc=94",
      "snap_count": 9,
      "latest_snap_at": "2026-04-10T15:32:54.000Z",
      "snaps": [
        {
          "id": null,
          "media_type": "video",
          "media_url": "https://cf-st.sc-cdn.net/d/wAUDrJs74QBAl504N3DhT.1322?mo=GlcaFDIBBDoBfUIGCMWw5M4GSAJQXmABUMIBWgdEZk1lZGlhogEuCKoKEiUKIwiFuBsgATDgAzjUBkABSg4KCRwFBwgHBwkJBxD0A1CQTmgCIgISAJADkE4%3D&uc=94",
          "preview_url": "https://cf-st.sc-cdn.net/d/wAUDrJs74QBAl504N3DhT.410?mo=GjUaFDIBBDoBfUIGCMWw5M4GSAJQXmABUMUBWhBEZkxhcmdlVGh1bWJuYWlsogEHCJoDIgISAA%3D%3D&uc=94",
          "posted_at": "2026-04-10T15:32:54.000Z"
        }
      ]
    }
  ]
}
```

### Pricing

**Pay for the profiles a run delivers**, plus one run start; no platform usage is billed to you. The profile price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Profile (`profile`) | per 1,000 | $2.00 | $1.70 | $1.40 | $1.00 |
| Run start (`start`) | per run | $0.0025 | $0.0025 | $0.0025 | $0.0025 |

A profile row is **$2.00 per 1,000** on the Free plan ($0.002 a profile), its Spotlight videos, story snaps and highlights included. Each run that delivers a profile also pays the **run start, $0.0025 once**; a run that delivers no profile pays nothing at all. So 100 profiles cost $0.2025 on the Free plan. A username Snapchat does not know (`not_found`), a value that is not a profile (`invalid`), a repeated profile (`duplicate`), a profile left at the cap or the time limit (`not_read`) and a refusal the run could not pass (`failed`) are never charged. A run that stops early (a timeout, an abort) is charged for the profiles it delivered. `maxItems` counts the charged rows; before the first request the log names the price of a profile at your plan and the most the run can cost. Enterprise plans have their own rates: the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **Profiles** — `profiles` takes Snapchat usernames (`nasa`, `@nasa`) and profile links (`https://www.snapchat.com/add/nasa`, `https://www.snapchat.com/@nasa`, `https://story.snapchat.com/@nasa`, with any `?share_id=` or `?locale=`). Share links (`t.snapchat.com/…`), Spotlight-only and lens links are not read (a free `invalid` row says so).
- **What a row is** — One row per input value. `status` = `ok`: a profile, with `profile_type` public (every field the page gives) or personal (username, name, Snapcode and Bitmoji only), and the nested lists `spotlights`, `story_snaps` and `highlights`. Any other `status` is a free row that says why in `status_detail`.
- **How many Spotlight videos and stories** — Snapchat shows a logged-out visitor a profile's recent Spotlight videos (7 to 30 on the profiles measured), its public story and its saved highlights; no logged-out page lists more, so that is the depth. `maxSpotlightsPerProfile` and `maxStoriesPerProfile` (0 = all) cut the lists in each row; the `_count` fields keep the page's own counts. `maxItems` caps the profiles of the whole run.

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `profiles` | `array` |  | Profiles to read, one a line: a username (`nasa`, `@nasa`) or a profile link (`https://www.snapchat.com/add/nasa`, `https://www.snapchat.com/@nasa`, `https://story.snapchat.com/@nasa`). A value that is not a profile (a share link `t.snapchat.com/…`, a Spotlight-only or lens link, another site) gets a free `invalid` row; a profile given twice a free `duplicate` row; a username Snapchat does not know a free `not_found` row. |
| `maxSpotlightsPerProfile` | `integer` | `0` | Keep at most this many Spotlight videos in each profile's row, newest first as the page lists them. 0 = every Spotlight the profile page lists (7 to 30 on the profiles measured; Snapchat shows a logged-out visitor its recent ones only). `spotlight_count` always gives the page's own count. |
| `maxStoriesPerProfile` | `integer` | `0` | Keep at most this many public story snaps, and at most this many saved highlights (each with at most this many snaps), in each profile's row. 0 = every one the page lists. `story_snap_count` and `highlight_count` always give the page's own counts. |
| `maxItems` | `integer` | `0` | Stop the whole run after this many profile rows (the charged rows). 0 = no run cap. The free rows (not found, invalid, duplicate) do not count. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A value that is not a Snapchat profile (a share link, a Spotlight-only or lens link, another site) or a username Snapchat does not know is not an error: it gets one free row with `status` invalid or not_found that says why, and the run goes on with the others. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Which status is which?**

`ok` (a profile), `not_found` (Snapchat has no profile with that username; checked on two connections), `invalid` (an empty value, or a value that is not a Snapchat username or profile link), `duplicate` (the same profile again in the input: read once), `failed` (Snapchat refused every try; free) or `not_read` (left at `maxItems`, the charge limit or the run's time limit).

**Does it give every Spotlight video of a profile?**

It gives every Spotlight video the public profile page lists, which is the recent ones (7 to 30 on the profiles measured on 2026-10-30). Snapchat lists no older ones to a logged-out visitor. `spotlight_count` says how many the page listed.

**Does it download the videos?**

No. Each Spotlight video and story snap comes with its `video_url` or `media_url` and a thumbnail or preview link on Snapchat's CDN; the files stay there.

**Does it read private accounts or friends-only stories?**

No. It reads what Snapchat shows a logged-out visitor of a public profile. A personal account gives its username, display name, Snapcode and Bitmoji only.

**Does it need a Snapchat account or a cookie?**

No. Everything is read from Snapchat's public profile pages, logged out.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/snapchat-scraper').call({"profiles": ["https://www.snapchat.com/add/fcbarcelona", "nasa", "kyliejenner"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/snapchat-scraper').call(run_input={'profiles': ['https://www.snapchat.com/add/fcbarcelona', 'nasa', 'kyliejenner']})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/snapchat-scraper --input '{"profiles": ["https://www.snapchat.com/add/fcbarcelona", "nasa", "kyliejenner"]}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~snapchat-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"profiles": ["https://www.snapchat.com/add/fcbarcelona", "nasa", "kyliejenner"]}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/snapchat-scraper` and ask, for example: "Get the subscriber count, bio and Spotlight videos of the Snapchat profiles nasa, kyliejenner and fcbarcelona". The agent fills the input from the table above and reads the rows from the run's dataset. The input names are the ones in the table above. An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/snapchat-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Telegram Profile Scraper](https://apify.com/hyperbach/telegram-profile-scraper)** — Telegram channels, groups, bots and users by username or link, with the exact subscriber or member count.
- **[YouTube Channel Search Scraper](https://apify.com/hyperbach/youtube-channel-search-scraper)** — the YouTube channels a keyword finds, with subscribers, the exact video and view counts and the country.
- **[Threads Scraper](https://apify.com/hyperbach/threads-scraper)** — Threads profiles with the exact follower count, their posts and replies with view counts, and keyword and tag search, without a login.
- **[Substack Scraper](https://apify.com/hyperbach/substack-scraper)** — the posts of a Substack newsletter with the full text of free posts, the date, the paywall flag and the likes.
- **[Weibo Scraper](https://apify.com/hyperbach/weibo-scraper)** — Weibo posts, profiles, search, comments and the hot-search boards, without a login.
- **[Pinterest Search Scraper](https://apify.com/hyperbach/pinterest-search-scraper)** — the pins of a Pinterest search, with the link each pin points to, the image and the pinner.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

## `profiles` (type: `array`):

Profiles to read, one a line: a username (`nasa`, `@nasa`) or a profile link (`https://www.snapchat.com/add/nasa`, `https://www.snapchat.com/@nasa`, `https://story.snapchat.com/@nasa`). A value that is not a profile (a share link `t.snapchat.com/…`, a Spotlight-only or lens link, another site) gets a free `invalid` row; a profile given twice a free `duplicate` row; a username Snapchat does not know a free `not_found` row.

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

Keep at most this many Spotlight videos in each profile's row, newest first as the page lists them. 0 = every Spotlight the profile page lists (7 to 30 on the profiles measured; Snapchat shows a logged-out visitor its recent ones only). `spotlight_count` always gives the page's own count.

## `maxStoriesPerProfile` (type: `integer`):

Keep at most this many public story snaps, and at most this many saved highlights (each with at most this many snaps), in each profile's row. 0 = every one the page lists. `story_snap_count` and `highlight_count` always give the page's own counts.

## `maxItems` (type: `integer`):

Stop the whole run after this many profile rows (the charged rows). 0 = no run cap. The free rows (not found, invalid, duplicate) do not count.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "profiles": [
    "https://www.snapchat.com/add/fcbarcelona",
    "nasa",
    "kyliejenner"
  ],
  "maxSpotlightsPerProfile": 0,
  "maxStoriesPerProfile": 0,
  "maxItems": 50
}
```

# Actor output Schema

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

All scraped records in the default dataset. One row per profile (and one free row per value that gives no profile):

## `runSummary` (type: `string`):

How the run went: profiles charged, free rows, inputs by status, profiles by type, the Spotlight videos, story snaps and highlights delivered, the empty Spotlight slots skipped, the source counters (calls, served, refused, exits, rotations, bytes) and the memory watch.

# 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 = {
    "profiles": [
        "https://www.snapchat.com/add/fcbarcelona",
        "nasa",
        "kyliejenner"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/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 = {
    "profiles": [
        "https://www.snapchat.com/add/fcbarcelona",
        "nasa",
        "kyliejenner",
    ],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/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 '{
  "profiles": [
    "https://www.snapchat.com/add/fcbarcelona",
    "nasa",
    "kyliejenner"
  ],
  "maxItems": 50
}' |
apify call hyperbach/snapchat-scraper --silent --output-dataset

```

## MCP server setup

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