RealdataAPI Store - Browse tools published by our community and use them for your projects right away
logo

TikTok Video Data Scraper - TikTok Video Data Collection

RealdataAPI / TikTok-Video-Data-scraper

The TikTok video data scraper will allow you to get up to 5 comments and 20 videos per run. Use it to scrape data about channels, hashtags, videos, users, profiles, comments, shares, nicknames, total likes, followings, followers, and many more. You can access the TikTok Video Data Scraper in Australia, Germany, USA, Canada, France, Spain, UK, Italy, Mexico, Japan, UAE, and other countries for TikTok video data collection.

What Does TikTok Video Data Scraper Do?

You can collect TikTok video data from the popular social media platform using our TikTok Video Data Scraper. It allows you to explore and scrape detailed video information from TikTok in multiple structural formats like JSON, HTML, Excel, CSV, and XML, which you can utilize in your applications, spreadsheets, and reports.

Our TikTok Video Data Scraper allows you to extract the following:

  • Total likes, comments, followers, shares, and following counts.
  • Search outputs from TikTok hashtags.
  • User profiles and individual posts using specific URLs.

Remember that you can use this scraper for limited results, up to 20 outputs and five comments.

Do You Need to Collect More TikTok Video Data?

You can scrape TikTok shares, comments following, followers, hashtags, user profiles, and posts with the unlimited data scraping potential of TikTok Scraper.

Why Use TikTok Video Data Scraper?

TikTok has over one billion active users worldwide. Many of them use the platform for about 80 minutes daily. Using these insights, we've developed the TikTok video data scraper API to help you easily scrape TikTok video data.

What is the Cost of Using a TikTok Video Data Scraper?

Using the TikTok Data Scraper on our platform will generate one thousand results by spending about 0.2 compute units. You don't need to spend even 1 USD to extract one thousand results.

You can perform a trial run to know how many platform credits you will need to spend to get the expected results using this API. Check out the usage and billing tab in your console account to learn about the credits available in your plan.

A Guide to Scraping TikTok Data

If you're new to trying the scraper and need to learn how to use it, don't worry. We've created a stepwise tutorial for you. Check it out and scrape TikTok without any problem.

How to Use Scraped Data From TikTok?
  • Perform social listening experiments and research.
  • Spread social cause-related messages and boost brand awareness.
  • Predict upcoming influences and trends in social media platforms across the current generation.
  • Plan promotional campaigns on various social media platforms, including TikTok.
  • Use accurate data to get genuine reviews to support the sentiment study.
  • Simplify market research for marketing campaigns and hashtag challenges.
Input Parameters for TikTok Data Scraper

If you run this scraper on our platform, our user-friendly interface will help you streamline all the input parameters before starting the execution. The scraper has the following input parameters for TikTok video data collection.

  • profiles: it scrapes user profiles from TikTok. You can extract multiple profiles from TikTok simultaneously by copying this parameter.
  • hashtags: you can simultaneously scrape several hashtags using this parameter.
  • postURLs: you can use this parameter to scrape specific posts from TikTok in a single run.
  • maxRequestRetries: it sets up the maximum result limit with 20 default outputs.
  • proxyConfiguration: it helps to set up proxies for the scraper.
Example
{
"resultsPerPage": 20,

"proxyConfiguration": {
"useApifyProxy": true
},

"hashtags": ["podcast"],

"maxRequestRetries": 10
}
Output from TikTok Scraper

You can observe the following output example if you wish to use the above input parameters to scrape the comfortfood hashtag from TikTok. The scraper will store the output after finishing the run in a dataset. Every dataset item is about the video, channel, or user information.

