TikTok Search Scraper avatar

TikTok Search Scraper

Pricing

from $1.60 / 1,000 results

Go to Apify Store
TikTok Search Scraper

TikTok Search Scraper

Scrape all public TikTok videos that use a given music/sound URL. Get captions, stats, covers, author profiles, and music details with pagination and proxy support.

Pricing

from $1.60 / 1,000 results

Rating

0.0

(0)

Developer

Alien Force

Alien Force

Maintained by Community

Actor stats

0

Bookmarked

15

Total users

4

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Overview

Scrape TikTok search results by keyword — videos or creators — in one Apify Actor.

The TikTok Search Scraper turns any TikTok keyword into clean, structured data: captions, views, likes, covers, music, and author profiles for the top videos TikTok lists for that keyword, or the creators behind them. Use it for content research, trend monitoring, influencer discovery, competitor tracking, or bulk export to CSV/JSON and your own pipelines.

Key Features

  • TikTok keyword search scraper: Run one search query and pull the top public videos TikTok lists for it.
  • Videos and creators: Scrape video posts with engagement stats and media links, or the creators behind them, with accounts whose username or name matches the query first.
  • Smart keyword matching: When a phrase has no results of its own, the Actor tries close variants and TikTok's suggested keywords, and the status message names the keyword it used.
  • Sort and date filters: Relevance, most liked, or latest — plus date-posted windows for videos.
  • Results region: Pick the country whose results you want, wherever your proxy is.
  • Fast and light: Runs on 512 MB with Apify datacenter proxies by default; most searches finish in seconds.
  • Clear run reporting: Empty searches finish successfully with a RUN_REPORT record; blocked runs fail with a clear message.

Input Schema

Input Properties

  1. searchQuery

    • Type: string (required)
    • Description: Keyword or phrase to search on TikTok (single query per run).
    • Example: "the rock"
  2. searchType

    • Type: string
    • Description: videos returns the top videos for the query. users returns the creators behind those videos: accounts whose username or name matches the query come first, then accounts whose bio mentions it, then the rest by how many of the query's videos they posted and by follower count. Default is videos.
    • Example: "users"
  3. limit

    • Type: integer
    • Description: Maximum number of results to save. TikTok lists about 100 top videos per query, so larger limits end there; creators repeat across videos, so users runs return fewer rows. Set to 0 to save everything available. Default is 3.
    • Example: 50
  4. sortType

    • Type: string
    • Description: relevance (TikTok's order), mostLiked, or latest. Sorting applies to the top videos TikTok lists for the query. Default is relevance. Ignored for users.
    • Example: "mostLiked"
  5. datePosted

    • Type: string
    • Description: Keep only videos posted within 24h, week, month, 3months, or 6months; all keeps every date. The filter applies to the top videos TikTok lists for the query, so short windows can return fewer results. Default is all. Ignored for users.
    • Example: "week"
  6. region

    • Type: string
    • Description: Two-letter code of the country whose TikTok results you want, for example US, GB, or BR. Leave it empty to follow the Country picked in the proxy settings, or the United States when none is picked.
    • Example: "US"
  7. proxyConfiguration

    • Type: object
    • Description: Apify datacenter proxies work by default. For a few keywords TikTok lists more videos to IP addresses outside the United States — in our tests cat returned 17 videos from US addresses and 91 through a United Kingdom residential proxy. For the fullest list on those keywords, pick RESIDENTIAL with a country outside the US and set region to the country you want. Switch to RESIDENTIAL proxies if requests get blocked.
    • Example:
      { "useApifyProxy": true }

searchQuery is required.

Input Example

{
"searchQuery": "the rock",
"searchType": "videos",
"limit": 50,
"sortType": "mostLiked",
"datePosted": "all",
"region": "US",
"proxyConfiguration": {
"useApifyProxy": true
}
}

United States results through a United Kingdom residential proxy, for the fullest list on keywords such as cat or minecraft:

{
"searchQuery": "minecraft",
"limit": 0,
"region": "US",
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"],
"apifyProxyCountry": "GB"
}
}

Output

One dataset row per result. The shape depends on searchType.

Common fields

FieldTypeDescription
searchTypestringvideos or users
searchQuerystringSearch query used for the run

Videos (searchType: "videos")

