# TikTok Keyword Search Scraper 🔎 Videos with Stats (No Login) (`tagadanar/tiktok-keyword-search-scraper`) Actor

Search TikTok videos by keyword (as indexed by Google) and get each video with exact views, likes, comments, shares, saves, caption, hashtags, author, sound and post date. Google operators, country, date and views filters. No login. $0.02 per Google page + $0.05 per 1,000 videos.

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

## Pricing

from $14.00 / 1,000 google results pages

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: Videos with Stats (No Login)

Type keywords, get the public TikTok videos that match them: one row per video with its link, exact views, likes,
comments, shares and saves, caption, hashtags, mentions, author (with followers), sound, duration, cover and posting
date. Plain words or Google operators (`"exact phrase"`, `OR`, `-exclude`), any country and language. No TikTok
account, no cookies, no login.

**$0.02 per Google results page read + $0.05 per 1,000 videos on Free (lower on higher Apify plans), plus $0.001 per
run. Platform usage is included.** A results page usually brings dozens of TikTok videos, so a full page of 90 videos
costs about $0.025 in all. No API key, no proxy to set up.

**How it finds videos:** the search runs on Google, restricted to TikTok video links (`site:tiktok.com/@`), then each
video found is opened for its details. So you get the videos **Google has indexed** for your keywords, not TikTok's
in-app search results. Very recent videos (hours or a few days old) may not be indexed yet, and the order is Google's
relevance order, not newest first.

### What you get

One flat row per video (or photo carousel).

| Field | What it is |
| --- | --- |
| `keyword` | The keyword that found this video |
| `position` | Its rank among this keyword's TikTok results on Google (1 = first) |
| `detailsStatus` | `ok` when the video page was read; otherwise why the row carries Google's data only (see below) |
| `id`, `url`, `postType` | The video ID, its link, and `video` or `photo` (carousel) |
| `description`, `hashtags`, `mentions` | The full caption and the tags in it |
| `createTime`, `createTimeUnix` | When it was posted |
| `authorHandle`, `authorNickname`, `authorId`, `authorSecUid`, `authorVerified`, `authorPrivate` | Who posted it |
| `authorFollowers`, `authorLikes`, `authorVideos` | The author's followers, total likes and video count |
| `plays`, `likes`, `comments`, `shares`, `saves`, `reposts` | Exact counts, as TikTok shows them on the video page |
| `engagementRate` | (likes + comments + shares + saves) / views |
| `durationSeconds`, `width`, `height`, `definition` | Video length and format |
| `musicId`, `musicTitle`, `musicAuthor`, `musicOriginal`, `musicDurationSeconds` | The sound |
| `coverUrl`, `videoPlayUrl`, `videoPlayUrlExpiresAt` | Cover image and play URL (TikTok's signed links expire) |
| `imageCount`, `imageUrls` | The photos of a photo carousel |
| `locationCreated`, `textLanguage`, `isAd`, `aiGenerated`, `diversificationLabels` | Region, caption language, ad and AI labels, TikTok's topic labels |
| `duetEnabled`, `stitchEnabled` | Whether duets and stitches are allowed |
| `googleTitle`, `googleImageUrl`, `googleDate` | What Google lists for the video |
| `searchPage`, `scrapedAt` | The Google results page it came from, and when the row was made |

### Who uses it

- **Trend and content research:** which videos rank for a topic, with their hooks, captions, hashtags and sounds, and how many views they got.
- **Influencer and creator discovery:** the accounts posting about your niche, with followers and per-video engagement.
- **Brand and campaign monitoring:** videos mentioning a brand, product or campaign phrase, run on a schedule.
- **Market and product research:** what people film about a product category, filtered by views or date.

### Examples

Prefill (one keyword, 20 videos):

```json
{"keywords": ["meal prep"], "maxResultsPerKeyword": 20, "maxPagesPerKeyword": 1}
```

Videos from the last 6 months with at least 100,000 views:

```json
{"keywords": ["\"protein ice cream\" ninja creami"], "postedAfter": "6 months", "minPlays": 100000, "maxPagesPerKeyword": 3}
```

Several keywords, links and Google's data only (cheapest, no video details):

```json
{"keywords": ["sourdough discard", "\"cold brew\" recipe"], "includeDetails": false, "maxResultsPerKeyword": 100, "maxPagesPerKeyword": 2}
```

### Input

- `keywords`: one search per line, up to 50. The actor adds the TikTok restriction itself (a `site:` you type is removed).
- `maxResultsPerKeyword`: stop a keyword after this many delivered videos (default 50, max 1,000).
- `maxPagesPerKeyword`: Google results pages read per keyword (default 3, max 10). Each page lists up to about 100
  images; the TikTok videos among them are kept and de-duplicated. A keyword stops early when Google has nothing new.
- `includeDetails`: on (default) opens each video page for its stats and details; off returns Google's data only
  (link, video ID, author handle, Google's title and image) with no per-video charge.
- `postedAfter`, `postedBefore` (optional): a date range, as `2025-01-31` or a relative age such as `30 days`.
- `minPlays`, `minLikes` (optional): keep only videos with at least this many views or likes.
- `country` (default `us`) and `language` (empty = any): Google's country and result language.

The date, views and likes filters are checked on each video page (they need `includeDetails` on): videos outside
them, and videos TikTok did not serve (their date and counts cannot be checked), are not delivered and not charged.
Google returns videos in its relevance order, not by date, so a narrow date range on a broad keyword may need more
pages.

### Results, zeros and errors

- **Rows with Google's data only.** When TikTok does not serve a video page, the video is still delivered with its
  link, ID, author handle, Google's title and image; `detailsStatus` says why (`not_served`, `paused_after_refusals`
  after several refusals in a row, `out_of_time` when the run clock ran out). These rows are never charged. With
  `includeDetails` off every row is like that (`details_off`).
- **Deleted or private videos** Google still lists are checked with TikTok and dropped: no row, no charge.
- A video found by two keywords is delivered once, under the first keyword.
- A keyword Google answered with no TikTok result is named in the status ("no TikTok results") and costs only the
  results page read. A keyword Google refused, or the run clock stopped, is named and never reported as empty.
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $0.02 per Google results page read on Free ($0.014 on Gold); each page lists up to about 100 images.
- $0.05 per 1,000 videos with details on Free ($0.035 per 1,000 on Gold).
- Google-only rows, deleted or private videos and videos outside your filters are free.

Platform usage and proxies are included. Set a maximum charge per run in Apify for a hard ceiling: the actor checks
it before each page and before opening each video, stops at it and says so in the status.

### FAQ

**Is this TikTok's own search?** No. This actor never logs in and never calls TikTok's search. It searches Google for
TikTok video links matching your keywords, then reads each public video page. Results are videos Google has indexed,
in Google's order.

**How many videos per keyword?** It depends on how much Google has indexed for it. Broad keywords fill several pages
with dozens of videos each; narrow phrases may return a handful. `maxPagesPerKeyword` caps the pages read (and their
cost).

**Can I filter by date or views?** Yes: `postedAfter`, `postedBefore`, `minPlays` and `minLikes`. Videos outside them
are dropped free of charge. Every row also carries `createTime`, `plays`, `likes`, `comments`, `shares` and `saves`
for finer filtering after the run.

**Do I get the video file?** Each row carries `videoPlayUrl`, TikTok's signed play link, which expires (about two
days after the run; the time is in `videoPlayUrlExpiresAt`). The actor does not download videos.

