# Snapchat Public Publisher and Discover Scraper (`w3crawler/snapchat-publisher-scraper`) Actor

Extract bounded public Snapchat Discover and publisher/profile story records with explicit diagnostics.

- **URL**: https://apify.com/w3crawler/snapchat-publisher-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 publishers & shows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Public Publisher and Discover Scraper extracts bounded public publisher, show, story, and profile records from Snapchat Discover or public profile URLs.

The Actor reads public server-rendered page state only. It does not log in, access private APIs or viewer data, download media, solve CAPTCHAs, or bypass access controls. Direct public HTTPS is used by default; standard Apify Proxy can be enabled as a transparent transport when justified.

### Input

| Field | Default | Limits |
| --- | --- | --- |
| `startUrls` | Snapchat Discover | 1–50 public Snapchat HTTPS URLs |
| `publisherUrls` | `[]` | Up to 50 additional public profile URLs |
| `query` | empty | Local case-insensitive filter, up to 200 characters |
| `maxItems` | `10` | 1–100 unique publisher/show records |
| `maxEpisodes` | `10` | 1–100 nested public episodes per record |
| `includeProfiles` | `true` | Enrich Discover candidates from their public profile page |
| `requestDelayMs` | `250` | 0–30,000 ms before each request |
| `timeoutSecs` | `45` | 5–60 seconds per request |
| `maxResponseBytes` | `5000000` | 100,000–10,000,000 bytes |
| `proxyConfiguration` | Direct (`useApifyProxy: false`) | Optional standard Apify proxy configuration |

```json
{
  "startUrls": [{ "url": "https://www.snapchat.com/@brentrivera" }],
  "maxItems": 1,
  "maxEpisodes": 5,
  "includeProfiles": false,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

### Output

The default dataset contains successful `snapchat-publisher-story` and `snapchat-premium-show` rows only. Records include stable identity, publisher/profile fields, bounded episode or highlight metadata, source provenance, request evidence, and transport details. Optional values are omitted when the public page does not expose them.

Diagnostics stay in `OUTPUT_SUMMARY` and its `OUTPUT` compatibility alias; blocked and unavailable targets therefore produce an empty valid dataset instead of fake rows. `SOURCE_METADATA` describes the public source and access policy. Raw server-rendered payloads and viewer state are not stored.

Requests use one attempt with library retries disabled. Redirects are limited to three hops and must remain on public Snapchat HTTPS hosts.

### Local verification

```text
npm test
npm run lint
apify validate-schema
apify run --purge --input-file qa-inputs/local.json
npm run validate
```

Snapchat’s public layout, content availability, and access controls can change. Use this Actor only for lawful public-data collection and respect platform terms, privacy rights, content ownership, rate limits, and applicable data-protection requirements.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/snapchat-publisher-scraper/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

Public HTTPS Snapchat Discover, publisher, show, story, or profile URLs.

## `publisherUrls` (type: `array`):

Additional public HTTPS Snapchat publisher/profile URLs.

## `query` (type: `string`):

Case-insensitive local filter over bounded publisher, show, creator, bio, story, and source data.

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

Maximum unique public publisher or show records saved.

## `maxEpisodes` (type: `integer`):

Maximum normalized public episode/media objects nested in each record.

## `includeProfiles` (type: `boolean`):

Fetch public @username profile pages for Discover publisher stories.

## `requestDelayMs` (type: `integer`):

Delay before each public source or profile request.

## `timeoutSecs` (type: `integer`):

Bounded timeout for each public request.

## `maxResponseBytes` (type: `integer`):

Maximum public HTML response body retained in memory.

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

Optional Apify Proxy configuration used as a transparent request transport. Direct public HTTPS is used by default.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.snapchat.com/discover"
    }
  ],
  "publisherUrls": [],
  "query": "",
  "maxItems": 10,
  "maxEpisodes": 10,
  "includeProfiles": true,
  "requestDelayMs": 250,
  "timeoutSecs": 45,
  "maxResponseBytes": 5000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

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

No description

## `sourceMetadata` (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 = {
    "startUrls": [
        {
            "url": "https://www.snapchat.com/discover"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/snapchat-publisher-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 = { "startUrls": [{ "url": "https://www.snapchat.com/discover" }] }

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/snapchat-publisher-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 '{
  "startUrls": [
    {
      "url": "https://www.snapchat.com/discover"
    }
  ]
}' |
apify call w3crawler/snapchat-publisher-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/snapchat-publisher-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/uGPI6JhXIRLaDgZue/builds/0OuY9shXoN56d6Jn8/openapi.json
