
Tiktok Video Scraper
- clockworks/tiktok-video-scraper
- Modified
- Users 246
- Runs 2.4k
- Created by
Clockworks
Powerful TikTok scraper to extract data from chosen TikToks. Use it to scrape TikTok video and profile data: URLs, numbers of shares, followers, hashtags, hearts, video and music metadata. Download TikTok data as JSON, HTML, CSV, Excel, or XML and use it in your apps and data projects.
What is TikTok Video Scraper?
TikTok Video Scraper is a powerful and easy-to-use tool that allows you to extract data from chosen TikTok videos. Using this tool, you will be able to scrape:
- All data from chosen videos: caption, video URL, number of plays, hearts, comments, shares, mentions country of creation, timestamp, paid or non-paid status, hashtags used, video- and music-related metadata.
- Basic creator info from TikToks posted with chosen videos: name, ID, avatar, bio, account status, total followers/following numbers, given/received likes count, etc.
How much will scraping TikTok Video 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 use data extracted from TikTok videos?
The data extracted from TikTok Video Scraper can be used for a variety of purposes, including:
✨ Conduct sentiment analysis and find authentic product reviews
👩🔬 Obtain data for research and social listening experiments
🦠 Analyze trends, viral campaigns and content of specific creators
🥸 Identify unverified content and inaccurate information with high public value
📚 Prepare for or analyze a TikTok marketing campaign
How do I use TikTok Video Scraper?
TikTok Video Scraper is designed to be user-friendly, offering a smooth start for those who have never extracted data from the web before. Here’s how you can use TikTok Video Scraper to extract video data:
- Create a free Apify account using your email.
- Open TikTok Video Scraper.
- Add one or more TikTok videos to scrape data.
- Click the “Start” button and wait for the data to be extracted.
- Download your data in JSON, XML, CSV, Excel, or HTML.
Input
The input for TikTok Video Scraper should be one or multiple TikTok video URLs. You can always find those on top of the page in the TikTok web app.
Click on the input tab for a full explanation of an input example in JSON.
{ "postURLs": [ "https://www.tiktok.com/@olympics/video/7208589533632269574", "https://www.tiktok.com/@olympics/video/7210447318028455173", "https://www.tiktok.com/@olympics/video/7200420986661965061" ] }
Output sample
The results will be wrapped into a dataset which you can find in the Storage tab. Here's an excerpt from the data you'd get if you apply the input parameters above:
And here is the same data but in JSON. You can choose in which format to download your TikTok video data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.
[{ "id": "7200420986661965061", "text": "The crossover you never expected. This is fire! 🔥 📹: (IG) robworling14 #Olympics #Athletes #Sports #IceSkating #Hockey #Football #Soccer ", "createTime": 1676478656, "createTimeISO": "2023-02-15T16:30:56.000Z", "locationCreated": "ES", "isAd": true, "authorMeta": { "id": "6754011909617894406", "name": "olympics", "nickName": "Olympics", "verified": true, "signature": "The Olympics, like never before", "bioLink": null, "avatar": "https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/829ea90040553aaec7450d66caaadc10.jpeg?x-expires=1679058000&x-signature=khyGKyozz08NQRy%2BMW6YYWK1jzU%3D", "privateAccount": false, "roomId": "", "ttSeller": false }, "musicMeta": { "musicName": "Chill Vibes", "musicAuthor": "Tollan Kim", "musicOriginal": false, "musicAlbum": "Chill Vibes", "playUrl": "https://sf16-ies-music-sg.tiktokcdn.com/obj/tos-alisg-ve-2774/0582a256505b4d9f91f351acd30e4aa8", "coverMediumUrl": "https://p16-sg.tiktokcdn.com/aweme/200x200/tos-alisg-v-2774/30a0e8c075b041ec83b79ebdf33ba2d7.jpeg", "musicId": "7084465663108089857" }, "webVideoUrl": "https://www.tiktok.com/@olympics/video/7200420986661965061", "mediaUrls": [ "https://v16-webapp-prime.us.tiktok.com/video/tos/useast2a/tos-useast2a-pve-0068/ogbhZC5MIdLCkh9AxtxztgvIRbAfQjooICvxUq/?a=1988&ch=0&cr=0&dr=0&lr=tiktok_m&cd=0%7C0%7C1%7C0&cv=1&br=4096&bt=2048&cs=0&ds=3&ft=4KJMyMzm8Zmo09UQOA4jVWu4dpWrKsdm&mime_type=video_mp4&qs=0&rc=NDQ2OTs2aTw0OTQ1NGVmZEBpams6dGU6ZmdqaTMzNzczM0A2YjEzX14xXjExMTBgXzJhYSNrZ2dicjRvZWpgLS1kMTZzcw%3D%3D&expire=1678908004&l=20230315131930AB77DDD1E220AB070C2A&policy=2&signature=1e76d240026833cdc17da7bc7527ab27&tk=tt_chain_token" ], "videoMeta": { "height": 1024, "width": 576, "duration": 34, "coverUrl": "https://p16-sign-va.tiktokcdn.com/obj/tos-maliva-p-0068/oAodkfzWICg9nIIb0thEqRAACB5oLLNZ9xtvxD?x-expires=1678906800&x-signature=c%2F34WoEMGEKAWQ6q%2BbRsCjRJ7FI%3D", "definition": "720p", "format": "mp4" }, "diggCount": 7529, "shareCount": 59, "playCount": 120500, "commentCount": 82, "mentions": [], "hashtags": [ { "id": "569333", "name": "olympics", "title": "", "cover": "" }, { "id": "30888", "name": "athletes", "title": "", "cover": "" }, { "id": "7887", "name": "sports", "title": "", "cover": "" }, { "id": "5547", "name": "iceskating", "title": "It's time to wrap up warm and show us what you can do on the ice!", "cover": "" }, { "id": "18560", "name": "hockey", "title": "Whether you're hitting the ice or getting ready for the World Juniors, we're celebrating the entire #Hockey community on TikTok.", "cover": "" }, { "id": "5282", "name": "football", "title": "Can't keep calm when #Football is on.", "cover": "" }, { "id": "6192", "name": "soccer", "title": "It's called #Soccer.", "cover": "" } ], "effectStickers": [] }, ] ...
Want to scrape TikTok search results, profiles, or comments?
If you want to extract specific TikTok data beyond just videos, you can use one of the specialized scrapers below, each built particularly for the relevant TikTok data scraping case, whether it's profiles, comments, search results, or all data at once:
🕹 Tiktok Video Scraper | 🧛 TikTok Profile Scraper | 🎙 TikTok Comments Scraper |
🔎 Tiktok Search Scraper | 🎵 TikTok Sound Scraper | #️⃣ TikTok Hashtag Scraper |
Not your cup of tea? Build your own scraper.
TikTok Video 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.
Integrations and TikTok Video Scraper
Last but not least, Tiktok Video 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 Video Scraper successfully finishes a run.
Using TikTok Video 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.
You can use the apify-client
NPM package to access the API using Node.js, or the apify-client PyPI
package to access the API using Python.
Check out the Apify API reference docs for full details, or click on the API tab for code examples.
Is it legal to scrape data from TikTok videos?
Our TikTok scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They can only extract what the user has chosen to share publicly. However, 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 also read our blog post on the legality of web scraping and ethical scraping.
Your feedback
We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for TikTok Video scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.
- What is TikTok Video Scraper?
- How much will scraping TikTok Video cost you?
- How to use data extracted from TikTok videos?
- How do I use TikTok Video Scraper?
- Input
- Output sample
- Want to scrape TikTok search results, profiles, or comments?
- Not your cup of tea? Build your own scraper.
- Integrations and TikTok Video Scraper
- Using TikTok Video Scraper with the Apify API
- Is it legal to scrape data from TikTok videos?
- Your feedback