Tiktok Search Scraper avatar

Tiktok Search Scraper

Pricing

from $0.29 / 1,000 video results

Go to Apify Store
Tiktok Search Scraper

Tiktok Search Scraper

Fast, stealthy TikTok Search Scraper for real-time video data extraction. Get captions, views, music, and author details for any query. Features advanced anti-block technology. Perfectly optimized for marketing research, trend tracking, and influencer analytics on the Apify platform.

Pricing

from $0.29 / 1,000 video results

Rating

5.0

(1)

Developer

Emmanuel Uchenna

Emmanuel Uchenna

Maintained by Community

Actor stats

2

Bookmarked

15

Total users

7

Monthly active users

a day ago

Last modified

Share

Fast, stealthy TikTok Search Scraper for real-time video data extraction. Get captions, views, music, and author details for any query. Features advanced anti-block technology. Perfectly optimized for marketing research, trend tracking, and influencer analytics on the Apify platform.

What data can you extract?

The TikTok Search Scraper provides a comprehensive set of data points for every video result:

FieldDescription
Video IDThe unique identifier for the video (id).
Video URLThe direct link to the TikTok video (url).
DescriptionThe full caption, including hashtags and mentions (description).
View CountThe number of times the video has been played (views).
LikesThe number of likes the video has received (likes).
CommentsThe number of comments on the video (comments).
SharesThe number of times the video has been shared (shares).
Author InfoUsername (uniqueId), nickname, avatar URL, verification status (verified), and followers count (author).
Music TitleThe song or sound used in the video (music).
Music AuthorThe creator of the music or sound used in the video (musicAuthor).
HashtagsA list of hashtags included in the video (hashtags).
DurationThe length or duration of the video (duration).
TimestampThe date and time the video was published (timestamp).
Scraped AtThe exact date and time the data was extracted (scrapedAt).
SourceThe method or source used to extract the data (source).

πŸ”§ Configuration (Input)

Configure the actor from the Input tab on the Apify Console. All fields are available through the visual form; no code is needed.

Input reference

FieldTypeRequiredDefaultDescription
queriesstring arrayβœ… Yesβ€”One or more TikTok search terms
maxItemsintegerNo5Max videos to collect per query (1–10,000)
proxyConfigurationobjectNoResidentialApify Proxy settings
sessionCookiesstring (JSON)Noβ€”Real browser cookies to bypass datacenter blocks
customProxyUrlstringNoβ€”Route traffic through your own proxy/machine

queries β€” Search Queries

Enter one or more search terms. The actor runs an independent search for each query and collects up to maxItems videos per query.

In the Apify Console UI, click + Add item and type each term:

AI coding
tech review
laptop unboxing

In JSON / API input:

{
"queries": ["AI coding", "tech review", "laptop unboxing"]
}

Tip: Use specific, niche phrases (e.g., "sustainable fashion haul") rather than broad single words to get more targeted results.


maxItems β€” Max Items

Sets the maximum number of video results to collect per query. The actor stops as soon as this limit is reached, or when TikTok has no more results to show.

  • Minimum: 1
  • Maximum: 10000
  • Default: 5

For a quick trend check, 20–50 results is usually sufficient. For market research or training datasets, set this to 500–2000.


proxyConfiguration β€” Proxy Settings

