All scrapers

Social & video

TikTok Scraper

tiktok.com

99.9% Success rate
9.4s Avg response
In-house anti-bot Protection
1,000 calls Measured over

TikTok is served through five dedicated plugin endpoints rather than the generic page fetch. Give the profile endpoint a handle - like nasa - and it returns the creator already parsed: the exact follower, following, like and video counts (TikTok publishes each number twice, rounded for display and exact underneath, and you get the exact one), bio, link, verified and commerce flags, and the creator's newest videos. The video endpoint takes any post URL, bare id or vm.tiktok.com short link and returns exact plays, likes, comments, shares, saves and reposts, hashtags, mentions, the author with their stats, the sound, per-quality play and download URLs, subtitle tracks, images for photo posts, and TikTok's own topic labels. The hashtag endpoint returns total views and videos under a tag plus its posts. Up to ten listed videos come from TikTok's server-rendered widgets in a couple of seconds; asking for more - up to 200 - opens the real page in a browser session and scrolls the grid (hashtags TikTok does not serve through the widget, like #comedy or #gaming, are read the same way). The same browser session powers keyword search (results in TikTok's own ranking, region selectable) and the comments of any post, with author, likes and preloaded replies - TikTok guards both behind its rotate-the-picture captcha, which the session solves on the fly. Every listed video carries the full video shape - one call is a complete creator, trend or search snapshot. It reads only public data: no TikTok account, cookies or browser involved, and deleted, private or region-locked items come back as a clear 404 with TikTok's reason.

What you can extract

  • Creator profile: handle, display name, bio, bio link, verified, private, organization and seller flags
  • Exact follower, following, total like, video and friend counts
  • The creator's newest videos, and a hashtag's top videos, each with full engagement
  • Per-video exact plays, likes, comments, shares, saves and reposts
  • Caption, hashtags, mentions, language, publish date and TikTok topic labels
  • Sound: title, artist, original flag, play URL; author snapshot with follower counts
  • Media: duration, resolution, cover, play and download URLs, every quality variant, subtitle tracks, photo-post images
  • Hashtag totals: views and video count, hashtag id and URL
  • Keyword search results in TikTok's ranking, per region; comments with author, likes, creator flags and replies

Dedicated endpoints

/social/tiktok-profile

Creator profile + newest videos

A public creator by handle or profile URL: exact stats (followers, following, likes, videos, friends), bio, bioLink, verified, privateAccount, isOrganization, commerce and privacy settings, avatar, and a videos array of the newest posts (max_videos 0-200; up to 10 from the server-rendered widget in seconds, more by scrolling the real grid in a browser session) - each in the full video shape.

/social/tiktok-video

Single video or photo post

One post by URL, bare id or short link: description, hashtags, mentions, language, createdAt, exact stats (plays, likes, comments, shares, saves, reposts), author with stats, video (duration, size, codec, cover, playUrl, downloadUrl, qualities, subtitles), images for photo posts, music, flags, labels, effects and location.

/social/tiktok-hashtag

Hashtag totals + videos

A hashtag by name or URL: id, url, stats (total views and videos) and a videos array of its posts (max_videos 0-200; up to 10 from the server-rendered widget in seconds, more by scrolling the real grid in a browser session), each in the full video shape.

/social/tiktok-search

Keyword search

A TikTok video search for query, run in a browser session that clears TikTok's own captcha, so it carries TikTok's ranking: results (max_results 1-200) each in the full video shape, resultsCollected and hasMore. proxy_country picks the region TikTok ranks for.

/social/tiktok-comments

Comments of a post

The comments of a post by URL, id or short link, read from the opened comment panel in a browser session that clears the captcha: totalComments and comments (max_comments 1-500) each with text, createdAt, likes, replyCount, language, author (username, nickname, userId, avatar), isCreator, likedByCreator and the replies TikTok preloads.

How to scrape it

curl -X POST \
  -H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
  "https://api.scrapeunblocker.com/social/tiktok-profile?username=nasa&max_videos=5"
import requests

resp = requests.post(
    "https://api.scrapeunblocker.com/social/tiktok-profile",
    headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
    params={"username": "nasa", "max_videos": "5"},
)
print(resp.text)
import { ScrapeUnblockerClient } from 'scrapeunblocker';

const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });

const profile = await su.tiktokProfile('nasa', {
  maxVideos: 5,
});
console.log(results);

Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.

Read the API docs

Related scrapers

Start scraping this site today

Free tier included. No credit card required to test it.