TikTok Video Scraper
by alpha-scraper
Extract TikTok videos, comments, stats & metadata automatically. Perfect for research, analysis, or content projects. Reliable, structured data without the hassle.
Opens on Apify.com
About TikTok Video Scraper
Need to pull videos, comments, or trends from TikTok for a project, but dread the thought of manual copying or dealing with flaky scripts? I've been there. This TikTok Video Scraper is what I use to grab the data I need without the headache. It lets you extract videos, captions, hashtags, music details, engagement stats, and even comments from profiles, hashtags, sounds, or specific URLs. I've used it for everything from competitive research and content analysis to building datasets for machine learning projects. The setup is straightforward—just plug in your target (like a username or trending hashtag), configure what you want, and run it. The data comes out clean and structured, usually as JSON or CSV, ready to drop into a spreadsheet or your application. It runs on Apify's platform, so you don't have to worry about maintaining servers or getting blocked. For the cost, it saves a massive amount of time and effort compared to building and troubleshooting your own solution from scratch. If you need reliable TikTok data, this is a solid way to get it.
What does this actor do?
TikTok Video Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
TikTok Video Scraper
A Python-based Apify actor that extracts detailed metadata from TikTok videos without relying on external APIs or yt-dlp. It uses smart fetching strategies and is built for reliability in scraping scenarios.
Overview
This actor scrapes TikTok video pages to retrieve structured metadata. It's designed to be faster and more straightforward than methods using oEmbed or external APIs. Results are pushed to the default Apify dataset.
Key Features
- No External Dependencies: Does not use TikTok's oEmbed API, yt-dlp, or other external services, simplifying the stack.
- Robust Fetching:
- Employs multiple User-Agent headers (desktop & mobile).
- Tries URL variants (e.g.,
?lang=en). - Falls back to a plaintext relay via
r.jina.aiif needed.
- Proxy Support: Configurable to use Apify Proxy, with the
RESIDENTIALproxy group recommended for best results. Uses sticky sessions viaProxyConfiguration.new_url(session_id=…). - Built-in Resilience: Includes retry logic with jittered backoff to handle network instability or anti-bot measures.
- Performance: Runs with async concurrency (configurable, defaulting to a maximum of 3 concurrent requests, or 1 if no proxy is set).
How to Use
Configure the actor using an input JSON object. The primary requirement is providing one or more TikTok video URLs via startUrls.
Example Input:
{
"startUrls": [
{
"url": "https://www.tiktok.com/@username/video/1234567890123456789"
}
],
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}
Input & Output
Input Schema:
* startUrls (Array): A list of request objects containing url keys pointing to TikTok video pages.
* proxyConfiguration (Object, optional): Configuration for Apify Proxy. Using residential proxies is advised.
Output Schema:
Each processed URL yields a JSON object in the dataset. Key fields include:
{
"fetched_at": "2025-08-21T17:07:34.693473+00:00",
"source": "embedded_json",
"video": {
"id": "7534292343000730893",
"title": "Video title and hashtags...",
"desc": "Video description...",
"date": "2025-08-03",
"createTime": "1754214245",
"duration": "17s",
"shareUrl": "https://www.tiktok.com/@user/video/7534292343000730893",
"videoUrl": "https://v16-webapp-prime.tiktok.com/...",
"playAddr": "https://v16-webapp-prime.tiktok.com/...",
"downloadAddr": "https://v16-webapp-prime.tiktok.com/...",
"width": 576,
"height": 1024,
"ratio": "540p",
"cover": "https://p16-sign.tiktokcdn-us.com/...",
"dynamicCover": "https://p16-sign.tiktokcdn-us.com/..."
}
}
The output contains comprehensive metadata, including video IDs, timestamps, descriptions, dimensions, and direct URLs to the video files and cover images.
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try TikTok Video Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- alpha-scraper
- Pricing
- Paid
- Total Runs
- 133
- Active Users
- 7
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Instagram Scraper
by apify
TikTok Scraper
by clockworks
Instagram Profile Scraper
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support