Skip to content

How to scrape TikTok and Instagram with Claude

How-ToBlake Folgado
How to scrape TikTok and Instagram with Claude

Source review · Checked . Based on the linked documentation and tool definitions. Examples are illustrative unless a run receipt is provided. Editorial standards

To scrape TikTok or Instagram with Claude, connect ToolRouter as a custom connector, then ask Claude for a handle's profile and recent posts. Claude calls Social Profiles for follower counts and Social Media Content for the latest videos, each with views, likes, comments and shares. No scraper to host, no proxies and no TikTok or Meta developer account.

Claude cannot read TikTok or Instagram on its own: its web fetch gets a login wall or an empty JavaScript shell. The tools below return the data as JSON that Claude can sort, chart and summarise.

What you can pull

JobTool and skillInput
Followers, likes, video countSocial Profiles: get_tiktok_profile, get_instagram_profile, get_youtube_channel, get_twitter_profileHandle
Latest videos or posts with metricsSocial Media Content: get_tiktok_videos, get_instagram_posts, get_instagram_reels, get_youtube_shortsHandle
One video or postSocial Media Content: get_tiktok_video, get_instagram_postPost URL
Comments on a postSocial Reader: read_commentsPost URL (TikTok, YouTube, Instagram, Facebook, Reddit, X, Threads)
Keyword, hashtag and reels searchSocial Media Search: search_tiktok_keywords, search_tiktok_hashtags, search_instagram_reelsQuery or hashtag

The same tools cover Facebook pages, LinkedIn company posts, Threads, Bluesky, Pinterest, Reddit, Twitch and more. Each paid call is billed at max($0.005, provider cost), and the social calls in this guide each cost $0.005. Failed paid calls are not charged. See Billing.

Connect once

In Claude, open Customize → Connectors → + → Add custom connector and use:

  • Name: ToolRouter
  • URL: https://api.toolrouter.com/mcp

For Claude Code:

bash
claude mcp add toolrouter -- npx -y toolrouter-mcp

Other assistants are covered in Connect. The first paid call returns a link to claim the account and add credits.

A real run: Duolingo on TikTok

We ran this on 5 October 2026. The prompt:

text
Use ToolRouter. Get the TikTok profile for duolingo, then its latest videos.
Give me a table of date, caption, views, likes, comments and shares,
leave out pinned videos, and tell me which formats drive comments.

get_tiktok_profile returned 18.2 million followers, 502.6 million likes and 1,194 videos. get_tiktok_videos returned the 10 most recent videos, one of them pinned. The nine unpinned ones:

PostedCaption (start)ViewsLikesCommentsShares
5 Octproof that tacos are a language33,9292,335177257
2 Octcan you tell i'm bulking rn477,68556,4561,94014,747
2 Octnew job who dis @tacobell98,4136,676418356
1 Octmeet @tacobell's new employee497,35759,9231,44810,442
1 Oct@tacobell97,3714,509343218
30 Septranslate this. wrong answers only198,1995,22017,356639
29 Sepmelodians, wya? (Brawl Stars quest)342,35331,39841,7833,170
28 Sepi wish i were a bird1,160,307230,5288,53633,185
25 Septhis lesson was ez1,194,217131,9456,90743,739

Median views across the nine: 342,353. The two posts with a direct ask in the caption ("wrong answers only", "wya?") drew 17,356 and 41,783 comments, far more than videos with twice the views. That is the kind of pattern you get from the numbers and would miss by scrolling the feed. Figures are live counts at the time of the call; check the account for current numbers.

Connect your assistant, then try the task described in this guide.

Prompts that work

  • Creator vetting: "Get the TikTok profile and latest videos for @handle. Work out median views and engagement rate (likes plus comments divided by views) and flag big swings between posts."
  • Competitor audit: "Pull the latest Instagram reels for these three brands and group them by hook and format. Rank by views."
  • Audience language: "Read the comments on this TikTok and list the five most repeated questions in the commenters' own words."
  • Trend check: "Search TikTok for the hashtag booktok and give me the top videos from the last week with view counts."

To see what the same brands pay to promote, read How to see competitor ads in Claude.

Limits

  • Public content only. Private accounts, deleted posts and region-locked videos come back empty or as an error.
  • Feeds return a page of recent items. TikTok returned 10 videos per call in our run. The raw response for those 10 is large, so ask for one handle at a time.
  • Handles go without the @. Facebook, LinkedIn and Pinterest skills take full URLs instead of handles.
  • Counts move. Views and likes are live at call time. Record when you pulled them.
  • Data access is not a licence to republish. Reading a public post does not grant rights to reuse its video or images.

Install the matching agent skill so Claude or Codex knows every operation without discovering it first:

bash
pnpm dlx skills add Humanleap/agent-skills --skill social-media-scraper

Then open Social Media Content or connect at toolrouter.com/connect.

*Checked 5 October 2026 against the live tool schemas and calls to get_tiktok_profile and get_tiktok_videos for the public Duolingo account.*

B
Founder at ToolRouter
Share this article

Related Posts