Skip to content

TikTok Scraper

Try for free

Scrape public TikTok videos from profiles, hashtags, video URLs, and keyword search, plus comments. Get captions, play, like, share, and comment counts, music, and author details.

🎵 TikTok Scraper

Turn public TikTok profiles, hashtags, video URLs, playlists, and keyword searches into a dataset you can schedule and export.

For social listening, creator research, and catalog work that has to finish even when one account is private or one link is dead.

Watch the video tutorial to see how it works:

✨ Features

  • 👤 Profiles. Public videos and reposts, plus follower and following rows when you set a cap. A profile's video count includes videos TikTok does not show signed-out visitors; when its public list has fewer, the status message says how many of the counted videos it shows. Follower and following lists are read page by page up to your number or the end of TikTok's list; that list can hold a few fewer accounts than the profile's count, and some profiles hide it. The status message says how many follow rows were saved and when a list ended early.
  • #️⃣ Hashtags. The videos on a tag, with the tag name and view count when TikTok sends them. TikTok shows signed-out visitors only part of a large tag; the run collects everything it can reach and its status message says when a tag ran out before your number.
  • 🔗 Video URLs. A full video or photo post URL (/video/<id> or /photo/<id>) or a short share link. Related videos are optional.
  • 📚 Playlists and collections. Every video of a public playlist or collection, in list order, with its position in the list. A share link (vm.tiktok.com/...) that opens one works too, in Playlists or in Video URLs.
  • 🔎 Search. Top and video search. Each hit keeps the query that found it.
  • 💬 Comments. Top-level comments, and replies when you set a reply cap.
  • ⬇️ Files. Video, cover, slideshow images, avatar, music cover, and subtitles go to the key-value store only after the body starts with ftyp, JPEG, or WEBVTT.
  • 🌍 Country. Residential proxy, with proxyCountryCode when the audience is in one market.

🚀 Why teams use this

  • Fast and light: there is no browser to start.
  • A missing profile, a private account, or a dead URL is skipped and named in the run's status message and the OUTPUT record (failedInputs). The rest of the input still runs, and no placeholder rows land in your dataset.
  • Long lists finish quickly: several profiles, hashtags, video URLs and search queries run at the same time, and the rows still come out in the order of your input. The same profile, video URL or search query entered twice is scraped once.
  • A field TikTok did not send stays off the item. A real 0 stays 0.
  • A CDN address inside videoMeta is not treated as a downloaded file. The store gets a file only after the magic-byte check.
  • Downloaded videos stream from TikTok into the key-value store piece by piece, so long videos and many downloads at once fit in the default memory.

💡 Use cases

  • Track trending videos for a hashtag or keyword.
  • Compare creators by plays, likes, shares, and follower counts.
  • Collect comments on videos for audience research.

🧪 Example input

{
  "hashtags": [
    "fyp"
  ],
  "resultsPerPage": 100
}

🧾 Sample output

One item from a real run of the example input, shortened. Long text is cut and lists show their first entries.

{
  "id": "7600000000000000000",
  "text": "#tiktok #sシ゚viral #tvshow #edit #foryou ",
  "textLanguage": "un",
  "createTime": 1773414677,
  "createTimeISO": "2026-03-13T15:11:17.000Z",
  "webVideoUrl": "https://www.tiktok.com/@example_creator/video/7600000000000000000",
  "isAd": false,
  "authorMeta": {
    "id": "7000000000000000000",
    "name": "example_creator",
    "profileUrl": "https://www.tiktok.com/@example_creator",
    "verified": false,
    "privateAccount": false,
    "nickName": "fyp",
    "avatar": "https://p16-common-sign.tiktokcdn.com/…",
    "following": 44,
    "fans": 580200,
    "video": 594,
    "heart": 6900000,
    "digg": 139,
    "friends": 0,
    "originalAvatarUrl": "https://p16-common-sign.tiktokcdn.com/…"
  },
  "musicMeta": {
    "musicName": "original sound",
    "musicAuthor": "fyp",
    "playUrl": "https://v58.tiktokcdn.com/…",
    "coverMediumUrl": "https://p16-common-sign.tiktokcdn.com/…",
    "musicOriginal": true,
    "musicId": "7600000000000000001",
    "originalCoverMediumUrl": "https://p16-common-sign.tiktokcdn.com/…"
  },
  "videoMeta": {
    "height": 1280,
    "width": 720,
    "duration": 500,
    "coverUrl": "https://p16-common-sign.tiktokcdn.com/…",
    "originalCoverUrl": "https://p16-common-sign.tiktokcdn.com/…",
    "definition": "720p",
    "format": "mp4",
    "subtitleLinks": [
      {
        "language": "…",
        "downloadLink": "…",
        "tiktokLink": "…"
      },
      {
        "language": "…",
        "downloadLink": "…",
        "tiktokLink": "…"
      }
    ],
    "downloadAddr": "https://v16-webapp-prime.tiktok.com/video/…"
  },
  "mediaUrls": [
    "https://v16-webapp-prime.tiktok.com/video/…",
    "https://v16-webapp-prime.tiktok.com/video/…"
  ],
  "diggCount": 259900,
  "shareCount": 3034,
  "playCount": 7000000,
  "commentCount": 1869,
  "collectCount": 26000,
  "repostCount": 0,
  "hashtags": [
    {
      "id": "23428",
      "name": "tiktok",
      "title": "tiktok"
    },
    {
      "id": "7084597372034121755",
      "name": "sシ゚viral",
      "title": "sシ゚viral"
    }
  ],
  "effectStickers": [
    {
      "ID": "337296253",
      "name": "Light foundation",
      "stickerStats": {
        "useCount": "…"
      }
    },
    {
      "ID": "263840",
      "name": "Green Screen",
      "stickerStats": {
        "useCount": "…"
      }
    }
  ],
  "isSlideshow": false,
  "input": "fyp",
  "isStory": false,
  "searchHashtag": {
    "name": "fyp",
    "views": 129765185180711
  }
}

