TikTok Search Scraper
Pricing
from $3.99 / 1,000 results
Go to Apify Store
TikTok Search Scraper
Pricing
from $3.99 / 1,000 results
Rating
0.0
(0)
Developer
ScrapeMesh
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
18 hours ago
Last modified
Categories
Share
A powerful Apify Actor for scraping TikTok videos by search keywords, usernames, or URLs with advanced proxy configuration and automatic fallback.
π How to Use the Actor (via Apify Console)
- Log in at https://console.apify.com and go to Actors.
- Find your actor and click it.
- Configure inputs in the Input tab.
- Run the actor.
- Monitor logs in real time.
- Access results in the OUTPUT tab.
- Export results to JSON or CSV.
Input
{"startUrls": ["anime","@charlidamelio","https://www.tiktok.com/search?q=dance","music"],"sortOrder": "0","maxItems": 500,"maxComments": 0,"scrollCount": 12,"scrollPause": 2,"proxyConfiguration": {"useApifyProxy": true,"apifyProxyGroups": ["RESIDENTIAL"]}}
Input Fields
- startUrls (array, required): List of search keywords (e.g., "anime", "music"), TikTok URLs (e.g., "https://www.tiktok.com/search?q=dance"), or usernames (e.g., "@username" or "username")
- sortOrder (string): Sort by "0" (Relevance), "1" (Recent), "2" (Popular)
- maxItems (integer): Maximum videos to scrape (1-10000)
- maxComments (integer): Maximum comments per video (0-100, not yet implemented)
- scrollCount (integer): Number of scroll iterations (1-20)
- scrollPause (integer): Pause between scrolls in seconds (1-10)
- proxyConfiguration (object): Apify proxy settings
Output
The actor outputs structured data for each scraped TikTok video:
{"url": "https://www.tiktok.com/@username/video/123456789","id": "123456789","desc": "Video description","createTime": "1760802738","author": "username","video": {"height": 1024,"width": 576,"duration": 17,"cover": "https://...","playAddr": "https://..."},"stats": {"diggCount": 1234,"shareCount": 56,"playCount": 7890,"commentCount": 12}}
Key Features
- π Multi-input support: Keywords, URLs, and usernames
- π Automatic proxy fallback: No proxy β datacenter β residential
- π Comprehensive data: Video details, author info, statistics
- β‘ Live saving: Data saved immediately as scraped
- π― Sorting options: Relevance, recent, or popular videos
- π‘οΈ Anti-detection: Uses undetected-chromedriver
Proxy Configuration
The actor implements intelligent proxy fallback:
- First attempt: No proxy (direct connection)
- Second attempt: Datacenter proxy (if blocked)
- Final attempt: Residential proxy with 3 retries (if datacenter fails)
Proxy events are logged clearly for monitoring.
Why Choose This Actor?
- Reliable scraping with automatic error handling and retries
- Complete TikTok data extraction including video URLs and metadata
- Production-ready with proper logging and error handling
- Flexible input supporting multiple search types
- Scalable architecture using Apify's cloud infrastructure
Support and Feedback
For issues or feature requests, please contact the actor maintainer.