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

Search TikTok by any keyword and scrape matching videos with views, likes, author stats, hashtags, and music — no login required.

- **URL**: https://apify.com/seemuapps/tiktok-search-scraper.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:** Lead generation, Social media, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TikTok Search Scraper — Videos by Keyword

Search TikTok like a user would and get the top-ranked videos for any keyword as structured data — descriptions, view counts, likes, author stats, hashtags, and music. No login, no cookies, no TikTok account needed.

### What you get

One dataset record per video, ranked in TikTok's search order:

- **Video**: ID, direct URL, description, hashtags, duration, cover image, post date, region
- **Search rank**: the keyword it matched and its position in the results
- **Engagement**: play count, likes, comments, shares, saves (collects), downloads, reposts
- **Author**: username, display name, verification status, follower count, bio
- **Music**: track ID, title, and artist
- Export to JSON, CSV, Excel, or Google Sheets directly from the Apify console

### Use cases

- Trend research — see exactly which videos rank for a keyword right now
- Influencer discovery — surface creators who rank for your niche keywords, with follower counts attached
- Competitor analysis — track which videos and creators dominate searches for your product category
- Content ideation — study the hooks, hashtags, and sounds used by top-ranking videos
- Social listening — monitor brand mentions and product keywords on a schedule

### How to use

1. Enter one or more **Search keywords** — anything you'd type into the TikTok search bar
2. Optionally set **Max videos** to cap the total across all keywords (0 = no cap)
3. Run the actor — results appear in the **Dataset** tab, ranked in TikTok's search order

Each keyword returns its top-ranked search results — up to 30 videos per keyword, exactly what a TikTok user sees on the first results screen. To collect more data, add more keyword variations (e.g. "coffee recipe", "iced coffee recipe", "easy coffee recipes") — up to 100 keywords per run.

### Output format

```json
{
  "keyword": "coffee recipes",
  "position": 1,
  "videoId": "7668672505359469837",
  "videoUrl": "https://www.tiktok.com/@laceyglasley/video/7668672505359469837",
  "description": "New series: making YOUR coffee orders 🤎 #coffeetok #icedcoffee",
  "hashtags": ["coffeetok", "coffeeathome", "icedcoffee"],
  "createdAt": "2026-07-31T02:06:15.000Z",
  "duration": 37,
  "coverUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
  "region": "US",
  "authorUsername": "laceyglasley",
  "authorNickname": "Lacey",
  "authorVerified": false,
  "authorFollowerCount": 88032,
  "likeCount": 35336,
  "commentCount": 306,
  "shareCount": 2823,
  "playCount": 327215,
  "collectCount": 14793,
  "musicTitle": "So Easy (To Fall In Love)",
  "musicAuthor": "ZZang KARAOKE"
}
```

### FAQ

**Do I need a TikTok account or cookies?** No. The actor works without any login.

**How fresh are the results?** Results mirror live TikTok search at the moment of the run.

**Can I run it on a schedule?** Yes — schedule it in the Apify console to monitor your keywords daily or hourly and export new results automatically.

**Why up to 30 videos per keyword?** The actor returns TikTok's first page of search results — the videos that actually rank and get the clicks. For broader coverage, add more keyword variations to the same run.

# Actor input Schema

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

One or more TikTok search queries — anything you would type into the TikTok search bar (e.g. 'coffee recipes', 'iphone 17 review'). Each keyword returns its top-ranked videos (up to 30 per keyword).

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

Maximum total number of videos across all keywords. Set 0 for no limit (up to 30 top-ranked videos per keyword).

## Actor input object example

```json
{
  "keywords": [
    "coffee recipes"
  ],
  "maxItems": 0
}
```

# Actor output Schema

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

One video per record: keyword, search position, videoId, videoUrl, description, hashtags, createdAt, duration, coverUrl, author (username, nickname, verified, followers), likeCount, commentCount, shareCount, playCount, collectCount, music.

# 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": [
        "coffee recipes"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/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 = { "keywords": ["coffee recipes"] }

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

```

## MCP server setup

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