DEV Community

Zait Dioses
Zait Dioses

Posted on

How to get transcripts from Snapchat Spotlight videos with Python

Snapchat Spotlight is Snapchat's short-video feed, and big creators post there every day. But Snapchat has no public API for it, and there's no easy way to get what people actually say in those videos.

In this tutorial you'll get, for any public Snapchat creator or Spotlight link:

  • views, likes, comments, shares, caption, upload date and creator stats;
  • the spoken transcript of each video, with timestamps.

No Snapchat account, no cookies, no browser automation.

What you need

  • A free Apify account (you get monthly free credit).
  • Python 3.9+ and pip install apify-client.
  • Your Apify API token (Console → Settings → API & Integrations).

1. Try it without code

Open Snapchat Spotlight Scraper & Transcript, type a username like mrbeast (or paste a Spotlight link), and click Start. In a few seconds you get a table with each video and its transcript, which you can export to CSV, Excel or JSON.

2. Do it from Python

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("zait_dioses/snapchat-spotlight-transcript-scraper").call(run_input={
    "usernames": ["mrbeast", "kyliejenner"],
    "maxVideosPerProfile": 10,
    "transcribe": True,
    "includeSegments": True,
})

for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video["url"], video["viewCount"], video["transcriptStatus"])
    print((video["transcript"] or "")[:200], "\n")
Enter fullscreen mode Exit fullscreen mode

Each item looks like this (shortened):

{
  "url": "https://www.snapchat.com/@kyliejenner/spotlight/W7_EDlXW…",
  "caption": "new day in the life on my youtube",
  "viewCount": 84761,
  "likeCount": 3475,
  "commentCount": 244,
  "durationSeconds": 43.23,
  "author": { "username": "kyliejenner", "subscribers": 28569600 },
  "transcript": "Good morning Stormy! Rise and shine. It's a beautiful day…",
  "transcriptSource": "snapchat",
  "transcriptSegments": [{ "start": 10.12, "end": 12.44, "text": "Good morning Stormy!" }],
  "transcriptStatus": "ok"
}
Enter fullscreen mode Exit fullscreen mode

Where the transcript comes from

Snapchat already generates captions for many Spotlight videos, so the Actor uses those first (transcriptSource: "snapchat"). When a video has no captions, it downloads the audio and transcribes it with Whisper (transcriptSource: "whisper"), in English, Spanish, Portuguese and 90+ other languages.

Music-only videos come back as transcriptStatus: "no_speech" instead of the made-up text Whisper sometimes produces on music, and they are not charged as transcripts.

3. Ideas for what to do with it

  • Influencer research: compare creators by views and engagement, and check what they talk about before you work with them.
  • LLM pipelines: send the transcripts to ChatGPT or Claude to summarize, tag or translate them. There's also a built-in aiSummary option that returns a summary, topics, brands mentioned and tone.
  • Brand monitoring: search the transcripts for your brand or product, even when it's not in the caption.
  • Repurposing: turn videos into blog posts or subtitles with includeSegments: true.

Cost

You pay per result: $2 per 1,000 videos, plus $4 per 1,000 transcripts from Snapchat's captions. Whisper is only used when Snapchat has no captions ($0.01 per minute), and you can turn it off.

Wrapping up

That's it: Snapchat Spotlight data plus transcripts in a few lines of Python. One limitation to know: a public profile only shows its most recent Spotlight videos, so for an older video paste its Spotlight link directly. If you need another field or find a bug, open an issue on the Actor page. I read all of them.

Top comments (0)