FieldTypeDescription
idstringVideo ID
descstring | nullCaption
createTimeinteger | nullCreate time (Unix timestamp, seconds)
urlstring | nullCanonical video URL
authorobject | nullAuthor details (id, uniqueId, nickname, signature, verified, avatarThumb, secUid)
statsobject | nullEngagement (diggCount, shareCount, commentCount, playCount, collectCount)
musicobject | nullMusic / sound (id, title, authorName, playUrl)
videoobject | nullMedia (id, duration, cover, playAddr, downloadAddr, width, height)

Users (searchType: "users")

FieldTypeDescription
uidstring | nullUser ID
uniqueIdstringUsername handle
nicknamestring | nullDisplay name
signaturestring | nullBio
followerCountinteger | nullFollower count
heartCountinteger | nullTotal likes on the profile
verifiedboolean | nullVerified flag
avatarstring | nullAvatar URL
secUidstring | nullStable account ID
profileUrlstring | nullCanonical profile URL

Output Example (videos)

{
"searchType": "videos",
"searchQuery": "the rock",
"id": "7707207880688160031",
"desc": "The Rock Hid a Terrifying Health Scare From His Own Wife for 24 Hours 😳💔 #USA #FYP #TheRockJohnson ...",
"createTime": 1794474245,
"url": "https://www.tiktok.com/@benjamin.fortune1/video/7707207880688160031",
"author": {
"id": "7668618665365652494",
"uniqueId": "benjamin.fortune1",
"nickname": "Benjamin Fortune",
"signature": null,
"verified": false,
"avatarThumb": "https://...",
"secUid": "MS4wLjABAAAAlQEoelTCAnsOFaodvLQpmMRNYC0FAaeqaF8o-9eteVSUpwAjahBwXQHRsqZ1KTTt"
},
"stats": {
"diggCount": 11,
"shareCount": 1,
"commentCount": 0,
"playCount": 1728,
"collectCount": 2
},
"music": {
"id": "7707208197517429535",
"title": "original sound",
"authorName": "Benjamin Fortune",
"playUrl": "https://..."
},
"video": {
"id": "7707207880688160031",
"duration": 66,
"cover": "https://...",
"playAddr": "https://...",
"downloadAddr": "https://...",
"width": 720,
"height": 1280
}
}

Output Example (users)

{
"searchType": "users",
"searchQuery": "the rock",
"uid": "6745191554350760966",
"uniqueId": "therock",
"nickname": "The Rock",
"signature": "CEO of #RockTok ...",
"followerCount": 80200000,
"heartCount": 692200000,
"verified": true,
"avatar": "https://...",
"secUid": "MS4wLjABAAAAM3R2BtjzVT-uAtstkl2iugMzC6AtnpkojJbjiOdDDrdsTiTR75-8lyWJCY5VvDrZ",
"profileUrl": "https://www.tiktok.com/@therock"
}

Some media fields (for example video.downloadAddr) may be null when TikTok leaves them out. Play, cover, and download URLs expire after a few hours; fetch the files promptly if you need them.


Limits

  • TikTok lists about 100 top videos per keyword (70–99 across 30 popular keywords in our tests), so larger limits end there.
  • latest and datePosted work on that list: they surface the newest of TikTok's top videos for the keyword.
  • Every row is a video post; photo (carousel) posts are left out.
  • For a few keywords TikTok lists fewer videos to US IP addresses; see proxyConfiguration above for the fix.

Handling of empty and blocked runs

Empty and failed outcomes stay out of the dataset. They show up in the log and in the RUN_REPORT record in the run's key-value store.

  • No results for the query: the Actor tries the phrase as written, close variants, then TikTok's suggested keywords. If none has results, the run succeeds with 0 rows and a RUN_REPORT that says so.
  • Results from a related keyword: the status message names it, for example Scraped 3 video(s) for "dance" (results for "dance videos").
  • No videos in the date window: the run succeeds with 0 rows and a RUN_REPORT message such as No videos for "cat" were posted in the past 24 hours.
  • Blocked requests: retried automatically on fresh proxy IPs. If nothing could be scraped, the run fails with a message suggesting RESIDENTIAL proxies.
  • Partial success: if later pages stop, the rows already saved stay in the dataset.

Each skipped entry has a reason of emptySearch or scrapeFailed. keyword names the keyword the results came from, when there were any.

{
"itemsScraped": 0,
"keyword": null,
"skippedCount": 1,
"skipped": [
{
"searchQuery": "zxqv wlorp blenk",
"searchType": "videos",
"reason": "emptySearch",
"message": "TikTok has no results for \"zxqv wlorp blenk\"."
}
],
"emptySearch": true,
"finishedAt": "2026-11-12T13:53:03.049Z"
}