# Snapchat Profile Scraper \[Just 💰$0.03] (`blackfalcondata/snapchat-com-scraper`) Actor

Scrape Snapchat public profiles of creators and brands by keyword or profile URL. Each row has subscriber count, bio, category and website plus recent stories and Spotlight videos with view counts. No login needed and ready for a spreadsheet or CRM.

- **URL**: https://apify.com/blackfalcondata/snapchat-com-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Social media, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.03 / 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

### What does Snapchat Profile Scraper do?

Snapchat Profile Scraper extracts public Snapchat profiles of creators and brands from [snapchat.com](https://snapchat.com), found by keyword or pasted as profile URLs. Each profile row has the channel's subscriber count, bio, category, website and address. With details on (the default), it also lists the profile's current stories, its Spotlight videos with view counts, highlights, lenses and related accounts. No login is needed.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

- **🏘️ Address:** `address` as separate fields for every profile that lists them.
- **📇 Contact details:** `websiteUrl` where the profile publishes them.
- **🥇 Ranking and badges:** `badge` as snapchat.com shows them on each profile.
- **📣 Channel profile:** `subscriberCount` come with every profile, so you can rank and filter the channels behind them.
- **🗂️ Category path:** `category` place each profile in snapchat.com's own category tree.
- **🔍 Keyword search:** search snapchat.com by keyword with the `query` input.
- **🔗 Paste-mode:** paste snapchat.com URLs into `startUrls` to scrape exactly the pages you picked in the browser.
- **📋 Detail enrichment:** profile details (bio, website, address, badge, snapcode, story, spotlight, highlights and lenses) are ON by default via `includeDetails`; turn it off for a faster search-only run.
- **♻️ Incremental mode:** recurring runs emit and charge only for listings that are new or whose tracked content changed. First run builds the baseline; subsequent runs emit only NEW / UPDATED / REAPPEARED records (UNCHANGED + EXPIRED opt-in). Saves 80–95% on daily monitoring.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.
- **📦 Compact mode:** AI-agent and MCP-friendly payloads with core fields only.

### What data can you extract from snapchat.com?

Each result includes Core profile fields (`username`, `name`, `url`, `portalUrl`, `subscriberCount`, `bio`, `category`, and `subcategory`, and more) and detail fields when enrichment is enabled (`detailFetched`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Detail enrichment is on by default and fetches each record's detail page — extra fields the search results omit.

### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Keyword, brand, or name to search Snapchat for. Required if no startUrls provided. Accepts one term, or a JSON array of terms to run several searches in one go.
- **`maxResults`** — Maximum total results (0 = unlimited). (default: `100`)
- **`startUrls`** — Paste Snapchat URLs: profile (snapchat.com/@name), explore search (snapchat.com/explore/keyword), hashtag page (snapchat.com/tag/name), Spotlight video (snapchat.com/spotlight/id), Lens (snapchat.com/lens/id), a share link (t.snapchat.com/...) or a bare username/hashtag (ikea, @ikea, #football). Hashtag, Spotlight and share links resolve to the creator profile(s) behind them; a Lens URL (or a share link to one) returns a Lens row (recordType "lens": name, id, icon, previews, unlock link, official flag), plus the creator's profile when the lens has a public creator. Each URL becomes its own search task; results are merged and deduped by profile across all URLs. When provided, startUrls REPLACE the query field (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error). (default: `[]`)
- **`usernames`** — Snapchat handles to scrape directly (with or without @), e.g. ikea. Each becomes a profile task, merged and deduped with Start URLs. (default: `[]`)
- **`hashtags`** — Snapchat hashtags (with or without #), e.g. football. The creators of the Spotlight videos on each hashtag page (about 30) are scraped as profiles. (default: `[]`)
- **`includeDetails`** — Visit each profile to add bio, website, address, badge, snapcode and the story / spotlight / highlight / lens content. Turn off for a faster, search-only result set. (default: `true`)
- **`includeSpotlightComments`** — Add the public viewer comments shown under each profile's Spotlight videos: comment text, reactions, author display name and Bitmoji ids, time, reply count and Snapchat's ranking score. Snapchat shows up to about 25 top comments per video on the profile page. Reads the profile page, so it also works with Include Full Details off. Default: off. (default: `false`)
- **`maxCommentsPerSpotlight`** — Keep only the top N comments per Spotlight video by Snapchat's ranking score. 0 = every comment the profile page shows. Ignored when Include Spotlight Comments is off. (default: `0`)
- **`descriptionMaxLength`** — Truncate the profile bio to N characters. 0 = no truncation. (default: `0`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`descriptionFormat`** — Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others. (default: `"all"`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards. (default: `false`)
- ...and 18 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "food",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit profiles that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "food",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "food-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "food",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured profile records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example profile record

```json
{
  "username": "ikea_usa",
  "name": "IKEA USA",
  "url": "https://www.snapchat.com/@ikea_usa",
  "portalUrl": "https://www.snapchat.com/@ikea_usa",
  "subscriberCount": 0,
  "bio": "© Inter IKEA Systems B.V. 2022",
  "category": "Product Brand",
  "subcategory": "Brand",
  "websiteUrl": "https://ikea-usa.com/",
  "address": "US",
  "badge": 1,
  "profilePictureUrl": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2QvOU1pS2pvTUtVY2F6bTJrS0h1YjFRP2JvPUVnMGFBQm9BTWdFRVNBSlFHV0FCJnVjPTI1._RS0,90_FMjpeg",
  "snapcodeUrl": "https://app.snapchat.com/web/deeplink/snapcode?username=ikea_usa&type=SVG&bitmoji=enable",
  "profileId": "4dd29989-d3e3-41e1-a4dd-7506c43160a6",
  "profileCreatedAt": "2022-02-02T23:44:09.984Z",
  "profileUpdatedAt": "2026-06-02T22:47:58.457Z",
  "storySnapCount": 0,
  "spotlightCount": 0,
  "highlightCount": 0,
  "lensCount": 0,
  "input": "ikea",
  "foundVia": "search",
  "listingId": "a1e602b585989c75129bcb0ea619b8eafa78974557079c7d96065eac15d5d7ed",
  "searchQuery": "ikea",
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-10-24T01:53:40.990Z",
  "source": "snapchat.com",
  "changeType": "NEW",
  "isRepost": false
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape snapchat.com

1. Go to [Snapchat Profile Scraper](https://apify.com/blackfalcondata/snapchat-com-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Keep `includeDetails` on (the default) for the extra detail-page fields, or turn it off for faster, cheaper runs.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract profile data from snapchat.com for market research and competitive analysis.
- Monitor new and changed profiles on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape snapchat.com?

Snapchat Profile Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.01 per run
- **Per result:** $0.00003 per profile record

Example costs:

- 10 results: **$0.01**
- 25 results: **$0.011**
- 100 results: **$0.013**
- 200 results: **$0.016**
- 500 results: **$0.025**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of profiles that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 profiles per run, daily polling (30 runs/month). Costs scale linearly with the number of profiles.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.02 | $0.01 | $0.00689 (40%) | $0.31 |
| 15% — moderate broad query | $0.02 | $0.01 | $0.00616 (36%) | $0.33 |
| 30% — high-volume aggregator | $0.02 | $0.01 | $0.00508 (29%) | $0.37 |

Full re-scrape monthly cost at the same cadence: $0.52. First month with incremental costs $0.32 / $0.34 / $0.37 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from snapchat.com?

The number of results depends on the search query and available profiles on snapchat.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Snapchat Profile Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed profiles on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Snapchat Profile Scraper with other apps?

Yes. Snapchat Profile Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Snapchat Profile Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Snapchat Profile Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape snapchat.com?

This actor extracts publicly available data from snapchat.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/snapchat-com-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Loom Video Scraper — Transcripts & Metadata](https://apify.com/blackfalcondata/loom-com-scraper?fpr=1h3gvi) — Scrape Loom videos from share or embed URLs or from 32-character video IDs. Every row carries the.
- [Pexels Scraper — Photos, Videos & Engagement Data](https://apify.com/blackfalcondata/pexels-scraper?fpr=1h3gvi) — This Pexels scraper extracts photos and videos by search, curated feed, photo ID, user, collection.
- [Video & Audio Transcriber · Whisper Speech-to-Text, SRT & VTT](https://apify.com/blackfalcondata/video-audio-transcriber?fpr=1h3gvi) — Whisper speech-to-text for any video, audio or podcast URL: full transcript with timestamped.
- [YouTube Comment Scraper — Comments, Replies, Likes](https://apify.com/blackfalcondata/youtube-comment-scraper?fpr=1h3gvi) — Scrape YouTube comments and their reply threads from any video, channel, or search query. Each.
- [YouTube Scraper $2/1K — Videos, Channels, Comments, Transcripts](https://apify.com/blackfalcondata/youtube-data-scraper?fpr=1h3gvi) — Scrape YouTube videos, channels, comments, and transcripts in one tool — by keyword or by video,.
- [Facebook Ad Library Scraper \[💰$0.05/1k\] — Ads & EU Reach](https://apify.com/blackfalcondata/facebook-ads-library-scraper?fpr=1h3gvi) — Scrape facebook.com/ads/library by keyword or advertiser: ad copy, image and video URLs, landing.
- [Facebook Ads Scraper \[💰$0.05/1k\] — Ad Library & EU Reach](https://apify.com/blackfalcondata/facebook-ads-library-scraper?fpr=1h3gvi) — Scrape facebook.com/ads/library by keyword or advertiser: ad copy, image and video URLs, landing.
- [Facebook Group Scraper — Posts, Comments & Engagement](https://apify.com/blackfalcondata/facebook-group-post-scraper?fpr=1h3gvi) — Scrape facebook.com — post text & timestamps · reaction/comment/share counts · media & optional.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on snapchat.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Snapchat Profile's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Snapchat Profile or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

snapchat scraper, snapchat api, apify snapchat, snapchat data extraction, snapchat profile scraper, snapchat profile api, apify snapchat profile, snapchat profile data extraction, snapchat.com scraper, snapchat.com data, snapchat.com api, social media scraper, video data, creator data.

# Changelog

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

# Actor input Schema

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

Keyword, brand, or name to search Snapchat for. Required if no startUrls provided. Accepts one term, or a JSON array of terms to run several searches in one go.

## `maxResults` (type: `integer`):

Maximum total results (0 = unlimited).

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

Paste Snapchat URLs: profile (snapchat.com/@name), explore search (snapchat.com/explore/keyword), hashtag page (snapchat.com/tag/name), Spotlight video (snapchat.com/spotlight/id), Lens (snapchat.com/lens/id), a share link (t.snapchat.com/...) or a bare username/hashtag (ikea, @ikea, #football). Hashtag, Spotlight and share links resolve to the creator profile(s) behind them; a Lens URL (or a share link to one) returns a Lens row (recordType "lens": name, id, icon, previews, unlock link, official flag), plus the creator's profile when the lens has a public creator. Each URL becomes its own search task; results are merged and deduped by profile across all URLs. When provided, startUrls REPLACE the query field (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error).

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

Snapchat handles to scrape directly (with or without @), e.g. ikea. Each becomes a profile task, merged and deduped with Start URLs.

## `hashtags` (type: `array`):

Snapchat hashtags (with or without #), e.g. football. The creators of the Spotlight videos on each hashtag page (about 30) are scraped as profiles.

## `includeDetails` (type: `boolean`):

Visit each profile to add bio, website, address, badge, snapcode and the story / spotlight / highlight / lens content. Turn off for a faster, search-only result set.

## `includeSpotlightComments` (type: `boolean`):

Add the public viewer comments shown under each profile's Spotlight videos: comment text, reactions, author display name and Bitmoji ids, time, reply count and Snapchat's ranking score. Snapchat shows up to about 25 top comments per video on the profile page. Reads the profile page, so it also works with Include Full Details off. Default: off.

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

Keep only the top N comments per Spotlight video by Snapchat's ranking score. 0 = every comment the profile page shows. Ignored when Include Spotlight Comments is off.

## `descriptionMaxLength` (type: `integer`):

Truncate the profile bio to N characters. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `descriptionFormat` (type: `string`):

Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, startUrls) so different filter sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip profiles whose content matches a profile that disappeared in a prior run (cross-run duplicate detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit profiles whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit profiles that were seen before but are no longer found.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED profiles. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of profiles included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "query": "food",
  "maxResults": 100,
  "startUrls": [],
  "usernames": [],
  "hashtags": [],
  "includeDetails": true,
  "includeSpotlightComments": false,
  "maxCommentsPerSpotlight": 0,
  "descriptionMaxLength": 0,
  "compact": false,
  "descriptionFormat": "all",
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5
}
```

# 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 = {
    "query": "food",
    "maxResults": 100,
    "descriptionFormat": "all",
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/snapchat-com-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 = {
    "query": "food",
    "maxResults": 100,
    "descriptionFormat": "all",
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/snapchat-com-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 '{
  "query": "food",
  "maxResults": 100,
  "descriptionFormat": "all",
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/snapchat-com-scraper --silent --output-dataset

```

## MCP server setup

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