TikTok blocks all requests from cloud datacenter IPs (including Apify's). You must route traffic through a residential or home IP to get results on the Apify platform.

Recommended: Select Residential proxies in the Apify Console proxy picker:

{
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}

Residential proxies use IPs assigned to real households, making your traffic indistinguishable from a regular TikTok user. See Apify Proxy docs for pricing and setup.

If you cannot purchase residential proxies, see the Advanced β€” Datacenter IP Bypass section below for two free alternatives.


Advanced β€” Datacenter IP Bypass

These two optional fields appear under the Advanced β€” Datacenter IP Bypass section in the Apify Console. Either can replace the need for residential proxies. Using both together gives the highest success rate.

sessionCookies β€” Session Cookies

Paste the JSON cookie array exported from your real TikTok browser session. This injects authenticated session tokens (msToken, ttwid, s_v_web_id) directly into the scraper. TikTok's trust-scoring system treats these tokens as coming from a real browser, significantly reducing the risk of an IP-based block.

Step-by-step export guide:

  1. Install the free Cookie-Editor extension for Chrome or Firefox.
  2. Open https://www.tiktok.com and browse normally for ~30 seconds β€” scroll the feed, watch a video.
  3. Click the Cookie-Editor icon in your browser toolbar.
  4. Click Export β†’ Export as JSON.
  5. Copy the entire JSON array that appears.
  6. Paste it into the Session Cookies field in the Apify Console.

The actor normalises the cookie format automatically and skips the homepage warm-up visit so your higher-trust tokens are not overwritten by datacenter-seeded ones.

⚠️ Cookies expire β€” usually within a few hours to a few days. If the actor starts returning zero results, re-export and update this field. The actor also saves fresh cookies after every successful run and reloads them automatically on the next run, so you only need to re-export manually when results stop.

customProxyUrl β€” Custom Proxy URL

Route all actor traffic through a proxy server running on your own machine so TikTok sees your home IP instead of Apify's datacenter IP. When this field is set it takes priority over the Proxy Configuration panel above.

Accepted formats:

socks5://host:port
socks5://user:pass@host:port
http://host:port
http://user:pass@host:port

Free setup using microsocks + ngrok:

# 1. Start a local SOCKS5 proxy on your machine
# macOS / Linux:
brew install microsocks # or: sudo apt install microsocks
microsocks -p 1080
# Windows (Node.js alternative):
npm install -g node-socks5-server
socks5-server --port 1080
# 2. Expose it to the internet with a free ngrok TCP tunnel
# (sign up at https://ngrok.com β€” free tier supports TCP)
ngrok tcp 1080
# ngrok prints: Forwarding tcp://0.tcp.ngrok.io:12345 β†’ localhost:1080
# 3. Paste this into the "Custom Proxy URL" field:
socks5://0.tcp.ngrok.io:12345

⚠️ Your machine must remain running and connected while the actor is active. ngrok free-tier tunnels also reset on restart, so update the URL if you restart ngrok.

Best results tip: Combine both bypass options β€” inject real session cookies and route through your home IP. TikTok sees an established session arriving from a residential IP, which is indistinguishable from a real user.

πŸ“¦ Data Output

Each results includes:

[
{
"id": "7580436....",
"url": "https://www.tiktok.com/@techwithlesedi/video/7580436....",
"description": "Comment \"tech\" if you w...",
"views": "11K",
"likes": "",
"comments": "",
"shares": "",
"author": {
"uniqueId": "tech...",
"nickname": "tech...",
"avatar": "https://p16-sign-sg.tiktokcdn.com/tos-alisg-avt-0068/9....4~tplv-tiktokx-cropcenter:100:100.jpeg...",
"verified": false,
"followers": ""
},
"music": "Lesedi w...",
"musicAuthor": "",
"hashtags": ["technology", "AI", "Machine Learning", "Data Science", "Software Engineering", "Web Development", "Mobile Development", "Cloud Computing", "Cybersecurity", "Blockchain", "Internet of Things", "Virtual Reality", "Augmented Reality", "Robotics", "Automation"],
"duration": "2025-12-5",
"timestamp": "5 days ago",
"scrapedAt": "2026-03-21T10:47:10.773Z",
"source": "dom"
},
...
]

Expand your data collection capabilities with these other powerful Apify Actors developed by the same author:

Zillow Scraper

  • URL: https://apify.com/eunit/zillow-scraper
  • Description: This general Zillow Scraper extracts data for properties for sale, for rent, or recently sold on Zillow. Use this Actor for broad market research or historical data collection across all property types.

Enhanced Twitter (X) Bot

  • URL: https://apify.com/eunit/enhanced-twitter-x-bot
  • Description: A versatile Twitter bot for powerful social media automation. This tool uses the Twitter API to auto-like, auto-follow, and manages your followers. Configure keywords, schedules, and safety limits for effective Twitter engagement and account growth.

Target Product Reviews Scraper

  • URL: https://apify.com/eunit/target-reviews-scraper
  • Description: A tool for market research and e-commerce analysis. Scrape product reviews, star ratings, and consumer sentiment from Target.com, useful for businesses analyzing the retail landscape in target neighborhoods.

Your feedback

We are always working on improving the performance of our Actors. So if you’ve got any technical feedback for the Tiktok Search Scraper Actor or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.

Learn more about this Actor

πŸ“„ How to scrape TikTok search results: A complete guide for 2026