AIMultiple ResearchAIMultiple ResearchAIMultiple Research
We follow ethical norms & our process for objectivity.
This research is funded by Bright Data and Apify.
Web Scraping
Updated on May 2, 2025

Tiktok Scraper: Apify vs. Python vs. Axiom.ai in 2025

Headshot of Sedat Dogan
MailLinkedinX

As AIMultiple’s CTO, I lead our social media data collection to analyze how businesses engage with their audiences. We benchmarked every TikTok scraper API on 300 pages (e.g., posts, profiles, search) to select top scrapers. Follow the links to visit their websites:

TikTok scraping APIFocus
1.
Enterprises: Dedicated API with lowest cost
2.
Developers: Hashtag scraping but at a higher cost
3.
General-purpose scraper with rotating residential IPs & unblocker services
4.
Getting TikTok comments & search results from the country of your choice
5.
No-code scraper API for a low-scale scraping
1.
Bright Data logo
Enterprises: Dedicated API with lowest cost
2.
Apify logo
Developers: Hashtag scraping but at a higher cost
3.
Nimble logo
Nimble
General-purpose scraper with rotating residential IPs & unblocker services
4.
Smartproxy logo
Smartproxy
Getting TikTok comments & search results from the country of your choice
5.
Octoparse logo
Octoparse
No-code scraper API for a low-scale scraping

Scrapers provide public TikTok data. If you want to login as a user and collect private data, see how to build a custom Python scraper.

Benchmarking the best TikTok Scraper APIs

Bright Data

Bright Data

API

Scraper
Dedicated
Geo
Supports
Comments, Posts, Profile
Formats
CSV, JSON, JSON lines, NDJSON
Prices
$500
Free trial
✅ (7 days)
Apify

Apify

API

Scraper
Dedicated
Geo
Supports
Hashtag, Profile, Search, Videos
Formats
CSV, Excel, HTML, JSON, XML
Prices
$49
Free trial
✅ (unlimited)*
Nimble

Nimble

API

Scraper
General-purpose
Geo
Supports
No preset page templates exist
Formats
JSON, HTML
Prices
$150
Free trial
Smartproxy

Smartproxy

API

Scraper
Dedicated
Geo
Supports
Hashtag, Post, Profile
Formats
Excel, JSON
Prices
$50
Free trial
✅ (7 days)
Octoparse

Octoparse

No-code

Scraper
Dedicated
Geo
Supports
Comment, Video URL
Formats
CSV, Excel
Prices
$89
Free trial
✅ (7 days)
Last Updated at 05-02-2025
VendorsUIScraperGeoSupportsFormatsPricesFree trial
APIDedicated

Comments
Posts
Profile

CSV
JSON
JSON lines
NDJSON

$500✅ (7 days)
API

Dedicated 1

Hashtag
Profile
Search
Videos

CSV
Excel
HTML
JSON
XML

$49✅ (unlimited)*
APIGeneral-purposeNo preset page templates exist

JSON
HTML

$150
API

Dedicated 2

Hashtag
Post
Profile

Excel
JSON

$50✅ (7 days)
No-codeDedicated

Comment
Video URL

CSV
Excel

$89

✅ (7 days)

* Apify provides a $5 monthly credit for platform usage, which is automatically renewed as part of the free trial.

UI: User interface

Scraper:

  • Dedicated: Provides a dedicated TikTok scraper API solution specifically designed for collecting data from TikTok. See the scrapers we benchmarked.
  • General-Purpose: This offers a scraper that is not specifically designed for TikTok but can be adapted for TikTok web scraping purposes.

Supports: Pages where the scraper returns structured data.

Geo: Allows selecting the country of the IP to be used in scraping. For example, the country of the IP viewing a post changes the ranking of comments (e.g., comments from that country get ranked higher)

Prices: Starting price/month

Monthly pricing

