TikTok Scraper avatar
TikTok Scraper
Try for free

4 days trial then $45.00/month - No credit card required now

View all Actors
TikTok Scraper

TikTok Scraper

clockworks/tiktok-scraper
Try for free

4 days trial then $45.00/month - No credit card required now

Extract data from TikTok videos, hashtags, and users. Use URLs or search queries to scrape TikTok profiles, hashtags, posts, URLs, shares, followers, hearts, names, video, and music-related data. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.

What does TikTok Scraper 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.

How many results can you scrape with TikTok scraper?

TikTok scraper can return between 400 and 3000 results on average (about 400-800 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. For the most predictable pricing, you might want to opt for our TikTok Data Extractor which can scrape 1,000 results for $4.00.

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 TikTok Data Extractor.

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.

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.

Example

1{
2    "profiles": [
3        "gordonramsayofficial"
4    ],
5    "resultsPerPage": 200
6}

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

1{
2 "id": "7055028634653936901",
3 "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",
4 "createTime": 1642626859,
5 "authorMeta": {
6 "id": "6747935906352907269",
7 "name": "gordonramsayofficial",
8 "nickName": "Gordon Ramsay",
9 "verified": true,
10 "signature": "I cook sometimes too.....\n\nRecipes here 👇🏻",
11 "avatar": "https://p16-sign-va.tiktokcdn.com/musically-maliva-obj/1647754017437702~c5_720x720.jpeg?x-expires=1643727600&x-signature=Pt0c5grq00F9ow79gnLI3KOmL2w%3D",
12 "following": 387,
13 "fans": 30900000,
14 "heart": 461400000,
15 "video": 241,
16 "digg": 422
17 },
18 "musicMeta": {
19 "musicName": "Do It To It",
20 "musicAuthor": "ACRAZE",
21 "musicOriginal": false,
22 "musicAlbum": "Do It To It",
23 "playUrl": "https://sf16-ies-music-va.tiktokcdn.com/obj/tos-useast2a-ve-2774/dfb55719b35c4054a476435a2c9e6dad"
24 },
25 "webVideoUrl": "https://www.tiktok.com/@gordonramsayofficial/video/7055028634653936901",
26 "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=",
27 "videoMeta": {
28 "height": 1024,
29 "width": 576,
30 "duration": 13
31 },
32 "diggCount": 159700,
33 "shareCount": 295,
34 "playCount": 1700000,
35 "commentCount": 2189,
36 "downloaded": false,
37 "mentions": [
38 "@foxtv"
39 ],
40 "hashtags": [
41 {
42  "id": "45125",
43  "name": "burgers",
44  "title": "",
45  "cover": ""
46 },
47 {
48  "id": "7055017426714378287",
49  "name": "nextlevelburgerchallenge",
50  "title": "",
51  "cover": ""
52 },
53 {
54  "id": "1666459072865281",
55  "name": "nextlevelchef",
56  "title": "",
57  "cover": ""
58 }
59 ],
60 "effectStickers": []
61}

Proxies

TikTok Scraper uses proxies internally, so you shouldn't worry about providing them.

Want to scrape TikTok sounds or hashtag data?

You can use the dedicated scrapers below if you want to scrape specific TikTok data. Each of them is built particularly for the relevant TikTok data scraping case, be it hashtags, search results, profiles, or all data at once. Feel free to browse them:

🎹 Tiktok Data Extractor📹 Tiktok Video Scraper🧛 TikTok Profile Scraper🎸 Tiktok Sound Scraper
🎙 TikTok Comments Scraper🛍 Tiktok Ads Scraper#️⃣ TikTok Hashtag Scraper

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.

Developer
Maintained by Apify
Actor metrics
  • 473 monthly users
  • 99.5% runs succeeded
  • 4.8 days response time
  • Created in Sep 2021
  • Modified 1 day ago