Spiral gives your agent every tool with one account. Browse the tools →

Blog

How to Scrape TikTok With Claude

Spiral Team
Cover image for How to Scrape TikTok With Claude

Want TikTok data inside Claude?

Claude can search the web, but it has no TikTok scraper.

Here's how to fix that in 5 minutes with Spiral.

Let's dive right in.

Yes, Claude can scrape TikTok, though not natively by itself. TikTok's robots.txt blocks the agent Claude uses to fetch web pages, so Claude needs a connected scraper such as Spiral, which pulls public videos, play counts, comments and transcripts into a table.

Can Claude Scrape TikTok?

On its own, Claude isn't offline: it can search the web and fetch any page you link.

So can't Claude just fetch a TikTok page and read the numbers off it?

No. TikTok's robots.txt blocks Claude-User, the agent Claude uses when it fetches a page for you.

So you need a scraper Claude can call, and Spiral adds one through a custom connector on any Claude plan.

Sure enough, once we connected Spiral, Claude pulled 40 videos from three brand accounts in four calls.

TL;DR

  • Claude can scrape TikTok once you add Spiral as a custom connector, since on its own it has web search and fetch, not a TikTok scraper.
  • We pulled 40 videos from Duolingo, Ryanair and Scrub Daddy in four calls, then scored the 33 recent ones.
  • Separate pinned posts first: they're old hits that sit on top of the feed.
  • Use medians, not averages: one 16,909,520-play video skews everything.
  • In our audit, comments and transcripts explained why a video won, while the numbers only showed that it did.
  • TikTok's terms bar automated extraction without written approval, so stick to public data and research.

Why a Connected Scraper Beats the Other Ways

So how do you get real TikTok numbers into Claude? There are four ways people try, and we saw only one hold up for a whole brand audit.

Copy-paste into Claude: it works for three or four videos. Past that, you're typing numbers off a screen, and TikTok's website hides view counts when you're logged out.

A home-made scraper connected to Claude: it can pull more videos. It breaks every few weeks when TikTok changes how its requests are signed, and TikTok blocks data-center connections fast.

Claude's browser extension (Claude in Chrome): it can open a TikTok feed, scroll it and read it for you. It's not a reliable way to collect TikTok data: the feed scrolls forever, and logged-out pages skip the view counts.

Spiral's connected scraper: it hands Claude TikTok's own numbers for every video: plays, likes, comments, shares and the date posted. Comments and transcripts come through the same connection.

What you need

  • A Claude account on any plan (the Free plan allows one custom connector).
  • A Spiral account with a prepaid balance: Spiral bills per use, as Spiral's pricing shows.
  • A list of public TikTok handles you want to track, such as your competitors.
  • Google Sheets or any spreadsheet app for the final CSV.

How to Scrape TikTok With Claude: step by step

Step 1: Connect Spiral to Claude

In Claude Desktop or on claude.ai, go to Customize → Connectors, or click this direct link:

Add Spiral to Claude

Add a custom connector, name it Spiral and paste https://api.spiral.ai/mcp (the direct link fills both in).

Click Add → Connect and sign in with your Spiral account. Spiral's Claude quickstart walks through each screen.

Claude's Add custom connector window with Spiral and its URL filled in

Claude's Add custom connector window with Spiral and its URL filled in. Source: Spiral's Claude guide.

Step 2: Check One Brand's Profile First

Why test a single account before you run a batch?

One profile call confirms the handle is right and the account is public.

For example, we started our test with Duolingo and got 18,681,739 followers back in one call.

Here's the prompt we typed and what Claude showed us:

Ask Claude:

Use Spiral to look up @duolingo on TikTok. Show followers, total likes, video count and bio.

Claude answering "Use Spiral to look up @duolingo on TikTok. Show followers, total likes, video co" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 3: Pull the Latest Videos From One Brand

Next, we pulled the feed itself.

In our runs, each call returned 10 videos, newest first, with TikTok's own counts for every one.

Sure enough, our top row was the oldest: a June 2025 chess ad with 4,118,905 plays.

That's a pinned post that skews your numbers, and here's the first page we pulled:

Ask Claude:

Pull @duolingo's latest TikTok videos with Spiral. For each one, show the date posted, caption, plays and likes.

Claude answering "Pull @duolingo's latest TikTok videos with Spiral. For each one, show the date p" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 4: Run the Batch Across Three Brands

Now scale it up to the accounts you actually track.

We asked for three brands in one message: Duolingo (two pages), Ryanair and Scrub Daddy.