Comparison summary

  • Bright Data: It offers the ability to scrape by both keyword and URL and is suitable for large-scale operations. Use the coupon API25 to receive 25% off Bright Data’s LinkedIn Scraper API.
  • Apify: Enables search with URL, keyword, and hashtag options. Apify’s TikTok scraper API is a developer-focused solution; users can tailor the scraping parameters to focus on specific users, hashtags, or content types.
  • Smartproxy: Provides geo parameters for localized content. It only supports scraping by keyword, and there is no URL search option.
  • Nimble: It does not offer dedicated APIs for social media scraping, but it is easy to use.
  • Octoparse: It supports scraping by keyword and URL and has preset templates for TikTok scraping. It is not suitable for large-scale scraping, but it is helpful for smaller tasks.

Step-by-Step Guide to Scraping TikTok with Python

Scraping TikTok is no longer be possible with proxy services because TikTok has implemented strong protections, such as JavaScript puzzles and browser checks, to block bots.

We tested TikTok scraping with different methods and found that only unblockers can reliably pull the HTML, especially the important <script id= SIGI_STATE> block that includes videos and user information.

❌ What Didn’t Work

Last Updated at 05-02-2025
MethodWhat HappenedWhy It Failed
requestsReturns HTML which misses script with id “SIGI_STATE”Detected as a bot; can’t handle JavaScript
urllibReturns placeholder HTML with the title TikTok – Make Your DayBlocked by TikTok’s anti-bot system
Residential Proxy + requestsGot challenge pages or redirects, no real dataTikTok still spotted it as bot traffic
PlaywrightShowed JavaScript puzzleTikTok caught the headless browser automation
Selenium + ProxyPage didn’t load right, no useful dataPuzzle scripts stopped the page from loading

✅ The Only Working Tool: Unblocker

We used Bright Data Unblocker, to bypasses all of TikTok’s anti-bot layers. Unblockers

  • Mimick real browser behavior
  • Solve or bypass JavaScript puzzles
  • Handle redirect chains and token validation
  • Return clean, usable HTML, including the SIGI_STATE block with the JSON data enclosed within it.

Example Output Comparison

Last Updated at 05-02-2025
MethodHas Got Real Data?
requests
urllib + Proxy
Playwright❌ (puzzle challenge)
Bright Data Unblocker

What is TikTok scraping?

TikTok scraping is extracting publicly available data from TikTok (Figure 1). While TikTok data scraping can involve manual and automated activities, it is most commonly called automated processes. These practices are carried out by a web crawler or custom scripts that interact with TikTok's APIs (Application Programming Interfaces).

The data can include various types of information, such as user profiles, video metadata, TikTok comments, likes, and search hashtags. Here are some examples of TikTok data:

  1. User profiles: Include information about TikTok users, such as their profile name, bio, and follower count.
  2. Demographics: Data related to the characteristics of TikTok users, such as age, gender, location, and interests.
  3. Videos: TikTok users' short-form videos, including captions, likes, comments, shares, and views.
  4. Hashtags: Keywords or phrases used to categorize TikTok content. Comments: Text responses to TikTok videos submitted by users, including the text, timestamp, and number of likes.
  5. Engagement metrics: Information about how users interact with TikTok content, such as likes, comments, shares, and views.
  6. Trends: Information about popular topics, themes, or styles on TikTok.

Figure 1: Shows output of a publicly available profile scraped from TikTok.

Bright Data's TikTok collector enables businesses and individuals scrape data from publicly available TikTok accounts.

Source: Bright Data

Scraping publicly available data on the web, including TikTok, is legal if it complies with applicable laws and regulations, such as data protection and privacy laws. However, the legality of scraping data also depends on factors such as:

  • The purpose for data collection
  • Including personally identifiable information (PII)

See our guide on the legality of web scraping and web scraping ethics for more information.

Here are some best practices for legal and ethical TikTok data scraping:

  1. Respect website terms of service: Before scraping any data from TikTok, reviewing the platform's terms of service is critical. 
  2. Respect the 'robots.txt' file: Besides commercial terms of use, websites have a robots.txt file containing information about the scraped website's permissions. Enter https://www.example.com/robots.txt to view a website's instructions for web crawlers (see Figure 2). 

