# Snapchat User Spotlight Scraper (`easyapi/snapchat-user-spotlight-scraper`) Actor

Extract public spotlight content from Snapchat profiles with comprehensive metadata. Get video URLs, engagement metrics, hashtags, and more. Perfect for content analysis and social media monitoring.🎥

- **URL**: https://apify.com/easyapi/snapchat-user-spotlight-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media
- **Stats:** 283 total users, 58 monthly users, 99.5% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.99 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Snapchat User Spotlight Scraper 👻

### 🤖 What does Snapchat User Spotlight Scraper do?

This actor scrapes public spotlight content from Snapchat profiles. It extracts comprehensive spotlight metadata, engagement metrics, and media URLs, perfect for social media monitoring and content analysis.

### ✨ Key Features

- 🎥 Extract detailed spotlight metadata including:
  - Video content URLs and thumbnails
  - View and share counts
  - Upload dates and duration
  - Video dimensions
  - Hashtags and descriptions
- 📊 Capture engagement metrics
- 🔄 Proxy support for reliable scraping
- 💾 Structured data output

### 📋 Output Data Structure

Each spotlight contains:

- Video metadata (URL, thumbnail, duration, dimensions)
- Engagement stats (views, shares)
- Creator information
- Hashtags and descriptions
- Upload timestamp
- Context cards (related sounds, profile links)
- Deep linking parameters

### 💡 Use Cases

- Social Media Content Analysis
- Influencer Marketing Research
- Engagement Tracking
- Content Performance Monitoring
- Trend Analysis
- Competitive Intelligence

### 🔧 Input Parameters

- `usernames`: Array of Snapchat usernames to scrape
- `proxyConfiguration`: Optional proxy settings

#### Input Example

A full explanation of an input example in JSON.

```
{
    "usernames": [
		"fcbarcelona", "realmadrid"
	]
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
	{
		"videoMetadata": {
			"name": "Spotlight Snap",
			"description": "#fcbarcelona #laligahighlights",
			"thumbnailUrl": "https://bolt-gcdn.sc-cdn.net/bp/Tc9g4501N7pZ0xcgzn4ks.256.IRZXSOY?mo=GkcaDRoAGgAyAVFIAlAuYAFaEERmTGFyZ2VUaHVtYm5haWyiARAIgAIiCxIAKgdJUlpYU09ZogEQCJoKIgsSACoHSVJaWFNPWQ%3D%3D&uc=46",
			"viewCount": "31801",
			"contentUrl": "https://bolt-gcdn.sc-cdn.net/bp/Tc9g4501N7pZ0xcgzn4ks.27.IRZXSOY?mo=GmAaDRoAGgAyAVFIAlAuYAFaEFNwb3RsaWdodFNoYXJpbmeiATgIGxInCiUgAUofChpbLCYpJissOzk_QUI_PTJWbWl4bkE1NVteYRD0A2gCIgsSACoHSVJaWFNPWZADkGc%3D&uc=46",
			"creator": {
				"$case": "personCreator",
				"personCreator": {
					"username": "FC Barcelona",
					"url": "https://www.snapchat.com/add/FC%20Barcelona",
					"name": ""
				}
			},
			"durationMs": "13200",
			"width": 540,
			"height": 960,
			"keywords": [],
			"shareCount": "0",
			"uploadDate": "2024-11-04T13:14:19.662Z"
		},
		"hashtags": [
			"#fcbarcelona",
			"#laligahighlights"
		],
		"contextCards": [
			{
				"contextType": 2,
				"title": "@fcbarcelona's Sound",
				"subtitle": "",
				"url": "",
				"thumbnailUrl": "https://cf-st.sc-cdn.net/d/6YKRUxipwtyh6YMgtaJbK?bo=Eg0aABoAMgEESAJQCGAB&uc=8",
				"snapcodeUrl": "",
				"thumbnailType": 2,
				"hasBadge": false
			},
			{
				"contextType": 3,
				"title": "FC Barcelona",
				"subtitle": "FC Barcelona",
				"url": "https://www.snapchat.com/add/FC%20Barcelona",
				"thumbnailUrl": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9jZi1zdC5zYy1jZG4ubmV0L2Qvbm1ObmtrTUhDbUxEUk5WRzNlZnBuP2JvPUVnMGFBQm9BTWdFRVNBSlFHV0FCJnVjPTI1._RS0,90_FMjpeg",
				"snapcodeUrl": "https://app.snapchat.com/web/deeplink/snapcode?username=FC%20Barcelona&type=SVG&bitmoji=enable",
				"thumbnailType": 0,
				"hasBadge": true
			}
		],
		"engagementStats": {
			"viewCount": "31801",
			"shareCount": "3"
		},
		"deeplink": "https://click.snapchat.com/aVHG?pid=snapchat_download_page&af_dp=https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYZXhybHN1cm9rAZL3T-HpAZL3T96OAAAAAQ?sc_referrer%3Dweb&af_web_dp=https://snapchat.com/download?purpose%3Dweb_stories%26sp%3Dspotlight&af_ios_url=https://apps.apple.com/app/apple-store/id447188370?pt%3D614006%26ct%3Dspotlight%26mt%3D8",
		"oneLinkParams": {
			"oneLinkBaseUrl": "https://click.snapchat.com/aVHG",
			"pidKeys": [
				"af_pid",
				"utm_source"
			],
			"pidFallbackValue": "consumer_web",
			"campaignKeys": [
				"af_c",
				"utm_campaign"
			],
			"campaignFallbackValue": "spotlight",
			"googleClickIdParam": "af_sub1",
			"deepLinkUrl": "https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYZXhybHN1cm9rAZL3T-HpAZL3T96OAAAAAQ?sc_referrer=web",
			"iosAppStoreUrl": "https://apps.apple.com/app/apple-store/id447188370?pt=614006&ct=spotlight&mt=8",
			"desktopPageUrl": "https://snapchat.com/download?purpose=web_stories&sp=spotlight"
		},
		"description": "#fcbarcelona #laligahighlights",
		"username": "fcbarcelona"
	},
    ...
]
```

# Actor input Schema

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

List of Snapchat usernames to scrape

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

Proxy settings for the crawler

## Actor input object example

```json
{
  "usernames": [
    "fcbarcelona"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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": [
        "fcbarcelona"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/snapchat-user-spotlight-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 = { "usernames": ["fcbarcelona"] }

# Run the Actor and wait for it to finish
run = client.actor("easyapi/snapchat-user-spotlight-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 '{
  "usernames": [
    "fcbarcelona"
  ]
}' |
apify call easyapi/snapchat-user-spotlight-scraper --silent --output-dataset

```

## MCP server setup

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