Claude made four calls for our audit, and we got back 40 videos with zero repeats.

Ryanair's pinned June post shows why the next step matters, so here's its slice of our batch:

Ask Claude:

Now do the same for @ryanair and @scrubdaddy, and pull a second page for @duolingo. Remove any repeated videos by video ID.

Claude answering "Now do the same for @ryanair and @scrubdaddy, and pull a second page for @duolin" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 5: Split Pinned Posts From Fresh Ones

Here's the step most people skip.

In other words, pinned posts are old winners that TikTok shows first, so they pass for your rival's latest work.

So we gave Claude one rule: a video older than 30 days at the top of a feed counts as pinned and stays out of the medians.

In our batch, that rule flagged 7 of the 40 videos, and here's the Scrub Daddy feed we flagged:

Ask Claude:

Flag any video older than 30 days at the top of a feed as pinned, and keep pinned posts out of the medians. Show me Scrub Daddy's feed with the pinned ones marked.

Claude answering "Flag any video older than 30 days at the top of a feed as pinned, and keep pinne" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 6: Read the Comments on the Biggest Hit

Numbers tell you which video won, but why did it win?

To find out, we pointed Claude at Duolingo's biggest recent video, a birthday clip with 16,909,520 plays.

In our pull, the two most-liked comments were both in Spanish, with 195,776 and 165,043 likes.

Notice what's missing from our table: usernames.

Ask Claude:

Pull the comments on Duolingo's top video (16,909,520 plays). Show the comment text and likes only, no usernames.

Claude answering "Pull the comments on Duolingo's top video (16,909,520 plays). Show the comment t" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 7: Pull the Transcript of the Most Engaging Video

Then look at the words themselves.

Which video had the best ratio in our batch?

It was the iced tea clip at 31.6%, not the biggest video, and Claude pulled its transcript for us in one call.

Here's the full transcript we got back:

Ask Claude:

Pull the transcript of Duolingo's iced tea video, the one with the best engagement.

Claude answering "Pull the transcript of Duolingo's iced tea video, the one with the best engageme" with Spiral

Recreated from a real run in this guide, with Spiral connected to Claude.

Step 8: Score the Batch and Send It to a Sheet

Finally, we turned our batch into something you can sort and share.

We had Claude score every recent video with one rule: likes plus comments plus shares, divided by plays, to one decimal.

Then it wrote our CSV for Google Sheets, sorted by plays, and turned each video's timestamp into a plain date.

Here's the 26-row sheet we ended up with, ready to paste into your weekly report:

Ask Claude:

Score every recent video: engagement % = (likes + comments + shares) ÷ plays, one decimal. Keep Duolingo's top 12 and every Ryanair and Scrub Daddy video. Give me a CSV for Google Sheets, sorted by plays.

TikTok brand audit: recent videos from Duolingo, Ryanair and Scrub Daddy, scored in Google Sheets: Brand, Posted, Caption, Plays, Likes, Comments, Shares, Engagement %

Recreated from a real run in this guide.

Instructions to reuse in a Claude Project

Paste this into your Claude Project's instructions, so every chat follows the same rules:

You are my TikTok research assistant.

Use Spiral's TikTok tools for every number. Never estimate plays, likes or comments.

For each handle I give you, pull the latest videos. Pull two pages for big accounts.

Flag any video older than 30 days at the top of a feed as pinned, and keep pinned posts out of the medians.

Remove repeated videos by video ID before you count anything.

Score each video: engagement % = (likes + comments + shares) ÷ plays, to one decimal.

Return one table: brand, date posted, caption, plays, likes, comments, shares, engagement %, sorted by plays.

Then give me the median plays per brand and the top 3 videos by engagement.

For the top video, pull its comments and transcript, and summarize what viewers react to.

Never save commenters' usernames. Public accounts only.

The instructions in a Claude Project

The instructions block from this guide, in a Claude Project.

Results from our runs

Four feed pulls returned 40 videos from 3 brands, with 0 repeats between Duolingo's two pages.

7 of the 40 were older pinned posts, which left 33 videos from the last 30 days.

Median plays per recent video: Duolingo 568,108, Ryanair 47,624, Scrub Daddy 34,851.

Top video: Duolingo's birthday clip at 16,909,520 plays. Best engagement: the iced tea clip at 31.6%.

The two most-liked comments on the birthday clip were in Spanish, with 195,776 and 165,043 likes.

Scrub Daddy's Cyber Monday sale post drew 2,517 plays, about 7% of the brand's median.

Plays by caption

Recreated from a real run in this guide.