📥 Input

Give at least one of profiles, hashtags, postURLs, playlists, or searchQueries. resultsPerPage caps profiles, hashtags and search queries; a playlist or collection always gives all of its videos.

Filters: oldestPostDateUnified, newestPostDate, leastDiggs and mostDiggs apply to profile, hashtag and search videos (top and video tabs, and the videos of profiles found by profile search), not to video URLs or related videos. Date and heart filters work together. The run reads each list until enough videos match or TikTok ends the list, and its status message says when fewer videos matched than you asked for.

Profiles: profileScrapeSections (videos or reposts), profileSorting (latest or popular), excludePinnedPosts, maxFollowersPerProfile, maxFollowingPerProfile.

Playlists: playlists takes playlist links (/@user/playlist/<name>-<id>), collection links (/@user/collection/<name>-<id>, a public collection of saved videos) and their share links. A playlist or collection link entered in postURLs is scraped the same way. A share link in postURLs that opens a profile or hashtag page is not scraped as a video: the status message says which profile or hashtag it opens and where to enter it.

Hashtags, posts and playlists: scrapeAdditionalAuthorMeta refetches author fields the list left out. scrapeRelatedVideos adds related items for a direct URL.

Search: searchSection empty for top results or /video for video results, plus videoSearchSorting and videoSearchDateFilter (TikTok's logged-out search ignores both, so the actor applies them itself: the date filter drops older videos and sorting re-orders up to 3x your limit of matching videos).

Comments: commentsPerPost, topLevelCommentsPerPost, maxRepliesPerComment.

Downloads: shouldDownloadVideos, shouldDownloadCovers, shouldDownloadSlideshowImages, shouldDownloadAvatars, shouldDownloadMusicCovers, and downloadSubtitlesOptions set to DOWNLOAD_SUBTITLES. They apply to every input (profiles, hashtags, searches, playlists and Video URLs); files go to the run's default key-value store.

proxyCountryCode selects the residential country; with None keyword searches run from Canada so repeated runs see the same ranking, and other inputs use any residential exit. A video TikTok shows only in some countries (status 10231) is asked for again from exits in the country its author posts from; if it still does not open, the run says so and saves no row for it. A video TikTok restricts to signed-in viewers (age or content restriction) has no public views, text or author: TikTok gives out only its id, so the run names it among the inputs that gave nothing and saves no row for it. aiVideoDescription and aiVideoSummary are on the form, and this actor does not emit them. TikTok's payload does not include those texts.

📤 Output

A video item includes a field only when TikTok sent it: id, text, textLanguage, createTime, createTimeISO, webVideoUrl, isAd, isSlideshow, isStory, authorMeta, musicMeta, videoMeta (including downloadAddr and subtitleLinks), mediaUrls, videoDownloadError, slideshowImageLinks, diggCount, shareCount, playCount, commentCount, collectCount, repostCount, hashtags, effectStickers, locationMeta, comments, commentsDatasetUrl, input, searchHashtag, and searchQuery. Videos from a playlist or collection also have playlistPosition (1 for the first video in the list) and playlist (id, type playlist or collection, name, url, videoCount). TikTok's videoCount includes videos it no longer shows (removed or made private), so a list can give fewer rows than that count. Likewise TikTok's comment total also counts replies and comments it no longer lists (hidden or removed), so a post can give fewer comments than its commentCount. A photo (slideshow) post has isSlideshow: true and its images in slideshowImageLinks and mediaUrls; its webVideoUrl is the /video/<id> link TikTok gives it.

Counts. TikTok rounds most counts from 10,000 up for logged-out visitors, to the precision its own pages show (108.7K likes arrive as 108700, 1.7M plays as 1700000). What is exact and what is rounded:

  • Exact: collectCount and repostCount; commentCount when comments are requested (it is then the comment list's own total); the author's fans, following, video, heart and friends on profile inputs, on follower/following rows, and with scrapeAdditionalAuthorMeta.
  • Rounded by TikTok from 10,000 up (no exact value exists for logged-out clients): playCount, diggCount, shareCount, commentCount without comments, authorMeta.digg, and the author counts on hashtag, search, video URL and playlist rows without scrapeAdditionalAuthorMeta.

authorMeta can include id, name, nickName, profileUrl, verified, signature, bioLink, fans, following, video, avatar, privateAccount, and ttSeller. Follower and following rows use connectionType follower or following and are stored in their own dataset.

A failed target does not create a dataset row. It is listed in the run's OUTPUT key-value record as failedInputs: [{input, reason, code, url}] and summarised in the status message. reason is a short text such as a private profile or a missing post; it does not include a response body.

A run that is about to reach its timeout stops by itself, keeps every row already saved, and names the inputs it did not finish in the status message and in the key-value record NOT_REACHED ([{field, input}], with savedItems for an input that was cut off part way), so you can run just those again.

An entry that is not a TikTok profile, hashtag, video URL or playlist (for example a link from another site in Profiles) is skipped without a TikTok request. It is listed in OUTPUT as invalidInputs: [{field, input, reason, help}] and named in the status message with what to enter instead. When no valid input is left, the run fails with that message. Search queries are free text and are not checked.

❓ FAQ

Can I schedule it or use the API? Yes. Save your input as a task and schedule it, or start runs and read the results through the Scrape.ly API, CLI, or from AI agents through the Scrape.ly MCP server.

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.