How to scrape data from TikTok (2024)

Hey, we're Apify. You can build, deploy, share, and monitor your scrapers on the Apify platform. Check us out.

TikTok grew out of a space for teenagers to show off their dance moves and lip sync. Now a major infotainment platform for Gen Z, millennials, and beyond, it is no longer just a "Chinese app" but a place for new trends, authentic dialogue, and advanced search. TikTok's growing popularity is only making it more interesting to users from other social media platforms, celebrities, researchers, brands, tech giants, and even FBI! 👮 So can we download that data?

In this short tutorial, we’ll show you how to scrape TikTok videos in 4 simple steps and 3 different ways, no coding required. No time for reading? We get it, head over to the YouTube tutorial 📹🔴

Why extract TikTok data?

Before we start, here’s a couple of things you should know about this app and its users:

🚀 TikTok moves fast. In 2022, TikTok became the most downloaded app in the world, with 3.5+ BLN total downloads. Mic drop.

🙋‍♀️ Its audience is young and active. Nearly half of TikTok users are under 30. And they really love the app, spending an average of 52 min/day on the platform. If you consider that most of the videos do not exceed a minute, that's a lot of videos. 83% of TikTok users have posted a video at least once.

🔎 Visual search is a competition to Google. In July 2022, SVP of search at Google admitted that “almost 40% of young people, when they are looking for a place for lunch, they don’t go to Google Maps or Search, they go to TikTok or Instagram.”

▶️ Faster video content is a competition to YouTube. It goes further: a study has shown kids aged 4-15 spend an average of 80 min/day on this app, making TikTok the biggest competitor to YouTube for kids.

🧙‍♀️ Setting trends and influencing other media. If you see an interesting Instagram Reel, YouTube Short, or Facebook Story - it's very likely just an old TikTok video.

👀 More and more brands are joining TikTok. Uncharted territory or "tabula rasa for marketing campaigns" no more. In 2022, numerous brands were cautiously registering on the platform, learning its ways, and succeeding.

Step-by-step guide to scraping TikTok

You'll need a tool that is easy enough to use but complicated enough to scrape a website with a structure like TikTok's. It’s a tall order.

Cue our TikTok Scraper, which scrapes data from hashtags, user profiles, and separate videos in a structured format. You can download that TikTok data onto your computer and plug it into your existing workflow, projects, spreadsheets, and applications. Here's how you can do that:

Step 1. Go to TikTok Scraper and click Try for free

Find the TikTok Scraper page (which will look like this) and click the Try for free button. You’ll be redirected from our website to the Apify Console.

How to scrape data from TikTok (1)

If you don’t have an Apify account yet, sign up using your email, gmail, or Github account. No credit card strings attached; you'll have a free trial.

How to scrape data from TikTok (2)

Step 2. Indicate TikTok video, profile or hashtag to scrape

Now that you're in your workspace, it's time to decide: what data you want to extract? Choose your starting point:

  • section 1 - hashtags #️⃣
  • section 2 - profiles 👨‍🍳
  • section 3 - specific videos 📼

#️⃣ How to scrape data from TikTok hashtags?

Type in or copy-paste one or more TikTok hashtags that interest you. You will be able to scrape all videos posted with this hashtag and their details.

#️⃣

Hashtags data will include (to each scraped video of this hashtag): caption, timestamp, country of creation, ad status, music details, video format details, video URL, number of comments, plays, shares, likes, as well as author's name, nickname, verified status, link in bio, total number of fans, hearts, videos, likes, popularity of hashtag, etc.


How to scrape data from TikTok (3)

👨‍🍳 How to scrape data from TikTok profiles?

Alternatively, you can also scrape not just hashtags, but TikTok videos uploaded by a specific user. Think of a user profile page you want to scrape; let’s say, Gordon Ramsay’s and Jamie Oliver's tiktoks. So just add their usernames into the fields. If in doubt, you can always check their handles with the app.

👨‍🍳

Profile data will include (to each scraped video of this profile): caption, timestamp, country of creation, ad status, music details, video format details, video URL, number of comments, plays, shares, likes, as well as author's name, nickname, verified status, link in bio, total number of fans, hearts, videos, likes, etc.


How to scrape data from TikTok (4)

📼 How to scrape data from specific TikTok videos?

Last but not least, you can scrape data from specific TikTok videos.

📼

Video data will include: caption, creation timestamp, number of likes, shares, plays, comments, video duration, URL, and author's username.


How to scrape data from TikTok (5)

Three final remarks before we start extracting data:

✅ in each section, you can add as many fields as you want or paste a prepared list into Bulk edit field

✅ you can fill several sections at once or keep it to one

✅ you can set how many results you want in Max results field. It counts results per field, so if you set it to 20 and add 3 hashtags (for instance), you'll get 60 results in total.

Step 3. Click Start ▶️

Once you are all set, click the Start button. Notice that the status will change to Running, so wait for the scraper's run to finish. It will be just a few minutes before you see the status switch to Succeeded.

How to scrape data from TikTok (6)

Step 4. Collect your data

Now click on Export results button, or go to the Storage tab. Storage contains your scraped data in many formats, including HTML table, JSON, CSV, Excel, XML, and RSS feed. You can preview data using the Preview button, and download it in a format that suits your needs.

How to scrape data from TikTok (7)

How to scrape data from TikTok (8)

How to scrape data from TikTok (9)

And that's kind of it. But wait, there's more!

FAQ

👩‍⚖️ Is it legal to scrape TikTok?

