# TikTok Search Scraper (`icoe-man/tiktok-search-scraper`) Actor

A tiktok keyword search scraper: find public TikTok videos, profiles and top results for any keyword, plus search suggestions. Export clean JSON, CSV or Excel for research and monitoring.

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

## Pricing

Pay per event

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

Compare public TikTok search results side by side in one table. Enter one or more keywords and choose whether to collect videos, profiles, top results or suggested phrases. Download the table to review the results or work with them in another tool.

### What you get

Under **What to collect**, choose the type of results you want. Fill in the fields for that choice, then start the run. Each run returns one kind of result. The Actor ignores fields from other modes. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Collection modes

#### Search posts

For each keyword, collect the videos TikTok shows, along with links, captions, and counts for likes and views. In `search-posts` mode, fill in **Keywords** (up to 100 entries), and **Sort by** (optional), **Posted within** (optional). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each post appears in its own row and counts as one **Search posts** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "tiktok",
  "id": "7706542425954667790",
  "url": "https://www.tiktok.com/@user_92d60d20/video/7706542425954667790",
  "author": {
    "id": "918064266794030153",
    "username": "user_92d60d20",
    "displayName": "Fixture User a25245",
    "verified": null
  },
  "text": "This Electric Car Hit 312 MPH On A Highway BYD's Yangwang U9 Xtreme just set the speed record for production cars, 50...",
  "language": "en",
  "createdAt": "2026-11-10T14:01:04Z",
  "metrics": {
    "likes": 19,
    "comments": 2,
    "shares": 1,
    "views": 1053,
    "saves": 5
  },
  "hashtags": [
    "cars",
    "supercar"
  ],
  "mentions": [
    "user_15609ef2",
    "user_5db33a4b"
  ],
  "media": [
    {
      "kind": "video",
      "url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/o4AJjnM8jVQFfkHHChMmhcXkEfA5AAvgf9SJRI/",
      "thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/o4v8SITID4aOyBISgEf6AIClYFf4tqDEp7TRMz~tplv-tiktokx-origin.image",
      "durationSec": 48,
      "width": 1080,
      "height": 1920
    }
  ],
  "details": {
    "tiktok": {
      "music": {
        "id": "7706542567596346125",
        "title": "original sound",
        "artist": "Fixture Artist",
        "durationSec": 30,
        "isOriginal": true
      },
      "isAd": false,
      "authorFollowers": 1250000,
      "authorFollowing": 12,
      "downloads": 85,
      "isPinned": false,
      "paidPartnership": false,
      "aiGenerated": false,
      "placeName": null,
      "postedFromCountry": "US"
    }
  },
  "collectedAt": "2026-11-10T14:50:30Z",
  "input": {
    "keyword": "electric cars",
    "maxItems": 30
  }
}
```

#### Search profiles

For each keyword, collect the profiles TikTok shows, including usernames, bios and follower counts. In `search-profiles` mode, fill in **Keywords** (up to 100 entries). Use **Result limit per target** to set how many profiles the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each profile appears in its own row and counts as one **Search profiles** charge.

Example result for one profile:

```json
{
  "status": "ok",
  "type": "profile",
  "platform": "tiktok",
  "id": "921029829648410727",
  "url": "https://www.tiktok.com/@user_656de998",
  "username": "user_656de998",
  "displayName": "Fixture User 576e77",
  "bio": "Coffee PDP drive \n39 rue des voirons ville-la-grand \nTout a disposition \n7j/7 10h/00h et 10h/1h weekend 🇲🇽⚡️",
  "avatarUrl": "https://p16-sign.tiktokcdn.com/fixture/71465a2bcae7.jpeg",
  "verified": null,
  "isPrivate": null,
  "followers": 337,
  "following": null,
  "postsCount": null,
  "externalUrl": null,
  "createdAt": null,
  "details": {
    "tiktok": {
      "totalLikes": 1520000,
      "likedVideos": 210,
      "region": "US",
      "language": "en"
    }
  },
  "collectedAt": "2026-11-10T16:38:19Z",
  "input": {
    "keyword": "coffee",
    "maxItems": 30
  }
}
```

#### Search top results

Collect the videos that appear in TikTok's top results for each keyword. In `search-top` mode, fill in **Keywords** (up to 100 entries), and **Sort by** (optional), **Posted within** (optional). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each post appears in its own row and counts as one **Search top results** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "tiktok",
  "id": "7653593151180950805",
  "url": "https://www.tiktok.com/@user_ed6113ca/video/7653593151180950805",
  "author": {
    "id": "933870595809974719",
    "username": "user_ed6113ca",
    "displayName": "Fixture User 3aa9c7",
    "verified": false
  },
  "text": "Best match btw #colombia #worldcup #football #passion #paratiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii ",
  "language": "en",
  "createdAt": "2026-06-20T21:30:29Z",
  "metrics": {
    "likes": 6632177,
    "comments": 10461,
    "shares": 312322,
    "views": 39012455,
    "saves": 464148
  },
  "hashtags": [
    "colombia",
    "worldcup"
  ],
  "mentions": [],
  "media": [
    {
      "kind": "video",
      "url": "https://v16m.tiktokcdn-us.com/b30ccafe5bbb91ac281aed6c0c3b1ff6/6af3b8dd/video/tos/no1a/tos-no1a-ve-0068-no/oYI8EQAnIbSGASB1qicZfnLLTL4CniJwum4hAS/",
      "thumbnailUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/oUsiSBmnIq4CuSGAn3cBfATILnAiBB4wXzP1IL~tplv-x7g4mazu7z-crop-80-heic:400:600.heic",
      "durationSec": 54,
      "width": 720,
      "height": 720
    }
  ],
  "details": {
    "tiktok": {
      "music": {
        "id": "7653593192662633000",
        "title": "original sound - user_66afc6f4",
        "artist": "Fixture Artist",
        "durationSec": 30
      },
      "isAd": false,
      "authorFollowers": 1250000,
      "authorFollowing": 12,
      "downloads": 85,
      "isPinned": false,
      "paidPartnership": false,
      "postedFromCountry": "US"
    }
  },
  "collectedAt": "2026-11-10T18:36:53Z",
  "input": {
    "keyword": "world cup",
    "maxItems": 40
  }
}
```