Figure 2: TikTok's robots.txt file

Robots.txt file instructs web crawlers which pages of a website are allowed to be crawled.
  1. Monitor scraping activity: Scrape only the data you need and ensure it does not exceed reasonable limits. 
  2. Comply with data protection laws: Do not collect personally identifiable information. Comply with data protection regulations around PII, the major ones being GDPR in the EU and CCPA in California.

Technical challenges and limitations of TikTok scraping

  1. TikTok's rate limit on API Requests: TikTok's API restricts the number of requests that can be made within a given period and slows down the scraping process. The rate limits are intended to prevent excessive or abusive API use and keep the service responsive for all users. 

If your API requests exceed the TikTok API rate limit, you may be temporarily or permanently banned from accessing the API. Therefore, monitoring your API usage is important to avoid being blocked by the platform.


Solution: Backoff strategies such as throttling, caching, and prioritizing requests can be used to manage data collection and avoid exceeding API rate limits.

  1. Anti-scraping technologies: Websites, including social media platforms, employ anti-scraping measures such as CAPTCHAs, IP blacklist check, and user agent blocking to prevent automated web scraping activities. Here are some common strategies for handling anti-scraping techniques:


Solution:

  • Rotating proxies/IP rotation: Rotating proxies enable users to change their IP addresses constantly. For example, when you frequently make a connection request to the same website, your current IP address will be automatically rotated for each request. Residential proxy servers are one type of rotating proxy server. 

If your primary concern is security, you can utilize a residential proxy server. Residential proxies offer a greater level of anonymity since their IP address is provided by the ISP (Internet Service Provider).

We ranked the top 10 residential proxy providers by their features and performance to help you choose the right service.

  • CAPTCHA-solving services: Anti-CAPTCHA services analyze CAPTCHA challenges and solve them automatically using machine learning algorithms. There are many paid and free third-party services that can handle CAPTCHAs. It is essential to ensure that the CAPTCHA-solving service you use is by TikTok's terms of service. 
  • Headless browsers: Headless browsers can imitate human behavior by navigating websites and executing JavaScript while avoiding detection by user agent blocking or JavaScript detection.
  1. Changes to the API: TikTok may change its API, including API endpoint changes or API response changes, which can affect the code used for scraping.

Solution: To keep up with API changes, it's important to monitor API documentation and update scraping scripts as needed.

TikTok scrapers used in benchmark

We tested providers' dedicated scraper API solutions with TikTok URL destinations for posts and profiles. For more on methodology, see the web scraping APIs benchmark methodology.

Last Updated at 02-14-2025
Page typeApifyBright DataOxylabsSmartproxyZyte
TikTok post

clockworks/free-tiktok
scraper

TikTok - Posts -collect by URLSocial Media Scraping API -tiktok_post
TikTok profile

clockworks/free-tiktok
scraper

TikTok - Posts -collect by URL

See which leading web scraping providers offer dedicated scraping APIs for TikTok pages:

Last Updated at 02-24-2025
ProviderTikTok postTikTok profileTikTok search
Bright Data
Apify❌*❌*
Smartproxy
NetNut
Oxylabs
Zyte

* These scrapers exist, but their success rate was below our threshold (>90%).

Share This Article
MailLinkedinX
Sedat is a technology and information security leader with experience in software development, web data collection and cybersecurity. Sedat:
- Has ⁠20 years of experience as a white-hat hacker and development guru, with extensive expertise in programming languages and server architectures.
- Is an advisor to C-level executives and board members of corporations with high-traffic and mission-critical technology operations like payment infrastructure.
- ⁠Has extensive business acumen alongside his technical expertise.
Gülbahar is an AIMultiple industry analyst focused on web data collection, applications of web data and application security.

Next to Read

Comments

Your email address will not be published. All fields are required.

0 Comments