# TikTok Search Scraper - Videos by Keyword (`scrapewise/tiktok-search-scraper`) Actor

Scrape TikTok search results by keyword: video URL, caption, hashtags, views, likes, comments, shares, saves, post date, duration, cover, sound, tagged place, on-screen text and creator stats. Sort by likes, views or date, filter by age and views.

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

## Pricing

from $0.68 / 1,000 video delivereds

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 Search Scraper: TikTok videos by keyword with views, likes and creator stats

This TikTok search scraper returns **the videos TikTok shows for any keyword or hashtag**, with no account and no login. Type the words you would type in the TikTok search bar and get each video as one clean row: link, caption, hashtags, **views, likes, comments, shares and saves**, post date, duration, cover image, sound, tagged place, on-screen text and the creator's followers, likes and video count.

Use it to find trending videos and creators in a niche, track a brand or a topic every day, build datasets of short videos for research and AI, and pick influencers by real numbers instead of guesses.

### At a glance

| What | Price |
|---|---|
| Video delivered | **US$ 0.89 per 1,000 videos** (US$ 0.00089 each) |
| Run start | US$ 0.005 per GB of memory (US$ 0.01 with the default 2 GB) |

- 3 keywords with 100 videos each = 300 videos = **US$ 0.27 + US$ 0.01 per run**.
- You pay only for videos delivered. Error rows, duplicates, videos skipped by your filters and videos already delivered in earlier runs (`onlyNew`) are never charged.
- `maxItems` is a hard cap, and a spending limit set on the run stops it cleanly with everything delivered so far.
- Proxy traffic is included in the price.

### Quick start

```json
{
  "searchQueries": ["street food"],
  "maxItems": 50
}
```

The most liked videos of the last 30 days for two topics, up to 100 each:

```json
{
  "searchQueries": ["skincare routine", "#booktok"],
  "maxItems": 200,
  "maxItemsPerQuery": 100,
  "sortBy": "mostLiked",
  "publishedWithin": "30d"
}
```

Daily monitoring of a brand, only videos you have not received yet:

```json
{
  "searchQueries": ["your brand name"],
  "sortBy": "newest",
  "onlyNew": true,
  "maxItems": 100
}
```

Schedule the last one once a day and every run returns only the new videos about the brand.

### Input