### Data use

Only public videos are read, as any logged-out visitor sees them; no login, no private accounts, no follower lists,
no emails. You are responsible for how you use the data, including TikTok's terms and the privacy law that applies
to you (for example the GDPR when videos identify people).

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/tiktok-keyword-search-scraper/changelog.md

# Actor input Schema

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

One search per line, up to 50. Plain words or Google operators: "exact phrase", OR, -exclude (for example: "meal prep" -keto). The actor adds the tiktok.com restriction itself.

## `maxResultsPerKeyword` (type: `integer`):

Stop a keyword after this many delivered videos. Default 50, max 1,000.

## `maxPagesPerKeyword` (type: `integer`):

Google results pages read per keyword (each page lists up to about 100 images, of which the TikTok videos are kept). Each page read is charged. Default 3, max 10.

## `includeDetails` (type: `boolean`):

On: open each video page for exact views, likes, comments, shares, saves, caption, hashtags, author, sound, duration and post date (charged per video). Off: Google's data only (link, video ID, author handle, title, image), no per-video charge.

## `postedAfter` (type: `string`):

Optional: keep only videos posted on or after this date (YYYY-MM-DD, UTC) or within a relative age such as "30 days", "2 weeks", "6 months". Checked on each video page; videos outside the range are not delivered and not charged. Needs video details on.

## `postedBefore` (type: `string`):

Optional: keep only videos posted on or before this date (YYYY-MM-DD, UTC, inclusive) or older than a relative age such as "7 days". Needs video details on.

## `minPlays` (type: `integer`):

Optional: keep only videos with at least this many views. Checked on each video page; videos below it are not delivered and not charged. 0 = no filter.

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

Optional: keep only videos with at least this many likes. Checked on each video page; videos below it are not delivered and not charged. 0 = no filter.

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

Two-letter country code Google searches from (us, gb, br, in, ...). Default us.

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

Optional: keep results Google marks as this language (en, es, pt, fr, de, ...). Empty = any language.

## Actor input object example

```json
{
  "keywords": [
    "meal prep"
  ],
  "maxResultsPerKeyword": 20,
  "maxPagesPerKeyword": 1,
  "includeDetails": true,
  "minPlays": 0,
  "minLikes": 0,
  "country": "us"
}
```

# Actor output Schema

## `dataset` (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 = {
    "keywords": [
        "meal prep"
    ],
    "maxResultsPerKeyword": 20,
    "maxPagesPerKeyword": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/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": ["meal prep"],
    "maxResultsPerKeyword": 20,
    "maxPagesPerKeyword": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/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": [
    "meal prep"
  ],
  "maxResultsPerKeyword": 20,
  "maxPagesPerKeyword": 1
}' |
apify call tagadanar/tiktok-keyword-search-scraper --silent --output-dataset

```

## MCP server setup

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