Just like with any other Apify data extraction tools, web scraping publicly available data on any website, including TikTok, is legal. But it’s still important to take several regulations into account, such as the GDPR and CCPA, as these protect personal data. Here you can learn more about the legality of web scraping and scraping ethically.

👀 Can I use TikTok API instead?

Unfortunately, as is the case for most social media platforms, TikTok does not offer an official API to let you extract data at scale. You might want to try the limited alternatives on the market such as Phantombuster’s TikTok Profile Videos Extractor, but we have something with way more functionality and ease of use in store for you.

💸 Is there a free TikTok Scraper?

If you simply want to give scraping a try and extract concrete TikTok data, try our super-fast free TikTok Scraper 🔗. Compared to the more powerful TikTok Scraper 🔗, it has a longer trial period. And although the free version delivers fewer results, it is very fast and has low consumption. This whole tutorial applies to both scrapers.

Free TikTok Scraper · ApifyThis free version of TikTok Scraper will get you up to 20 videos and 5 comments per run. Use it to extract data about videos, users, and channels based on hashtags or scrape full user profiles including posts, total likes, name, nickname, numbers of comments, shares, followers, following, and more.ApifyClockworks

⌨️ Can I download TikTok comments?

Yes. Use TikTok Comments Scraper 🔗 to that end. It extracts full comment text, username, timestamp, number of replies, number of likes, etc. You can explore other dedicated TikTok crawlers we have in Store.

TikTok scrapers: scrape comments, search results, and more

Discover ♪


🧪 How can I use TikTok data?

TikTok is a perfect place to collect data for social studies, research, and fun:

  • Use it as a base for online research, social listening experiments as well as a reliable and fast source of survey data
  • Spread awareness about social issues and caritative causes
  • Monitor, flag unverified content, and stop the spread of inaccurate information with high public value
  • Follow trends and predict emerging opportunities and influences
  • Scan the market for authentic product reviews
  • Detect coordinated efforts in spreading disinformation, such as in this tool used by journalists to analyze the events of the Russo-Ukrainian war.
Using web scraping to collect social media evidence of war crimes in UkraineRead how scraping social media serves as potential evidence of war crimes in Ukraine - a mission of one NGO.ApifyNatasha Lekh

🛍 How to use data extracted from TikTok for marketing?

TikTok is the most dynamic environment to learn about the young generation. In general, TikTok is very responsive to promotional efforts, with 61% of TikTok users admitting they are likely to watch ads. However, TikTok marketing campaigns have to be especially intricate, involving the right causes and authentic engagement. With scraped TikTok data you can:

  • do market research for planning and analyzing campaigns
  • promote your own channel
  • collaborate with an influencer

The best thing about TikTok is that it's a huge flexible social media platform with user-generated content, authentic engagement, and community-building at its core. All this points to piles of social data you can scrape, learn from and adjust your research and analysis strategies accordingly.

How to scrape data from TikTok (14)

Oh, the wonders of TikTok! As someone who has dived deep into the world of web scraping and data extraction, let me tell you, this tutorial is a goldmine for anyone wanting to harness the power of TikTok data. The evidence is in the details, my friend.

Now, let's break down the concepts covered in this article:

  1. TikTok's Evolution: TikTok started as a platform for teens to flaunt their dance moves, but it's now a global hub for trends, dialogue, and advanced search. The transformation from a "Chinese app" to a diverse, trendsetting platform is remarkable.

  2. Popularity Stats: TikTok's popularity is no joke. With 3.5+ billion total downloads in 2022, it became the most downloaded app globally. Add to that the fact that nearly half of its users are under 30, spending an average of 52 minutes per day on the platform. That's serious engagement!

  3. Visual Search and Competition: Visual search on TikTok is a real competition to Google, with young people turning to TikTok and Instagram instead of traditional search engines. The shift in how users find information is a significant trend.

  4. Competition with YouTube: TikTok is not just a threat to Google; it's giving YouTube a run for its money. Kids aged 4-15 spend an average of 80 minutes per day on TikTok, making it a major competitor to YouTube in the younger demographic.

  5. TikTok's Influence on Other Platforms: TikTok isn't just setting trends within its platform; it's influencing other major social media channels. Instagram Reels, YouTube Shorts, and Facebook Stories often find their roots in TikTok videos.

Now, let's get into the nitty-gritty of scraping TikTok data:

  1. Introduction to TikTok Scraper: The article introduces Apify's TikTok Scraper, emphasizing its ability to extract data from hashtags, user profiles, and individual videos in a structured format.

  2. Steps to Scrape TikTok Data: The tutorial provides a step-by-step guide on how to use the TikTok Scraper, from signing up to indicating whether you want to scrape hashtags, profiles, or specific videos.

  3. Data Fields for Each Section: Depending on what you want to extract (hashtags, profiles, or videos), the article lists the data fields you can include, such as caption, timestamp, country of creation, ad status, music details, and more.

  4. FAQ Section: The article addresses common questions, including the legality of scraping TikTok data (it's legal, but ethical considerations like GDPR and CCPA apply), the absence of an official TikTok API, and the availability of a free TikTok Scraper.

  5. Additional Tools: Apart from the main TikTok Scraper, the article mentions other tools like the TikTok Comments Scraper for extracting comments.

  6. Use Cases for TikTok Data: The tutorial goes beyond scraping and explores practical uses for TikTok data, ranging from social studies and research to marketing and monitoring content for accuracy.

In a nutshell, this tutorial not only guides you through the technicalities of scraping TikTok data but also highlights the broader impact and relevance of TikTok in the digital landscape. It's a comprehensive package for anyone looking to leverage the power of TikTok for various purposes.

How to scrape data from TikTok (2024)
Top Articles
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 6398

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.