| Field | What it does |
|---|---|
| `searchQueries` | Keywords, one per line, as typed in the TikTok search bar. Hashtags (`#booktok`) and TikTok search links (`tiktok.com/search?q=...`) also work. Also accepts `keywords`, `queries`, `query` or `hashtags`. |
| `maxItems` | Maximum number of videos in the whole run, across all keywords (default 50). |
| `maxItemsPerQuery` | Optional cap for each keyword. |
| `sortBy` | `relevance` (TikTok's own order, default), `mostLiked`, `mostViewed` or `newest`. |
| `publishedWithin` | `any`, `24h`, `7d`, `30d`, `90d` or `180d`. Older videos are skipped and not charged. |
| `minViews` | Keep only videos with at least this many views. |
| `minLikes` | Keep only videos with at least this many likes. |
| `country` | Whose TikTok search you see: Brazil, Mexico, Argentina, Japan or Indonesia (default Brazil). Keywords in any language work from any country. |
| `onlyNew` | Skip videos this keyword already delivered in your earlier runs (same country). |

How deep a keyword goes: TikTok shows from a few dozen to about 200 videos for one keyword. A broad keyword (`street food`) goes deeper than a narrow one. To collect more, add related keywords: duplicates across keywords are removed and never charged.

How sorting works: with `relevance` the rows come in TikTok's order and the run stops reading as soon as the limit is reached. With `mostLiked`, `mostViewed` or `newest` the run reads every video TikTok shows for the keyword first and then sorts, so the first rows really are the top ones. The `position` field keeps the rank inside each keyword.

### Output

One row per video. Every row keeps the keyword it came from.

| Field | Example | Notes |
|---|---|---|
| `searchQuery` | street food | Keyword of this row |
| `position` | 13 | Rank inside the keyword, after sorting and filters |
| `id` | 7647574295526296864 | TikTok video id |
| `url` | https://www.tiktok.com/@la.fonte.lattea/video/7647574295526296864 | Video page |
| `description` | La mia felicità 🤩 #streetfoodnapoli ... | Caption |
| `createdAt` / `createTimeUnix` | 2026-06-04T16:14:08Z | Post date (UTC) |
| `language` | it | Language of the caption, when TikTok detects it |
| `hashtags` | \["streetfoodnapoli", "foodlovers"] | Hashtags in the caption |
| `mentions` | \[] | Accounts tagged in the caption |
| `onScreenText` | \[] | Text stickers shown on the video |
| `views` | 14100000 | Play count |
| `likes` | 235300 | |
| `comments` | 6610 | Count only |
| `shares` | 35700 | |
| `saves` | 27200 | Times added to favorites |
| `durationSeconds` | 115 | |
| `width` / `height` | 576 / 1024 | Video resolution |
| `coverUrl` | https://p16-common-sign.tiktokcdn.com/... | Cover image (temporary link) |
| `isAd` | false | Paid promotion |
| `placeName` / `placeAddress` / `placeId` | La Fonte Lattea Salumeria / Via Michelangelo da Caravaggio, 3, Napoli | Place tagged on the video, when there is one |
| `musicId` / `musicTitle` / `musicAuthor` / `musicOriginal` | Amore per la Cucina Italiana / Kley Kley / false | Sound used |
| `authorUsername` / `authorName` / `authorId` / `authorSecUid` | la.fonte.lattea | Creator handle, display name and ids |
| `authorUrl` | https://www.tiktok.com/@la.fonte.lattea | Creator profile |
| `authorVerified` | false | Verified badge |
| `authorBio` | Trattoria, gastronomia, macelleria e salumeria... | Creator bio (contact details removed) |
| `authorAvatarUrl` | https://p16-common-sign.tiktokcdn.com/... | Profile picture (temporary link) |
| `authorFollowers` / `authorFollowing` / `authorLikes` / `authorVideos` | 762300 / 137 / 13500000 / 5437 | Creator stats |
| `country` | BR | Country of the search |
| `scrapedAt` | 2026-11-14T19:06:44Z | When the row was collected |
| `errorCode` / `error` | null | Filled only on error rows |

#### Example row

```json
{
  "searchQuery": "street food",
  "position": 13,
  "id": "7647574295526296864",
  "url": "https://www.tiktok.com/@la.fonte.lattea/video/7647574295526296864",
  "description": "La mia felicità 🤩  #streetfoodnapoli #LaFonteLattea #viamichelangelodacaravaggio #FoodLovers #caldoecroccante ",
  "createdAt": "2026-06-04T16:14:08Z",
  "createTimeUnix": 1780589648,
  "language": "it",
  "hashtags": ["streetfoodnapoli", "lafontelattea", "viamichelangelodacaravaggio", "foodlovers", "caldoecroccante"],
  "mentions": [],
  "onScreenText": [],
  "views": 14100000,
  "likes": 235300,
  "comments": 6610,
  "shares": 35700,
  "saves": 27200,
  "durationSeconds": 115,
  "width": 576,
  "height": 1024,
  "isAd": false,
  "placeName": "La Fonte Lattea Salumeria - Calda & Croccante",
  "placeAddress": "Via Michelangelo da Caravaggio, 3, 80126 Napoli NA, Italy",
  "placeId": "21568295489890179",
  "musicId": "7515829417106589712",
  "musicTitle": "Amore per la Cucina Italiana",
  "musicAuthor": "Kley Kley",
  "musicOriginal": false,
  "authorUsername": "la.fonte.lattea",
  "authorName": "La Fonte Lattea Calda&Croccant",
  "authorUrl": "https://www.tiktok.com/@la.fonte.lattea",
  "authorVerified": false,
  "authorFollowers": 762300,
  "authorFollowing": 137,
  "authorLikes": 13500000,
  "authorVideos": 5437,
  "country": "BR",
  "errorCode": null,
  "error": null
}
```

### What people use it for

- **Trend research**: the most viewed videos of the week for a topic, with the sounds and hashtags behind them.
- **Influencer discovery**: creators who rank for your niche keyword, with followers, total likes and video count on the same row.
- **Brand and competitor monitoring**: a daily schedule with `onlyNew` and `sortBy: newest` returns only the new videos that mention a brand.
- **Local and travel content**: the tagged place (`placeName`, `placeAddress`) shows where videos were filmed, good for restaurants, hotels and destinations.
- **Datasets for AI and research**: captions, hashtags, language and engagement numbers for thousands of short videos, ready as JSON, CSV or Excel.

### Errors you may see

Error rows are never charged and always have `errorCode` and `error` filled.

| errorCode | Meaning | What to do |
|---|---|---|
| `NO_RESULTS` | TikTok has no video for the keyword, or none matched your filters | Try a broader keyword or loosen `publishedWithin`, `minViews` or `minLikes` |
| `BLOCKED` | TikTok did not open the search for this run | Run again in a few minutes |
| `INVALID_INPUT` | A field has a value the Actor does not accept | Fix the field named in the message |
| `UNEXPECTED` | Something else went wrong | Run again; everything delivered before the error stays in the dataset |

### Integrations, scheduling and AI agents

- **Schedules**: run it every hour, day or week from the Schedules tab. With `onlyNew` each run returns only videos you have not received yet.
- **Export**: download the dataset as JSON, CSV, Excel, XML or HTML, or read it from the dataset API.
- **Make, n8n and Zapier**: start a run and receive the videos in your workflow with the Apify integrations.
- **Webhooks**: get a call when the run finishes and pull the new rows right away.
- **AI agents**: the Actor works as a tool through the Apify MCP server, so an assistant can search TikTok by keyword and read the numbers.

### FAQ

**Do I need a TikTok account or cookies?** No. The Actor reads only what TikTok shows to anyone who searches without logging in.

**Why do I get fewer videos than `maxItems`?** TikTok shows a limited number of videos for each keyword (from a few dozen to about 200). Add related keywords to get more; you pay only for what is delivered.

**Can I search in English from Brazil or Japan?** Yes. The country changes which videos TikTok favors, not the language. English keywords return English videos from any country.

**Does it download the videos?** No. It returns the link to each video, the cover image and all the metadata.

**Are comments included?** Only the comment count. The Actor does not collect the people who comment, like or follow.

**How fresh are the numbers?** Views, likes and follower counts are read at the moment of the run.

**Can I sort by date or by likes?** Yes, with `sortBy`. The run reads every video TikTok shows for the keyword and sorts them, so the order is exact within that set.

### Limitations

- TikTok decides how many videos one keyword shows (usually 50 to 200). There is no way to go beyond that for a single keyword.
- Countries available: Brazil, Mexico, Argentina, Japan and Indonesia.
- Cover and avatar links are temporary (they expire after a few days). Save the images if you need them later.
- Contact details in bios and captions (e-mail, phone) are replaced with `[contact removed]`.
- Private videos and videos removed by TikTok never appear in search.

### Changelog

- **14 Nov 2026**: first version. Keyword and hashtag search, sorting by likes, views and date, date and minimum views and likes filters, tagged place, on-screen text, creator stats and `onlyNew` for daily monitoring.

# Actor input Schema

## `searchQueries` (type: `array`):

Words to search on TikTok, one per line, as you would type them in the TikTok search bar (for example street food, skincare routine, #booktok). A TikTok search link (tiktok.com/search?q=...) also works. Each keyword is one search with its own results, and every row keeps the keyword and its position. Also accepts 'keywords', 'queries', 'query' or 'hashtags'.

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

Maximum number of videos in the whole run, across all keywords. You pay only for videos delivered.

## `maxItemsPerQuery` (type: `integer`):

Optional cap for each keyword. TikTok shows about 70 to 100 videos for one keyword, so add related keywords to get more. Leave empty to split only by the total.

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

Order of the videos for each keyword. Relevance keeps TikTok's own order. The other options read every video TikTok shows for the keyword and then sort them, so the top of the list really is the most liked, most viewed or newest.

## `publishedWithin` (type: `string`):

Keep only videos posted in this period. Videos outside it are skipped and never charged.

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

Keep only videos with at least this many views. Skipped videos are not charged.

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

Keep only videos with at least this many likes. Skipped videos are not charged.

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

Country whose TikTok search you see. Results follow what TikTok shows to people in that country, in any language: English keywords still return English videos.

## `onlyNew` (type: `boolean`):

Skip videos this keyword already delivered in your earlier runs (same country). Good for daily schedules that track a topic or a brand. Skipped videos are not charged.

## Actor input object example

```json
{
  "searchQueries": [
    "street food"
  ],
  "maxItems": 50,
  "sortBy": "relevance",
  "publishedWithin": "any",
  "country": "BR",
  "onlyNew": false
}
```

# Actor output Schema

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

No description

## `resultsCsv` (type: `string`):

No description

# 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 = {
    "searchQueries": [
        "street food"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/tiktok-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 = { "searchQueries": ["street food"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/tiktok-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 '{
  "searchQueries": [
    "street food"
  ]
}' |
apify call scrapewise/tiktok-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/tiktok-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/Z7A7CppRPzh3h3XoS/builds/LacuAgcTWkilNsxph/openapi.json
