TikTok Scraper

  • clockworks/tiktok-scraper
  • Modified
  • Users 5k
  • Runs 1.9M
  • Created by Author's avatarClockworks

Powerful TikTok scraper to extract data from TikTok videos, hashtags, and users. Use it to scrape TikTok profiles, hashtags, posts, URLs, numbers of shares, followers, hearts, names, video, and music-related data. Download TikTok data as a HTML, JSON, CSV, Excel, or XML doc.

Free trial for 4 days

Then $45.00/month

No credit card required now

TikTok Scraper

Free trial for 4 days

Then $45.00/month

What does TikTok Scraper Unlimited do?

Our unlimited TikTok scraper lets you supercharge your extraction of TikTok data. This powerful unofficial TikTok API will give you TikTok data at scale to be used in your own data projects, business reports, and as a basis for new applications. TikTok Scraper allows you to scrape:

  • All results from chosen hashtags including details: top videos, timestamps, view, share, comment, and video count, etc.
  • All posts from chosen user profiles including details: name, nickname, ID, bio, followers/following numbers, play, share and comment count, etc.
  • Individual video posts by using specific video URLs.
  • Video- and music-related data.

Only need a few TikTok results?

Use our super-fast dedicated Free TikTok Scraper if you want to scrape concrete TikTok data efficiently. Just enter one or more TikTok usernames, hashtags, or video URLs and click to scrape. Note that our free TikTok scraper is limited to up to 20 results and 5 comments.

How many results can you scrape with TikTok scraper?

TikTok scraper can return between 1000 and 3000 results on average (about 1000 for scraping hashtags and about 3000 for videos from profiles). However, you have to keep in mind that scraping tiktok.com has many variables to it and may cause the results to fluctuate case by case. There’s no one-size-fits-all-use-cases number. The maximum number of results may vary depending on the complexity of the input, location, and other factors. Some of the most frequent cases are:

  • website gives a different number of results depending on the type/value of the input
  • website has an internal limit that no scraper can cross
  • scraper has a limit that we are working on improving

Therefore, while we regularly run Actor tests to keep the benchmarks in check, the results may also fluctuate without our knowing. The best way to know for sure for your particular use case is to do a test run yourself.

How much will scraping TikTok cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

Watch this video for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

How to scrape TikTok - tutorial and video guide

TikTok Scraper Unlimited is a ready-to-use scraping tool and doesn't require any programming knowledge to get started. To get the hang of how to use a TikTok scraper like this, follow our written step-by-step guide or watch our short video tutorial. The tutorial steps also apply to our free TikTok Scraper.

How to use extracted TikTok data

  • Observe and track trends and predict emerging influencers.
  • Simplify market research for planning advertisement campaigns and hashtag challenges.
  • Prepare for an upcoming TikTok marketing campaign: start and promote your own channel or collaborate with an influencer.
  • Scan the market for authentic product reviews and sentiment analysis.
  • Collect survey data from respondents quickly and efficiently.
  • Get data for research and social listening experiments.
  • Spread awareness about brands, causes, and social issues.
  • Analyze viral campaigns and trends.
  • Identify unverified content and inaccurate information with high public value.

You can also check out our industry pages for more ideas on using web scraping data; for instance, you can monitor the market and create data-based analysis for retail and e-commerce businesses.

Input parameters

If this actor is run on the Apify platform, our simple interface should help you out in configuring all the parameters. This scraper follows the following

  • profiles - scrapes TikTok profiles. You can scrape one or a few profiles at the same time.
  • hashtags - scrapes TikTok for hashtags. You can scrape one or several hashtags in one run.
  • postURLs- scrapes specific TikTok posts. You can scrape one or several posts simultaneously.
  • resultsPerPage - sets up the amount of results you expect to be scraped. Can be from 10 to thousands of results, so a thousand profiles with all the surrounding info, for instance.
  • maxRequestRetries - indicates the limit of scraper retries in case of any errors.
  • proxyConfiguration - sets up the proxies.

Example

{ "resultsPerPage": 200, "proxyConfiguration": { "useApifyProxy": true }, "profiles": [ "gordonramsayofficial" ], "maxRequestRetries": 10, "maxConcurrency": 1 }