#### Search suggestions

Collect the search phrases TikTok suggests as you type each keyword. In `search-suggestions` mode, fill in **Keywords** (up to 100 entries). Use **Result limit per target** to set how many keywords the Actor can collect per entry. The default is 20 and the highest setting is 100. Each keyword appears in its own row and counts as one **Search suggestions** charge.

Example result for one keyword:

```json
{
  "status": "ok",
  "type": "keyword",
  "platform": "tiktok",
  "id": "coffee boticário",
  "text": "coffee boticário",
  "language": "pt",
  "details": null,
  "collectedAt": "2026-11-10T18:57:01Z",
  "input": {
    "keyword": "coffee",
    "maxItems": 100
  }
}
```

### Ways to use the data

- See which videos come up on TikTok when you search for a topic or product name.
- Find public TikTok creator profiles that match your niche or a brand name.
- Compare how top results for your brand and your competitors' keywords change over time.
- Use TikTok's suggested searches to find topics for your next post.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `mode` | What to collect | Choose one type of result per run, then fill in the fields for that choice. |
| `keywords` | Keywords | Enter one search word or phrase per line. |
| `sortBy` | Sort by | The default, relevance, keeps TikTok's search order. Choose most-liked to put videos with the most likes first or newest to put the latest videos first. |
| `postedWithin` | Posted within | The default, all-time, includes videos from any date. Choose past-day, past-week, past-month or past-six-months to limit results by how long before the run the videos were posted. |
| `maxItems` | Result limit per target | Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "mode": "search-posts",
  "keywords": [
    "electric cars",
    "coffee"
  ],
  "sortBy": "relevance",
  "postedWithin": "all-time",
  "maxItems": 20,
  "freshness": "standard"
}
```

### Your results

Each mode has its own view of the results table. See **Collection modes** for what each mode returns.

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`. If a required field for your mode is blank, the run returns one error row and collects no data.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Search posts | $3.601 | $3.001 | $2.626 | $2.251 | $2.251 | $2.251 |
| Search profiles | $3.601 | $3.001 | $2.626 | $2.251 | $2.251 | $2.251 |
| Search suggestions | $3.601 | $3.001 | $2.626 | $2.251 | $2.251 | $2.251 |
| Search top results | $3.601 | $3.001 | $2.626 | $2.251 | $2.251 | $2.251 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 100 results per run and make up to 20 runs per day.

### Common questions

#### What does each search mode return?

Choose Search posts for matching videos or Search profiles for matching accounts. Search top results collects the videos TikTok shows in its top results. Search suggestions collects the phrases TikTok suggests as you type.

#### Can I sort videos or limit results to recent posts?

Yes. In Search posts and Search top results, use Sort by to choose relevance, most-liked or newest. To limit results to recent videos, set Posted within to past-day, past-week, past-month or past-six-months. Search profiles shows how many likes an account has received in total. Its liked video count, region and language may be blank.

#### What other details come with the video results?

Each video row includes the sound's artist and length. The tagged place, posting country, download count and the creator's follower and following counts may be blank. A row may also omit whether the video is pinned, AI-generated or part of a paid partnership. Search top results leaves out the creator's total likes.

#### Do I need a TikTok account to use this?

No. The Actor collects only public data, so you don't need to sign in or share TikTok account details or browser cookies.

#### How do I set a result limit, and what counts toward the cost?

Set Result limit per target to the most results you want for each keyword. You pay only for the results you receive. Errors and empty results don't count. The run stops if it reaches your spending limit.

#### Can I search for several keywords in one run?

Yes. In Keywords, enter one word or phrase per line. The Actor removes extra spaces and runs each distinct search once.

#### Is this tool affiliated with TikTok?

No. This independent tool collects only public information from TikTok. It is not affiliated with, endorsed by or sponsored by TikTok or ByteDance.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by TikTok. All trademarks belong to their owners.

# Actor input Schema

## `mode` (type: `string`):

Choose one type of result per run, then fill in the fields for that choice.

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

Enter one search word or phrase per line.

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

The default, relevance, keeps TikTok's search order. Choose most-liked to put videos with the most likes first or newest to put the latest videos first.

## `postedWithin` (type: `string`):

The default, all-time, includes videos from any date. Choose past-day, past-week, past-month or past-six-months to limit results by how long before the run the videos were posted.

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

Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "mode": "search-posts",
  "keywords": [
    "electric cars",
    "coffee"
  ],
  "sortBy": "relevance",
  "postedWithin": "all-time",
  "maxItems": 20,
  "freshness": "standard"
}
```

# Actor output Schema

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

See everything this run collected in one table.

# 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 = {
    "mode": "search-posts",
    "keywords": [
        "electric cars",
        "coffee"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/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 = {
    "mode": "search-posts",
    "keywords": [
        "electric cars",
        "coffee",
    ],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/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 '{
  "mode": "search-posts",
  "keywords": [
    "electric cars",
    "coffee"
  ],
  "maxItems": 20
}' |
apify call icoe-man/tiktok-search-scraper --silent --output-dataset

```

## MCP server setup

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