# TikTok Search Results Scraper (`fetch_cat/tiktok-search-results-scraper`) Actor

Export ranked public TikTok search videos for keyword research, creator discovery, brand monitoring, and social listening.

- **URL**: https://apify.com/fetch\_cat/tiktok-search-results-scraper.md
- **Developed by:** [Hanna Nosova](https://apify.com/fetch_cat) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.85 / 1,000 tiktok video results

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?

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 Results Scraper

This TikTok search scraper exports public video results by keyword for content research and creator discovery. Use the TikTok video search scraper workflow to retain each search keyword and rank alongside creator, caption, engagement, publication time, cover image, music, and direct TikTok URLs. For automated workflows, the TikTok keyword search API-compatible input accepts one or more public search terms.

### Ready-to-run examples

Open a public example to inspect its input, run it, or reuse it as a task:

- [Compare AI Topics on TikTok](https://apify.com/fetch_cat/tiktok-search-results-scraper/examples/compare-ai-topics-on-tiktok)
- [Find Wireless Earbuds TikTok Trends](https://apify.com/fetch_cat/tiktok-search-results-scraper/examples/wireless-earbuds-tiktok-trends)
- [Search TikTok Videos About OpenAI](https://apify.com/fetch_cat/tiktok-search-results-scraper/examples/search-tiktok-videos-openai)

```json
{
  "queries": ["openai", "wireless earbuds"],
  "maxResultsPerQuery": 20
}
```

### Output example

```json
{
  "query": "openai",
  "position": 1,
  "videoId": "7665717073317809439",
  "videoUrl": "https://www.tiktok.com/@creator/video/7665717073317809439",
  "caption": "Public video caption",
  "authorUsername": "creator",
  "playCount": 12345,
  "likeCount": 678,
  "scrapedAt": "2026-08-30T00:00:00.000Z"
}
```

### Input settings

| Field | Description |
| --- | --- |
| `queries` | One or more public TikTok video search keywords. |
| `maxResultsPerQuery` | Maximum unique videos returned for each keyword (1–200). |
| `proxyConfiguration` | Optional proxy configuration when your network location needs to differ. |

### Exported fields

| Field | Description |
| --- | --- |
| `query`, `position` | Requested keyword and ordinal position within that keyword. |
| `videoId`, `videoUrl` | TikTok video identifier and direct public URL. |
| `caption` | Public video caption when supplied. |
| `authorUsername`, `authorDisplayName`, `authorUrl` | Public creator identity and profile URL. |
| `createdAt`, `duration` | Publication timestamp and video duration in seconds. |
| `playCount`, `likeCount`, `commentCount`, `shareCount` | Public engagement totals. |
| `coverUrl`, `musicTitle` | Public cover image and music title when supplied. |
| `scrapedAt` | ISO timestamp at extraction. |

### Tips and limits

- Use specific keywords for more focused results.
- TikTok can return fewer results than requested.
- Only public, no-login search-result metadata is exported. Fields absent from the public result are returned as `null`.

### API usage

Run `fetch_cat/tiktok-search-results-scraper` from the Console, API, or MCP. Retrieve the default dataset after the run completes.

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/tiktok-search-results-scraper').call({ queries: ['openai'], maxResultsPerQuery: 20 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_APIFY_TOKEN')
run = client.actor('fetch_cat/tiktok-search-results-scraper').call(run_input={'queries': ['openai'], 'maxResultsPerQuery': 20})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

```bash
curl "https://api.apify.com/v2/acts/fetch_cat~tiktok-search-results-scraper/runs?token=$APIFY_TOKEN" \
  -H 'content-type: application/json' -d '{"queries":["openai"],"maxResultsPerQuery":20}'
```

### Who is it for?

Use this Actor when you need a repeatable keyword-based TikTok research export for content research, creator discovery, campaign reporting, or trend monitoring.

Typical users include:

- content teams comparing which videos rank for campaign keywords;
- creator researchers building public prospect lists;
- brand teams monitoring public mentions and engagement;
- analysts exporting ranked results to CSV, JSON, Excel, or a warehouse;
- automation builders feeding normalized TikTok search data into agents and workflows.

### MCP and agent use

AI agents can invoke the same validated input through the [Apify MCP server](https://mcp.apify.com?tools=fetch_cat/tiktok-search-results-scraper). Give the agent a keyword and a result limit; each returned row preserves its source query.

#### Claude Code setup

Add the Apify MCP server to Claude Code with this command:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fetch_cat/tiktok-search-results-scraper"
```

Or add it to your MCP configuration:

```json
{
  "mcpServers": {
    "apify": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=fetch_cat/tiktok-search-results-scraper"
    }
  }
}
```

#### Example prompts

- “Search TikTok for `openai tutorials` and return the first 20 videos with creator and engagement metrics.”
- “Find 50 TikTok videos about `wireless earbuds`; group the exported rows by creator and rank them by likes.”
- “Run a TikTok keyword search for `back to school` and export the video URLs, captions, music titles, and publication times.”

The actor accepts the same `queries` and `maxResultsPerQuery` values shown in the input recipe. Your agent can save the resulting dataset to a spreadsheet, warehouse, or follow-up workflow.

### Troubleshooting

If a keyword returns fewer rows than requested, try a more specific phrase and run again later. TikTok search ranking and public result availability can change. For a reproducible report, retain the query, run time, and exported `videoId` values.

### Pricing

The Actor charges per exported public video result. See the [live Pricing tab](https://apify.com/fetch_cat/tiktok-search-results-scraper/pricing) for current tier pricing.

### FAQ

**Can I search multiple keywords?** Yes. Every result retains its source `query`.

**Are downloads or private data included?** No. This Actor exports only public search-result metadata and links.

### Related Actors

- [TikTok Video Scraper](https://apify.com/fetch_cat/tiktok-video-scraper)
- [TikTok Profile Scraper](https://apify.com/fetch_cat/tiktok-profile-scraper)
- [TikTok Comments Scraper](https://apify.com/fetch_cat/tiktok-comments-scraper)
- [TikTok Hashtag Scraper](https://apify.com/fetch_cat/tiktok-hashtag-scraper)
- [TikTok Sound Scraper](https://apify.com/fetch_cat/tiktok-sound-scraper)

### Support

For reproducible issues, include the keyword, requested result limit, and the affected output field.

# Actor input Schema

## `queries` (type: `array`):

One or more public TikTok video search keywords.

## `maxResultsPerQuery` (type: `integer`):

Stop after this many unique video results for each keyword. TikTok may return fewer.

## `proxyConfiguration` (type: `object`):

Optional proxy configuration for requests that need a different network location.

## Actor input object example

```json
{
  "queries": [
    "openai"
  ],
  "maxResultsPerQuery": 10
}
```

# Actor output Schema

## `overview` (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 = {
    "queries": [
        "openai"
    ],
    "maxResultsPerQuery": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("fetch_cat/tiktok-search-results-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 = {
    "queries": ["openai"],
    "maxResultsPerQuery": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("fetch_cat/tiktok-search-results-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 '{
  "queries": [
    "openai"
  ],
  "maxResultsPerQuery": 10
}' |
apify call fetch_cat/tiktok-search-results-scraper --silent --output-dataset

```

## MCP server setup

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