# TikTok Keyword Search Scraper & TikTok Search, No Login (`hyperbach/tiktok-keyword-search-scraper`) Actor

TikTok keyword search scraper, logged out: the videos and photo posts TikTok's search lists for each keyword, in TikTok's order, with rank, views, likes, creator, music and hashtags; the Users tab, LIVE rooms and search suggestions on request. Misses free.

- **URL**: https://apify.com/hyperbach/tiktok-keyword-search-scraper.md
- **Developed by:** [Hyperbach](https://apify.com/hyperbach) (community)
- **Categories:** Social media, Videos, Lead generation
- **Features:** Limited permissions
- **Stats:** 4 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.13 / 1,000 video or photo post found by a keywords

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TikTok Keyword Search Scraper & TikTok Search, No Login

**Search TikTok by keyword and get the videos TikTok's own search lists for it — logged out, in TikTok's order, down to the end of TikTok's list (185 videos for `nail art` read from Canada on 18 November 2026) — one row per video or photo post with its rank, views, likes, comments, shares, saves, caption, hashtags, creator and followers, music, duration and cover.** Add the accounts of TikTok's Users tab, the rooms live right now and the search box's suggestions in the same run. Every keyword ends with a free row that says where its list ended and which country's view was read. No login, no cookies, proxies handled for you.

**From $0.255 per 1,000 rows (`video`) on the Free plan, $0.21675 on Starter; every row and add-on is priced under Pricing below.** A run start is $0.053354. The default input returns about 51 rows for about $0.066841. A keyword TikTok lists nothing for, a keyword TikTok refuses and every keyword row are free.

![TikTok's search results in a browser for the keyword sourdough, Top tab: three invented baking videos in a grid, the first one, a sliced loaf by hollowfenbakes with 8412 likes, outlined. Beside it, a part of the row this Actor returns for that video: rank, its place in TikTok's list, and searchCountry, the country whose results were read, are highlighted; then the keyword, the caption, the creator's handle, the likes, the hashtags, the time, the id and the shares.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-tiktok-keyword-search-scraper.webp)

### How it compares

- **Cheaper than clockworks's TikTok Scraper, with more data:** $1.22 per 1,000 videos, against $2.32; 52 fields per video, against 23. It is 3 times faster: 50 videos in 24 s, against our 51 videos in 67 s.
- **apidojo's Tiktok Scraper is 5 times faster and 4 times cheaper:** 50 videos in 12 s, against our 51 videos in 67 s; $0.29 per 1,000 videos, against our $1.22. We give more data: 52 fields per video, against 17.
- **xmolodtsov's TikTok Search Scraper is 10 times faster and 6 times cheaper:** 50 videos in 6.9 s, against our 51 videos in 67 s; $0.22 per 1,000 videos, against our $1.22. We give more data: 52 fields per video, against 16.
- **deepmine's TikTok Search API & Scraper is 18 times faster and 6 times cheaper:** 50 videos in 3.8 s, against our 51 videos in 67 s; $0.21 per 1,000 videos, against our $1.22. We give more data: 52 fields per video, against 41.
- **Cheaper than coregent's TikTok Keyword Search Scraper:** $1.22 per 1,000 videos, against $1.40. It is 4 times faster: 50 videos in 17 s, against our 51 videos in 67 s.

Measured on 2026-11-18. Each line compares one job, run by both scrapers at the same time. Prices are per 1,000 videos: Apify Actors at the Scale plan's prices.

### Tested head-to-head on 2026-11-18

The job: TikTok's keyword search, the input schema's example: the videos TikTok lists for tesla, 50 videos (keywords tesla, maxItemsPerKeyword 50). Every Actor ran on it the same day from the same harness; every run's cost is at the Scale plan's prices: a rival's charged events at its price for that plan, this Actor's at its list price. Fields counts the filled fields of a typical row. Every actor searched TikTok for the same keyword, tesla, in the same minute and was asked for 50 videos; each reads TikTok from its own exit, so the lists differ by country and hour. Re-measured monthly.

| Actor | Rows | First row | Run time | Cost | Fields | Failures |
|---|---|---|---|---|---|---|
| **this Actor** | 51 | 49 s | 67 s | $0.062 | 52 | none |
| `clockworks/tiktok-scraper` | 50 | 8.5 s | 24 s | $0.12 | 23 | none |
| `apidojo/tiktok-scraper` | 50 | 7.7 s | 12 s | $0.015 | 17 | none |
| `xmolodtsov/tiktok-search-scraper` | 50 | 6.6 s | 6.9 s | $0.011 | 16 | none |
| `deepmine/tiktok-search-api` | 50 | 3.9 s | 3.8 s | $0.011 | 41 | none |
| `coregent/tiktok-keyword-search-scraper` | 50 | 17 s | 17 s | $0.070 | 55 | none |

### Why this scraper, not the other TikTok search actors

- **TikTok's own results, read from TikTok's own page.** The rows are what TikTok's search lists for the keyword, in TikTok's order, with the position on every row (`rank`) and the keyword that found it. A real logged-out TikTok page reads the lists; no third-party API in between.
- **Deep where TikTok is deep, and it says where the list ended.** Logged out, TikTok's search lists about 150 to 210 videos a keyword: 185 for `nail art` and 205 for `dog training` (Canada, 18 November 2026) and, for `tesla`, 156 from Canada and 168 from Mexico in the same night. Set `maxItemsPerKeyword` to 0 and the run reads to TikTok's own end; every keyword's row says LIST_END (TikTok's end, read twice), CAPPED (your cap) or PARTIAL (with the reason), never a short dataset that looks whole.
- **The country is real and on every row.** TikTok shows each country its own results (two countries share 2 to 6 of their first 12 videos) and serves its search to some countries only at a given hour: at 01:40 UTC on 18 November 2026 Canada, Australia, Mexico, Brazil and Japan were served, the US, the UK, Germany, France and Spain were not. The run asks your country first, falls back to the next one TikTok serves, and every row carries `searchCountry`.
- **Filters proven on the rows.** TikTok's own sort (most liked or newest first) and date window are sent and checked: the keyword row says whether TikTok kept them (`sortHonoured`, `dateFilterHonoured`), and a video outside the window is left out and not charged. Language, views, likes, comments, followers and the ad flag are filtered by the Actor before the charge.
- **One run, every view of a keyword.** Videos and photo posts, the Users tab's accounts, the LIVE tab's rooms and the search box's suggestions come as typed rows of one dataset (`record_type`), all read through the same TikTok page.
- **Exact caps, free misses, no double charge.** 20 asked = 20 delivered and charged. A video several keywords find is delivered and charged once (or once per keyword, as you choose); repeats inside a list are dropped free. A keyword with nothing, a keyword TikTok refuses from every country tried and the keyword rows themselves cost nothing.
- **Honest counts.** TikTok's web shows play and like counts of 10,000 and more rounded (1.3M): such rows say `countsExact` false, and the engagement rate is computed from the same figures.

### Who it's for

- **Marketers and agencies** — See which videos and creators TikTok's search shows for a product, a brand or a trend in a given country, with views and likes, and the hashtags that travel with them.
- **Influencer scouts** — Find the creators behind the top videos of a niche and the accounts TikTok's Users tab lists for it, with followers and total likes, filtered by follower band.
- **Researchers and analysts** — Sample what TikTok's search shows for a topic, read to the end of TikTok's list, with the date window and the country on record.

### Quick start

**Basic — the videos TikTok lists for a keyword**

```json
{
  "keywords": [
    "nail art"
  ],
  "maxItemsPerKeyword": 20
}
```

**Newest videos, with the accounts and the suggestions**

```json
{
  "keywords": [
    "tesla"
  ],
  "sortBy": "newest",
  "maxItemsPerKeyword": 20,
  "includeUsers": true,
  "includeSuggestions": true
}
```

### Switching from `coregent/tiktok-keyword-search-scraper`?

Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (`read <theirs> as <ours>`); a name marked *not read* is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.

| coregent/tiktok-keyword-search-scraper | this Actor | what to know |
|---|---|---|
| `keywords` | `keywords` | The same list of search words; a TikTok search link works too, its tab picks the list. |
| `searchType` | `searchType` | The same values `video` and `user`, and also `live` and `photo`. |
| `maxItemsPerKeyword` | `maxItemsPerKeyword` | The same cap, per keyword and list; 0 reads to TikTok's end. |
| `maxTotalResults` | `maxItems` | Read as maxItems: the most charged rows of the run. |
| `sort` | `sortBy` | relevance, mostLiked and latest (TikTok's newest first) as they are; mostViewed is read as relevance with a note (no such TikTok web sort). |
| `region` | `country` | A two-letter country code; empty reads the countries TikTok serves, Canada first. |
| `datePosted` | `datePosted` | The same values, and also last180Days; checked on every row. |
| `deduplicateAcrossKeywords` | `deduplicateAcrossKeywords` | The same switch; on by default here. |
| `minViews` | `minViews` | The same floor, applied before the charge. |
| `minLikes` | `minLikes` | The same floor, applied before the charge. |
| `minComments` | `minComments` | The same floor, applied before the charge. |
| `includeDownloadUrl` | `includeDownloadUrl` | Adds TikTok's play and download links (`playUrl`, `downloadUrl`), which need the session's cookies and expire in about two days. |
| `includeKeywordInsights` | *not read* | Not needed: every keyword's free row carries its insights on every run (rows read, delivered and left out, top hashtags, top creators, the verdict). |
| `videoDownloadQuality` | *not read* | Not read: this Actor downloads no file; pass the video URLs to a video downloader for the files. |

**What differs:**

- Every row is typed by `record_type`: `video` (a video or a photo post), `user`, `live`, `suggestion`, and one free `keyword` row per keyword and list with its verdict, the counts read and left out, the top hashtags and creators (the leader's keyword insights, here on every run).
- Field names: `plays` is the leader's `views`, `authorUsername` its `authorUniqueId`, `createTime` the ISO time (`createTimeISO`) and `createTimeUnix` the epoch seconds; `rank` is its `searchRank`.
- `sort` value `latest` is TikTok's newest-first sort, checked on the rows; `mostViewed` is not a TikTok web sort: the run reads by relevance and says so; use `minViews` for a views floor.
- `region` picks the country the search is read from; a country TikTok does not serve that hour falls back to the next one that does, and every row names the country read.

### Output

One row per video, photo post, account, LIVE room or suggestion (`record_type`), and one free row per keyword and list with its verdict (`record_type` keyword):

| field | meaning |
|---|---|
| `record_type` | `video` (a video or a photo post), `user` (an account), `live` (a LIVE room), `suggestion` (a search-box suggestion): charged rows; `keyword`: the free row of a keyword and list. |
| `status` | `ok`, or why a keyword's list gave no row: `refused` (TikTok served no list from any country tried), `invalid_input` (a value that names no search), `failed` (the run could not reach TikTok), `not_read` (the run stopped before this list). |
| `keyword` | The search words this row answers. |
| `input` | The value you gave (the words or the search link). |
| `section` | The list: `top` (TikTok's Top results: videos and photo posts), `video` (TikTok's Videos tab, from a `/search/video` link: videos only), `photo`, `user`, `live` or `suggestions`. |
| `rank` | The row's position in TikTok's list for the keyword, from 1 (the suggestion's position for a suggestion). It counts every entry TikTok served, its repeats included, so a list of 185 distinct videos can reach rank 200 and more. |
| `searchCountry` | The country whose view of TikTok's search was read (the country TikTok placed the page in). |
| `id` | TikTok's id of the video, the account or the LIVE room. |
| `url` | The video's, the account's or the room's TikTok page (for a suggestion: the search page of the suggestion). |
| `caption` | The video's caption (a LIVE room: its title). |
| `createTime` | When the video was posted (a LIVE room: when it started), UTC. |
| `createTimeUnix` | The same time in epoch seconds. |
| `plays` | Plays (views) as TikTok shows them; 10,000 and more are rounded by TikTok. |
| `likes` | Likes as TikTok shows them (a LIVE room: its likes). |
| `comments` | Comments as TikTok shows them. |
| `shares` | Shares as TikTok shows them. |
| `saves` | Saves (collections) as TikTok shows them. |
| `reposts` | Reposts as TikTok shows them. |
| `countsExact` | False when a count of the row is 10,000 or more, which TikTok's web shows rounded. |
| `engagementRate` | (likes + comments + shares) ÷ plays, from TikTok's figures. |
| `authorUsername` | The handle of the row's account: the video's creator, the account found, or the LIVE room's host. |
| `authorName` | That account's display name. |
| `authorId` | That account's TikTok user id. |
| `authorUrl` | That account's TikTok page. |
| `authorSecUid` | That account's secUid (TikTok's other account id). |
| `authorBio` | That account's bio as written. |
| `authorVerified` | The account carries TikTok's verified badge. |
| `authorVerifiedReason` | On an account row: TikTok's words for the badge (for example verified account). |
| `authorFollowers` | The account's followers as TikTok shows them. |
| `authorFollowing` | The accounts it follows (on video and LIVE rows; the Users tab does not carry it). |
| `authorLikes` | The likes the account's videos received in total. |
| `authorVideos` | The account's video count (on video rows; the Users tab does not carry it). |
| `authorAvatar` | The account's picture (TikTok's link, it expires). |
| `isSlideshow` | The row is a photo post (a slideshow of images), not a video. |
| `hashtags` | The hashtags of the caption, without #. |
| `mentions` | The @handles the caption mentions. |
| `musicId` | The sound's TikTok id. |
| `musicTitle` | The sound's title. |
| `musicAuthor` | The sound's author as TikTok names it. |
| `musicOriginal` | The sound is the creator's original sound. |
| `duration` | The video's length in seconds (none on a photo post). |
| `width` | The video's width in pixels. |
| `height` | The video's height in pixels. |
| `definition` | The video's definition as TikTok names it (720p, 1080p). |
| `cover` | The cover image (TikTok's link, it expires). |
| `images` | A photo post's images (TikTok's links, they expire). |
| `subtitles` | The video's subtitle tracks where TikTok has them: language, format, source and the file's link. |
| `isAd` | TikTok placed the row as an ad. |
| `adAuthorization` | TikTok's ad-authorization flag of the video (the creator allows its use as an ad). |
| `isBrandedContent` | TikTok's branded-content type is set on the video. |
| `isAiGenerated` | TikTok labels the video as AI-generated. |
| `duetEnabled` | Duets are allowed. |
| `stitchEnabled` | Stitches are allowed. |
| `effects` | The names of the effects used in the video. |
| `anchors` | The links TikTok shows on the video (a product, an app, a template): type and title. |
| `place` | The place tagged on the video: id, name, address (it names the country), city, category. TikTok's web answer leaves the province and the country empty. |
| `playlistId` | The creator's playlist the video belongs to. |
| `relatedSearches` | The searches TikTok suggests under the video. |
| `textLanguage` | The caption's language as TikTok tags it (en, es, un = undetermined). |
| `playUrl` | With includeDownloadUrl: TikTok's play link of the video; it needs the TikTok session's cookies and expires in about two days. |
| `downloadUrl` | With includeDownloadUrl: TikTok's download link of the video; the same limits as playUrl. |
| `liveViewers` | A LIVE room's viewers at the time of the run. |
| `liveTotalViewers` | A LIVE room's viewers since it started. |
| `liveCategory` | A LIVE room's category as TikTok names it (Gaming, Chatting ...). |
| `liveGames` | The games a gaming LIVE room plays. |
| `liveRoomId` | The LIVE room's id (on an account row: the room the account is live in now). |
| `suggestion` | On a suggestion row: the search TikTok's search box suggests for the keyword. |
| `verdict` | On a keyword row: LIST_END (TikTok's end of the list, read twice), CAPPED (your cap reached) or PARTIAL (stopped earlier: `note` says why). |
| `rows_delivered` | On a keyword row: the rows it delivered. |
| `searchFee` | On a keyword row of a video list: true when the list delivered a video and the run owed its search fee (`search`, once a list); empty on the other lists and on a list that delivered nothing. |
| `rows_read` | On a keyword row: the results TikTok's answers carried, repeats included. |
| `rows_dropped` | On a keyword row: the results your filters left out (not charged). |
| `keywordHits` | On a keyword row: how many of the rows it delivered hold every word of the keyword in their own text (caption, hashtags, creator's handle or name, an account's bio). TikTok's search also matches what the row does not carry (speech, on-screen text). |
| `pages` | On a keyword row: the answers TikTok gave for the list. |
| `sortHonoured` | On a keyword row with sortBy mostLiked or newest: TikTok's answer kept that order (likes, or the posting time) on its first page. |
| `dateFilterHonoured` | On a keyword row with datePosted: every result TikTok gave was inside the window (false: the rows outside were left out free). |
| `languageApplied` | On a keyword row: the language filter was applied by the Actor (TikTok's search has none). |
| `topHashtags` | On a keyword row: the most frequent hashtags of the rows it delivered. |
| `topCreators` | On a keyword row: the creators with the most videos among the rows it delivered. |
| `searchId` | On a keyword row: TikTok's id of the search. |
| `note` | On a keyword row: why it has its status and verdict, what was left out, the country read. |
| `scraped_at` | When this row was read (UTC). |

Example record:

```json
{
  "record_type": "video",
  "status": "ok",
  "keyword": "nail art",
  "input": "nail art",
  "section": "top",
  "rank": 203,
  "searchCountry": "CA",
  "id": "7586762142423076118",
  "url": "https://www.tiktok.com/@fashionnailsebellezza/video/7586762142423076118",
  "caption": "🥂✨ Your hands deserve some holiday glamour! Which color would you choose?💅🏾🍾#nailtrends #nail #nailart #fyp #nailsartvideos ",
  "createTime": "2025-12-22T19:11:58Z",
  "createTimeUnix": 1766430718,
  "plays": 2400000,
  "likes": 28700,
  "comments": 185,
  "shares": 10700,
  "saves": 7196,
  "reposts": 0,
  "countsExact": false,
  "engagementRate": 0.0165,
  "authorUsername": "fashionnailsebellezza",
  "authorName": "Fashionnailsebellezza",
  "authorId": "7283840874957292577",
  "authorUrl": "https://www.tiktok.com/@fashionnailsebellezza",
  "authorSecUid": "MS4wLjABAAAAFDMnwPmkR_6oIBM4tnTBYx26Fh7mGQkfLOOLpm2T0oLkG9l3f4W_Ra52E54VzGdK",
  "authorBio": "💅 Nail art & nail inspiration\n✨ Trends, ideas, and exclusive designs\n💅Tutorial nails\n👉 Follow me for new ideas every day!",
  "authorVerified": false,
  "authorVerifiedReason": null,
  "authorFollowers": 971700,
  "authorFollowing": 1,
  "authorLikes": 9800000,
  "authorVideos": 857,
  "authorAvatar": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ed485f6c11c06b1f0137dd3e46e815fc~tplv-tiktokx-cropcenter:100:100.jpeg",
  "isSlideshow": false,
  "hashtags": [
    "nailtrends",
    "nail",
    "nailart",
    "fyp",
    "nailsartvideos"
  ],
  "mentions": [],
  "musicId": "7552115829739964417",
  "musicTitle": "Paid to Exist",
  "musicAuthor": "brux XTN",
  "musicOriginal": false,
  "duration": 19,
  "width": 576,
  "height": 864,
  "definition": "540p",
  "cover": "https://p16-common-sign.tiktokcdn.com/tos-no1a-p-0037-no/o8DhQeBpFgrQpyRcwEjkfC8ATi6DSF0dZkMQlE~tplv-tiktokx-origin.image",
  "images": [],
  "subtitles": [],
  "isAd": false,
  "adAuthorization": false,
  "isBrandedContent": false,
  "isAiGenerated": true,
  "duetEnabled": true,
  "stitchEnabled": true,
  "effects": [],
  "anchors": [],
  "place": null,
  "playlistId": "7528405648884960002",
  "relatedSearches": [],
  "textLanguage": "en",
  "playUrl": null,
  "downloadUrl": null,
  "liveViewers": null,
  "liveTotalViewers": null,
  "liveCategory": null,
  "liveGames": [],
  "liveRoomId": null,
  "suggestion": null,
  "verdict": null,
  "rows_delivered": null,
  "searchFee": null,
  "rows_read": null,
  "rows_dropped": null,
  "keywordHits": null,
  "pages": null,
  "sortHonoured": null,
  "dateFilterHonoured": null,
  "languageApplied": null,
  "topHashtags": [],
  "topCreators": [],
  "searchId": null,
  "note": null,
  "scraped_at": "2026-11-18T02:25:12Z"
}
```

### Pricing

**Pay for the rows a run delivers**, plus one run start and a small fee for each keyword's video list. No platform usage is billed to you, and the price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Video or photo post (`video`) | per 1,000 | $0.255 | $0.21675 | $0.1785 | $0.1275 |
| Account (`user`) | per 1,000 | $2.00 | $1.70 | $1.70 | $1.70 |
| LIVE room (`live`) | per 1,000 | $2.55 | $2.1675 | $1.785 | $1.275 |
| Suggestion (`suggestion`) | per 1,000 | $0.10625 | $0.09031 | $0.07437 | $0.05312 |
| Video list searched (`search`) | per list | $0.0007374 | $0.0007374 | $0.0007374 | $0.0007374 |
| Run start (`start`) | per run | $0.053354 | $0.053354 | $0.053354 | $0.053354 |

A video or photo post is **$0.255 per 1,000** on the Free plan and $0.21675 on Starter, with everything its row carries. Each keyword's video list (the Top tab, or a Videos or Photo tab link) that delivers at least one video adds **$0.0007374 once**: TikTok's first answer for a keyword is the same work whether you take 1 video or 50. Each run that delivers a charged row pays the **run start, $0.053354 once**: the run opens one real TikTok page in a browser, the largest part of what a run costs.

So the example (tesla, 50 videos) costs $0.0668414 on the Free plan and $0.0649289 on Starter; 10 keywords × 50 videos $0.188228 and $0.169103; one keyword read to TikTok's end (205 videos for dog training) $0.1063664 and $0.09852515; tesla's 20 videos with its 20 accounts and 8 suggestions $0.1000414 and $0.09314888. Free: every keyword row, a keyword TikTok lists nothing for or refuses from every country tried, a video your filters leave out, an ad you leave out, a repeat inside a list or (with `deduplicateAcrossKeywords`) across keywords, a list left unread at a cap, and a run that delivered no charged row (no run start, no list fee either). A run that stops early (a timeout, an abort, the charge limit) is charged for the rows it delivered.

Before the first request the log names the prices at your plan and the most the run can cost under the bounds it holds (`maxItemsPerKeyword` a list, `maxItems` the run, the dearer rows first) and your charge limit; with `maxItemsPerKeyword` 0 a list is allowed 1,000 rows and TikTok's own list ends far sooner (each keyword row says where). Enterprise plans have their own rates: the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **The videos TikTok lists for a keyword** — Give `keywords` (for example `nail art`) and keep the defaults: up to 50 videos and photo posts per keyword, in TikTok's order, each with its rank, counts, caption, hashtags, creator and music. Set `maxItemsPerKeyword` to 0 to read down to TikTok's own end of the list.
- **Recent videos, most liked first** — Set `sortBy` to mostLiked and `datePosted` to last7Days: TikTok's own filters, checked on every row; the keyword row says whether TikTok kept them.
- **The newest videos of a keyword** — Set `sortBy` to newest: TikTok's own newest-first order, checked on the first page's dates (`sortHonoured`). Add `datePosted` or `publishedAfter` to bound how far back.
- **Videos, creators, LIVE rooms and suggestions of a keyword in one run** — Tick `includeUsers`, `includeLive` and `includeSuggestions`: the accounts of TikTok's Users tab, the rooms live now and the search box's suggestions come as their own rows (`record_type`) beside the videos.
- **A country's view** — Set `country` (for example MX or JP): the search is read through a connection in that country. If TikTok does not serve that country's search at the hour of the run, the next country it serves is read and every row says which (`searchCountry`).

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `keywords` | `array` | `[]` | Search words, one per line, as you would type them in TikTok's search box (a hashtag such as #nailart works too). A TikTok search link also works (tiktok.com/search?q=..., /search/video?q=..., /search/user?q=..., /search/live?q=..., /search/photo?q=...): its tab picks the list for that keyword (a /search/video link reads TikTok's Videos tab: videos only). Leave empty to read the example (tesla). |
| `searchType` | `video` / `photo` / `user` / `live` | `"video"` | The list each keyword is walked down: TikTok's Top results (videos and photo posts, the default), the Photo tab (photo posts only), the Users tab (accounts) or the LIVE tab (rooms live now). TikTok's web search has no Sounds or Hashtags tab. |
| `includeUsers` | `boolean` | `false` | Also read TikTok's Users tab for every keyword: one row per account, with handle, name, bio, followers, total likes and the verified badge. Charged as user rows. |
| `includeLive` | `boolean` | `false` | Also read TikTok's LIVE tab for every keyword: one row per room live at the time of the run, with its title, viewers, likes, category and host. Charged as live rows. |
| `includeSuggestions` | `boolean` | `false` | Also deliver the suggestions TikTok's search box offers for every keyword (usually 8 or 9), with their position. Charged as suggestion rows. |
| `maxItemsPerKeyword` | `integer` | `50` | The most rows of each list for each keyword. 0 = down to the end of TikTok's list (about 150 to 210 videos a keyword logged out; the keyword's row says where TikTok ended it). |
| `maxItems` | `integer` | `0` | The most charged rows of the whole run, every list together; 0 = no cap beyond your charge limit. |
| `sortBy` | `relevance` / `mostLiked` / `newest` | `"relevance"` | TikTok's own sort of the Top results: relevance (TikTok's default), most liked or newest first. Each keyword's row says whether TikTok kept the order on its first page (sortHonoured). |
| `datePosted` | `any` / `last24Hours` / `last7Days` / `last30Days` / `last90Days` / `last180Days` | `"any"` | TikTok's date filter of the Top results. It is checked on every row: a video outside the window is left out and not charged, and the keyword's row says whether TikTok kept the window (dateFilterHonoured). |
| `country` | `auto` / `CA` / `AU` / `MX` / `BR` / `JP` / `GB` / `US` / `DE` / `FR` / `ES` / `IT` / `ID` / `PH` | `"auto"` | TikTok shows each country its own results and serves the search to some countries only at a given hour (on 2026-11-18 Canada, Australia, Mexico, Brazil and Japan served; the US, the UK, Germany, France and Spain did not). The run asks your country first; if TikTok serves it no list, it reads the next country that serves, and every row names the country read (searchCountry). Auto = Canada first. |
| `publishedAfter` | `string` |  | Only videos and photo posts published on or after this date (2026-11-01) or within this span back from now (7 days, 2 months). Checked on every row by the Actor; a row left out is not charged. |
| `language` | `string` | `""` | Only videos whose caption TikTok tagged with this language (a two-letter code: en, es, pt, id ...). TikTok's search has no language filter, so the Actor applies it to TikTok's own tag on each row. Leave empty for every language. |
| `minViews` | `integer` | `0` | Only videos with at least this many plays. TikTok shows counts of 10,000 and more rounded (1.3M). |
| `minLikes` | `integer` | `0` | Only videos with at least this many likes. |
| `minComments` | `integer` | `0` | Only videos with at least this many comments. |
| `minFollowers` | `integer` | `0` | Only rows whose account (the video's creator, the account found, the LIVE host) has at least this many followers. |
| `maxFollowers` | `integer` | `0` | Only rows whose account has at most this many followers (micro-influencers); 0 = no upper bound. |
| `bioKeywords` | `array` | `[]` | Accounts (Users tab) only: keep the accounts whose bio contains any of these words, case-insensitive. |
| `includeAds` | `boolean` | `true` | Keep the ads TikTok places among the results (isAd true on the row). Off: ads are left out and not charged. |
| `includeDownloadUrl` | `boolean` | `false` | Add TikTok's play and download links of each video (playUrl, downloadUrl). TikTok serves them only with the session's cookies and they expire in about two days; to save the files, pass the video URLs to a video downloader. |
| `deduplicateAcrossKeywords` | `boolean` | `true` | On: a video, account or room that several keywords find is delivered and charged once, under the first keyword. Off: once per keyword. Repeats inside one keyword's list are always dropped free. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A keyword TikTok lists nothing for is not an error: its free keyword row says so, nothing is charged for it, and the run goes on with the others. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**How many videos can I get for a keyword?**

As many as TikTok's logged-out search lists: about 150 to 210 a keyword (185 for nail art, 205 for dog training, 156 to 168 for tesla, depending on the country and the hour). The keyword row says where TikTok ended the list.

**Why is the country of my rows not the one I asked?**

TikTok serves its search to some countries only at a given hour. When your country is not served, the run reads the next country that is (Canada, Australia, Mexico, Brazil, Japan) and every row and the keyword row say which country was read.

**Are the view and like counts exact?**

They are TikTok's own figures as its web page shows them: counts of 10,000 and more are rounded (1.3M), and such rows say countsExact false.

**Can I sort by newest?**

Yes: set sortBy to newest. TikTok's web search serves its own newest-first order (relevance, most liked and newest are its three sorts), and the keyword row says whether page 1 came in date order (sortHonoured). datePosted (last 24 hours, 7, 30, 90 or 180 days) and publishedAfter bound how far back.

**Can I download the videos?**

Tick includeDownloadUrl for TikTok's play and download links; they need the TikTok session's cookies and expire in about two days. To save the files, pass the video URLs to a TikTok video downloader.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

Every call carries `maxItemsPerKeyword` and `maxItems`: a run from code charges at most that many rows, whatever its input.

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/tiktok-keyword-search-scraper').call({"keywords": ["nail art"], "maxItemsPerKeyword": 20, "maxItems": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/tiktok-keyword-search-scraper').call(run_input={'keywords': ['nail art'], 'maxItemsPerKeyword': 20, 'maxItems': 20})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/tiktok-keyword-search-scraper --input '{"keywords": ["nail art"], "maxItemsPerKeyword": 20, "maxItems": 20}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~tiktok-keyword-search-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"keywords": ["nail art"], "maxItemsPerKeyword": 20, "maxItems": 20}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/tiktok-keyword-search-scraper` and ask, for example: "Find the TikTok videos for the keyword nail art with their views, likes and creators". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: `searchQueries`, `searchTerms`, `queries`, `query` as `keywords`; `resultsPerPage`, `maxResultsPerKeyword`, `resultsPerKeyword`, `maxVideosPerKeyword` as `maxItemsPerKeyword`; `maxTotalResults`, `maxTotalItems`, `totalResults`, `maxVideos` as `maxItems`; `sort`, `sortType`, `searchSorting` as `sortBy` (and more). An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/tiktok-keyword-search-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[TikTok Comments Scraper](https://apify.com/hyperbach/tiktok-comments-scraper)** — every comment and reply of TikTok videos by link or creator, with the text, the time, likes, the reply count and the commenter's handle and name, read past TikTok's false list end.
- **[TikTok Followers Scraper](https://apify.com/hyperbach/tiktok-followers-scraper)** — the followers and following lists of any TikTok account, with the exact follower count of every account listed.
- **[TikTok Creative Center Scraper](https://apify.com/hyperbach/tiktok-creative-center-scraper)** — TikTok's top ads by country and period with CTR and retention curves, plus trending hashtags and videos.
- **[TikTok User Search Scraper](https://apify.com/hyperbach/tiktok-search-scraper)** — the TikTok creators a keyword finds, in TikTok's own order, with exact counts and the e-mails and links in their bios.
- **[TikTok Profile Scraper](https://apify.com/hyperbach/tiktok-profile-scraper)** — TikTok profiles with the exact follower, like and video counts, the created date and the business category.
- **[TikTok Ads Library Scraper](https://apify.com/hyperbach/tiktok-ad-library-scraper)** — every ad an advertiser runs in TikTok's Ad Library, with targeting, reach per country, payer and landing page.

**Run them together:** Put the `url` of the videos this run finds into TikTok Comments Scraper's **Video URLs** to read what viewers say about them.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

## `keywords` (type: `array`):

Search words, one per line, as you would type them in TikTok's search box (a hashtag such as #nailart works too). A TikTok search link also works (tiktok.com/search?q=..., /search/video?q=..., /search/user?q=..., /search/live?q=..., /search/photo?q=...): its tab picks the list for that keyword (a /search/video link reads TikTok's Videos tab: videos only). Leave empty to read the example (tesla).

## `searchType` (type: `string`):

The list each keyword is walked down: TikTok's Top results (videos and photo posts, the default), the Photo tab (photo posts only), the Users tab (accounts) or the LIVE tab (rooms live now). TikTok's web search has no Sounds or Hashtags tab.

## `includeUsers` (type: `boolean`):

Also read TikTok's Users tab for every keyword: one row per account, with handle, name, bio, followers, total likes and the verified badge. Charged as user rows.

## `includeLive` (type: `boolean`):

Also read TikTok's LIVE tab for every keyword: one row per room live at the time of the run, with its title, viewers, likes, category and host. Charged as live rows.

## `includeSuggestions` (type: `boolean`):

Also deliver the suggestions TikTok's search box offers for every keyword (usually 8 or 9), with their position. Charged as suggestion rows.

## `maxItemsPerKeyword` (type: `integer`):

The most rows of each list for each keyword. 0 = down to the end of TikTok's list (about 150 to 210 videos a keyword logged out; the keyword's row says where TikTok ended it).

## `maxItems` (type: `integer`):

The most charged rows of the whole run, every list together; 0 = no cap beyond your charge limit.

## `sortBy` (type: `string`):

TikTok's own sort of the Top results: relevance (TikTok's default), most liked or newest first. Each keyword's row says whether TikTok kept the order on its first page (sortHonoured).

## `datePosted` (type: `string`):

TikTok's date filter of the Top results. It is checked on every row: a video outside the window is left out and not charged, and the keyword's row says whether TikTok kept the window (dateFilterHonoured).

## `country` (type: `string`):

TikTok shows each country its own results and serves the search to some countries only at a given hour (on 2026-11-18 Canada, Australia, Mexico, Brazil and Japan served; the US, the UK, Germany, France and Spain did not). The run asks your country first; if TikTok serves it no list, it reads the next country that serves, and every row names the country read (searchCountry). Auto = Canada first.

## `publishedAfter` (type: `string`):

Only videos and photo posts published on or after this date (2026-11-01) or within this span back from now (7 days, 2 months). Checked on every row by the Actor; a row left out is not charged.

## `language` (type: `string`):

Only videos whose caption TikTok tagged with this language (a two-letter code: en, es, pt, id ...). TikTok's search has no language filter, so the Actor applies it to TikTok's own tag on each row. Leave empty for every language.

## `minViews` (type: `integer`):

Only videos with at least this many plays. TikTok shows counts of 10,000 and more rounded (1.3M).

## `minLikes` (type: `integer`):

Only videos with at least this many likes.

## `minComments` (type: `integer`):

Only videos with at least this many comments.

## `minFollowers` (type: `integer`):

Only rows whose account (the video's creator, the account found, the LIVE host) has at least this many followers.

## `maxFollowers` (type: `integer`):

Only rows whose account has at most this many followers (micro-influencers); 0 = no upper bound.

## `bioKeywords` (type: `array`):

Accounts (Users tab) only: keep the accounts whose bio contains any of these words, case-insensitive.

## `includeAds` (type: `boolean`):

Keep the ads TikTok places among the results (isAd true on the row). Off: ads are left out and not charged.

## `includeDownloadUrl` (type: `boolean`):

Add TikTok's play and download links of each video (playUrl, downloadUrl). TikTok serves them only with the session's cookies and they expire in about two days; to save the files, pass the video URLs to a video downloader.

## `deduplicateAcrossKeywords` (type: `boolean`):

On: a video, account or room that several keywords find is delivered and charged once, under the first keyword. Off: once per keyword. Repeats inside one keyword's list are always dropped free.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "keywords": [
    "tesla"
  ],
  "searchType": "video",
  "includeUsers": false,
  "includeLive": false,
  "includeSuggestions": false,
  "maxItemsPerKeyword": 50,
  "maxItems": 0,
  "sortBy": "relevance",
  "datePosted": "any",
  "country": "auto",
  "language": "",
  "minViews": 0,
  "minLikes": 0,
  "minComments": 0,
  "minFollowers": 0,
  "maxFollowers": 0,
  "bioKeywords": [],
  "includeAds": true,
  "includeDownloadUrl": false,
  "deduplicateAcrossKeywords": true
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped records in the default dataset. One row per video, photo post, account, LIVE room or suggestion (`record_type`), and one free row per keyword and list with its verdict (`record_type` keyword):

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "tesla"
    ],
    "maxItemsPerKeyword": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/tiktok-keyword-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["tesla"],
    "maxItemsPerKeyword": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/tiktok-keyword-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "tesla"
  ],
  "maxItemsPerKeyword": 50
}' |
apify call hyperbach/tiktok-keyword-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hyperbach/tiktok-keyword-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0SeC2z5go28BcxXK8/builds/IWwglUCCSNj80skvH/openapi.json