Tips for better results

  • Test one handle before your batch, because a single profile call catches typos and private accounts.
  • Name your columns in the prompt: Claude builds the table you describe, so describe the one you want.
  • Ask for medians per brand, because one viral video can make an average look like a lie.
  • Pull comments only for the outliers, because your top and bottom videos teach you more than the middle.
  • Ask for transcripts of your best-engagement videos to study their hooks line by line.
  • Keep the Project instructions word for word each week, as we do, so this week's sheet lines up with last week's.

Common mistakes

Trusting the top of the feed

Pinned posts sit first and pass for fresh work: in our batch, Ryanair's pinned June post has 16,915,882 plays, while its newest posts sit under 700,000.

Using averages instead of medians

In our batch, Duolingo's birthday clip alone has 16,909,520 plays, while the brand's median is 568,108, the number to plan around.

Counting collab posts as the brand's own

We found one video in Duolingo's feed from a partner account with 10,221,574 followers, so have Claude check the author on every row.

Asking for "all the videos"

Each call returns 10 videos, so say how many pages you want and Claude won't stop short or run more calls than you need.

Saving commenters' usernames

You need what people said, not who said it, so ask for comment text and likes only.

Put the Weekly Audit on Autopilot

Once the Project works, your weekly audit takes one message.

Every Monday, open your Project and type: run the weekly audit for duolingo, ryanair and scrubdaddy.

Claude in Chrome can run browser tasks on a schedule, but for this job the Monday prompt in your Project is the dependable route.

To keep spend in check, give the connection its own Spiral API key with a spend cap, then compare each week's sheet with the last one.

Limits and good practice

TikTok's terms

TikTok's terms bar automated extraction without written approval, so we kept our audit to public data, and you should get legal advice before commercial use.

Public data only

You get what TikTok shows publicly (plays, likes, comments, shares and dates), while private accounts, watch time and retention stay out of reach.

Ten videos per call

Each feed call returned 10 videos in our runs, so a long history takes many calls, and Spiral bills per use (see Spiral's pricing).

Transcripts cover speech only

Our iced tea transcript held two spoken lines and nothing about on-screen text, so watch your top videos yourself before you copy a format.

Using people data lawfully

TikTok's terms bar scraping or extracting its data with automated software unless TikTok approves it in writing, so read them and get legal advice before you build on this.

Collect public data only, as we did with public brand accounts and their public counts, and never touch private accounts or messages.

Comments come from real people, so under GDPR and similar privacy laws, keep the text you need, drop usernames, and delete what you no longer use.

Have a legitimate purpose, such as competitor research or content planning, and write it down.

Never use comment lists for spam, cold DMs or follow campaigns, and respect anyone who deletes a comment or asks to be left out.

FAQ

Can Claude scrape TikTok on its own?

No: Claude can search the web and fetch pages you link, but it has no tool that pulls a TikTok feed as numbers. Connect Spiral as a custom connector, and it can.

It depends on your use and your country: TikTok's terms bar automated extraction without its written approval. Stick to public data and research, and get legal advice before any commercial use.

Can Claude get TikTok view counts?

Yes, with Spiral connected: each video comes back with its play count, likes, comments and shares. Our Duolingo pull showed 16,909,520 plays on its top recent video.

Can I scrape TikTok comments with Claude?

Yes: give Claude a video link, and Spiral's comment scraper returns each comment's text and likes. Leave usernames out of anything you save.

Can Claude read what's said in a TikTok video?

Yes: Spiral's transcript tool returns a video's spoken lines with timestamps. Our iced tea clip came back in one call.

Does this work on the free Claude plan?

Yes: custom connectors work on every Claude plan, and the Free plan allows one. Spiral can be that one.

How much does TikTok scraping cost with Spiral?

Spiral bills per use from a prepaid balance, with no subscription. Each tool's rate is on Spiral's pricing page.

The bottom line

Claude already knows how to read a feed and spot a pattern.

Spiral gives it the TikTok data to work with, and our 40-video audit shows what you get.

So connect Spiral, paste the Project instructions, and run your first audit on three accounts you watch.

Sources

  1. https://spiral.ai
  2. https://spiral.ai/pricing
  3. https://spiral.ai/docs/quickstarts/claude-desktop.md
  4. https://support.claude.com/en/articles/10684626-enable-and-use-web-search
  5. https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp
  6. https://support.claude.com/en/articles/12012173-get-started-with-claude-in-chrome
  7. https://www.tiktok.com/legal/page/us/terms-of-service/en
  8. https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler
  9. https://www.tiktok.com/robots.txt