Example
{
"id": "6885142885939825925",

"text": "Best Mashed Potatoes! #tiktokcooks #hellofall #comfortfood #homecooking #cookingwithshereen #fyp",

"createTime": 1603072290,

"authorMeta": {
"id": "6746332443361739782",

"name": "cookingwithshereen",

"nickName": "COOKING with SHEREEN",

"verified": true,

"signature": "YouTube & Insta ⤴️\n⬇️ My CookBook & Merch! ⬇️",

"avatar": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/750f43c1845b5a556207821b1a0d72c1~c5_720x720.jpeg?x-expires=1639000800&x-signature=gl7OpbhX1L9yhC6e2rm4rajLvZg%3D",

"following": 27,

"fans": 4400000,

"heart": 72300000,
"video": 185,
"digg": 910 },
"musicMeta": { "musicName": "original sound",
"musicAuthor": "COOKING with SHEREEN",
"musicOriginal": true,
"musicAlbum": "",
"playUrl": "https://sf16-ies-music-va.tiktokcdn.com/obj/musically-maliva-obj/6885142857766669062.mp3" },
"webVideoUrl": "https://www.tiktok.com/@cookingwithshereen/video/6885142885939825925",
"videoUrl": "https://v16-web.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068c001/aaa32cd10cfc49d297adb7900f680551/?a=1988&br=3442&bt=1721&cd=0%7C0%7C1&ch=0&cr=0&cs=0&cv=1&dr=0&ds=3&er=&expire=1638937586&ft=wUyFfFGgkag3-I&l=202112072225270101890660492361F572&lr=tiktok_m&mime_type=video_mp4&net=0&pl=0&policy=3&qs=0&rc=Mzw2d2RobzZpeDMzNjczM0ApPDMzOzRpPDw6NzllNmlmNGdwLm9wZ2FyLzNfLS0vMTZzcy0yYy0xNDE1NDQvX2E2NGE6Yw%3D%3D&signature=30e50cb1af44c4eec84bca1b761180b9&tk=0&vl=&vr=",
"videoMeta": { "height": 1024,
"width": 576,
"duration": 59 },
"diggCount": 3100000,
"shareCount": 91600,
"playCount": 21500000,
"commentCount": 24900,
"downloaded": false,
"mentions": [],
"hashtags": [ {
TikTok Data Scraper With Integrations

Lastly, using Real Data API integrations, you can connect the TikTok data scraper with any web applications or cloud services. Multiple integration options include Zapier, Google Drive, Slack, Make, Google Sheets, and GitHub. You can also use Webhooks to act if an event occurs.

Using TikTok Data Scraper with Real Data API Actor

Our API gives you programmatic access to use the platform. We've organized the API around RESTful HTTP endpoints to allow you to schedule, manage and run scrapers. The actor also allows you to access datasets, retrieve outputs, track performance, create or update scraper versions, and more.

Use our client NPM package to access the actor using Node.js and the client PyPl package to use Python.

Click the API tab to check codes or read our API reference documents.

Can I Scrape TikTok Video Data Legally?

Remember that you may get some personal data in your scraper output. GDPR and other regulations protect personal data worldwide. You should only scrap personal data with a legit reason. You can consult your lawyer before scraping the personal data if you need to be made aware.

Your Feedback

Our TikTok Data Scraper extracts data based on posts, user profiles, or hashtags. In the upcoming days, we're adding more functions to the scraper. Contact us if you want us to add something or improve existing features.

Industries

Check out how industries use TikTok Video Data Scraper worldwide.

saas-btn.webp

Marketing and Media

You should have a Real Data API account to execute the program examples. Replace <YOUR_API_TOKEN> in the program using the token of your actor. Read about the live APIs with Real Data API docs for more explanation.

import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with API token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare actor input
const input = {
    "hashtags": [
        "followforfollowback"
    ],
    "resultsPerPage": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

(async () => {
    // Run the actor and wait for it to finish
    const run = await client.actor("clockworks/-tiktok-scraper").call(input);

    // Fetch and print actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();
from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the actor input
run_input = {
    "hashtags": ["followforfollowback"],
    "resultsPerPage": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the actor and wait for it to finish
run = client.actor("clockworks/-tiktok-scraper").call(run_input=run_input)

# Fetch and print actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare actor input
cat > input.json <<'EOF'
{
  "hashtags": [
    "followforfollowback"
  ],
  "resultsPerPage": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
EOF

# Run the actor
curl "https://api.apify.com/v2/acts/clockworks~-tiktok-scraper/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'

TikTok Hashtags

hashtags Optional Array

Only add hashtags to the input field of the scraper and collect the data about likes, users, followers, etc.

Result Count For Single Search

resultsPerPage Required Integer

Result counts you can scrape from each profile and hashtag. You can collect data for 20 videos in a single run.

User Profiles

profiles Optional Array

Add the username of the profile you want to scrape from TikTok.

Direct URLs of TikTok Videos

postURLs Optional Array

Add the video post URLs you need to scrape. You can upload a text file link of multiple URLs or submit one by one link.

Should Download Videos

shouldDownloadVideos Optional Boolean

It is to download the files of TikTok Videos. Remember that you will need more time and cost to scrape the video data.

Should Download Video Thumbnails

shouldDownloadCovers Optional Boolean

It is to download thumbnails of TikTok videos. Remember that you will need more time and cost to scrape the video data.

Name or Key-Value Store ID to Store Downloaded Videos

videoKvStoreIdOrName Optional String

ID or name of the Key Value Store to store downloaded videos. Remove to store in one default value.

Proxy Server Configuration

proxyConfiguration Required Object

Set up the automated proxy server and select a country of your choice. But you have the option to use a specific or custom proxy.

Max Request Retries

maxRequestRetries Optional Integer

If the source blocks the scraper or there are other errors, this input parameter will set up the maximum retry limit.

Max Concurrency

maxConcurrency Optional Integer

It is about the Maximum instances to allow parallel runs. Here, you need more memory storage for more instances.

{
  "hashtags": [
    "followforfollowback"
  ],
  "resultsPerPage": 20,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxRequestRetries": 10,
  "maxConcurrency": 1
}