Output

You'll get a dataset containing the output of this actor. The length of the dataset will depend on the amount of results you've set/got. You can download those results as an Excel, HTML, XML, JSON, and CSV document.

Here's an example of scraped TikTok data you'll get if you decide to scrape all videos from user profile "gordonramsayofficial" (cut down to the first few results for viewing convenience).

Example

{ "id": "7055028634653936901", "text": "I’m taking #burgers to the Next Level ! Cant wait to see what you do in the #NextLevelBurgerChallenge and dont miss #NextLevelChef at 9/8c on @foxtv", "createTime": 1642626859, "authorMeta": { "id": "6747935906352907269", "name": "gordonramsayofficial", "nickName": "Gordon Ramsay", "verified": true, "signature": "I cook sometimes too.....\n\nRecipes here 👇🏻", "avatar": "https://p16-sign-va.tiktokcdn.com/musically-maliva-obj/1647754017437702~c5_720x720.jpeg?x-expires=1643727600&x-signature=Pt0c5grq00F9ow79gnLI3KOmL2w%3D", "following": 387, "fans": 30900000, "heart": 461400000, "video": 241, "digg": 422 }, "musicMeta": { "musicName": "Do It To It", "musicAuthor": "ACRAZE", "musicOriginal": false, "musicAlbum": "Do It To It", "playUrl": "https://sf16-ies-music-va.tiktokcdn.com/obj/tos-useast2a-ve-2774/dfb55719b35c4054a476435a2c9e6dad" }, "webVideoUrl": "https://www.tiktok.com/@gordonramsayofficial/video/7055028634653936901", "videoUrl": "https://v16-webapp.tiktok.com/09be39efbc231a61f38b459ad9e0051e/61f85346/video/tos/useast2a/tos-useast2a-pve-0068/986c2e152a1d4b2190b19f519f03cace/?a=1988&br=1424&bt=712&cd=0%7C0%7C1%7C0&ch=0&cr=0&cs=0&cv=1&dr=0&ds=3&er=&ft=XOQ9-3E7nz7ThX~U3lXq&l=2022013115230501018905015811283465&lr=tiktok_m&mime_type=video_mp4&net=0&pl=0&qs=0&rc=M3A5Ojk6Zmw6OjMzNzczM0ApNDtnOTo6ODw1NzVnZGY2M2doYmktcjRvbmhgLS1kMTZzczYtMzEvLWE2Nl4wY182LS06Yw%3D%3D&vl=&vr=", "videoMeta": { "height": 1024, "width": 576, "duration": 13 }, "diggCount": 159700, "shareCount": 295, "playCount": 1700000, "commentCount": 2189, "downloaded": false, "mentions": [ "@foxtv" ], "hashtags": [ { "id": "45125", "name": "burgers", "title": "", "cover": "" }, { "id": "7055017426714378287", "name": "nextlevelburgerchallenge", "title": "", "cover": "" }, { "id": "1666459072865281", "name": "nextlevelchef", "title": "", "cover": "" } ], "effectStickers": [] }

Proxies

TikTok Unlimited Scraper works well with Apify dataset proxies, which are set as default for all our scrapers. However, if you've noticed your run has been stuck for too long, it's recommended to switch to residential proxies for faster, reliable, and more efficient results.

Integrations and TikTok Scraper

Last but not least, TikTok Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever TikTok Scraper successfully finishes a run.

Using TikTok Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the Apify API reference docs for full details or click on the API tab for code examples.

Personal data

You should be aware that your results might contain personal data. Personal data is protected by GDPR in the European Union and other laws and regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can read the basics of ethical web scraping in our blog post on the legality of web scraping.

Not your cup of tea? Build your own scraper

TikTok scraper doesn’t exactly do what you need? You can always build your own! We have various scraper templates in Python, JavaScript, and TypeScript to get you started. Alternatively, you can write it from scratch using our open-source library Crawlee. You can keep the scraper to yourself or make it public by adding it to Apify Store (and find users for it).

Or let us know if you need a custom scraping solution.

Your feedback

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for TikTok scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.