# TikTok Shop Search Scraper (`toolzerhub/tiktok-shop-search-scraper`) Actor

Fast TikTok Shop keyword search scraper for collecting product IDs, seller IDs, titles, prices, images, ratings, and sales signals without extra detail requests.

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

## Pricing

from $5.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Shop Search Scraper

Search TikTok Shop by keyword and get back the listing fields only — product IDs, seller IDs, prices, ratings, sold counts — with no follow-up requests per product.

This is the lean half of the pair. One request per page, eight fields per row, nothing optional. Use it when you are pulling a lot of keywords and only need what the search results already carry.

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `keyword` | string | — | **Required.** Product keyword to search for. |
| `region` | enum | `US` | `US`, `GB`, `SG`, `MY`, `PH`, `TH`, `VN`, `ID`. Each is a separate catalogue. |
| `maxItems` | integer | `100` | Caps how many products are saved. `0` means no limit. Pagination is automatic. |

```json
{
  "keyword": "LEGO",
  "region": "US",
  "maxItems": 100
}
```

### Output

Eight fields per product, every time.

| Field | What it holds |
|---|---|
| `product_id` | TikTok Shop product ID |
| `seller_id` | Seller or shop ID associated with the product |
| `title` | Product title from search results |
| `name` | Product name from the detail payload, when available |
| `price` | Product price information |
| `image` | Primary product image URL |
| `sold_count` | Sales count |
| `rating` | Product rating |

```json
{
  "product_id": "1732432759321694958",
  "seller_id": "8655572138322465518",
  "title": "LEGO Classic Creative Bricks Box",
  "name": "LEGO Classic Creative Bricks Box",
  "price": "$24.99",
  "image": "https://p16-oec-va.ibyteimg.com/...",
  "sold_count": 4821,
  "rating": 4.8
}
```

### Questions

**How is this different from TikTok Shop Products Scraper?**
[TikTok Shop Products Scraper](https://apify.com/toolzerhub/tiktok-shop-products-scraper) is this Actor plus an optional detail lookup that adds eight more fields at the cost of one extra request and one extra billed event per product. Same search, same pagination, same eight base fields. If you never intended to switch that option on, this one is the cheaper way to run the identical query.

**Why did I get fewer products than `maxItems`?**
TikTok's search paginates with a cursor and stops issuing new ones well before most keywords are exhausted. The run ends when TikTok reports no more pages, returns an empty page, or repeats the cursor it already gave. A keyword with 4,000 listings will not return 4,000 rows however high you set `maxItems`. Split the keyword into narrower ones instead.

**Why is `name` sometimes empty when `title` is filled?**
`title` comes from the search result itself; `name` comes from the product's detail payload, which search does not always include. Treat `title` as the reliable one here. If you need `name` populated on every row, use the Products Scraper with details enabled.

**Why do results differ between regions?**
TikTok Shop runs a separate catalogue per market. A listing live in `US` does not appear under `GB` unless the seller published it there too, and prices are quoted in each market's own currency. Run the keyword once per region you care about.

**Can I search several keywords in one run?**
No — one keyword per run. Schedule one run per keyword, or drive them from your own script through the Apify API.

### Other TikTok Shop Actors

| Actor | Use when |
|---|---|
| [TikTok Shop Products Scraper](https://apify.com/toolzerhub/tiktok-shop-products-scraper) | You want the option of full product detail |
| [TikTok Shop Product Scraper](https://apify.com/toolzerhub/tiktok-shop-product-scraper) | You already have a product ID or URL |
| [TikTok Shop Seller Products Scraper](https://apify.com/toolzerhub/tiktok-shop-seller-products-scraper) | You want one shop's entire catalogue |
| [TikTok Shop Category Products Scraper](https://apify.com/toolzerhub/tiktok-shop-category-products-scraper) | You want a whole category, without a keyword |
| [TikTok Shop Reviews Scraper](https://apify.com/toolzerhub/tiktok-shop-reviews-scraper) | You want what buyers said about a product |

### Support

Questions, bugs, or feature requests: **contact@toolzerhub.com**

Browse the rest: [apify.com/toolzerhub](https://apify.com/toolzerhub)

# Actor input Schema

## `keyword` (type: `string`):

Product keyword to search for on TikTok Shop.

## `region` (type: `string`):

TikTok Shop region code.

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

Maximum number of products to save in search mode. Set 0 for no limit.

## Actor input object example

```json
{
  "keyword": "phone",
  "region": "US",
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped data

# 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 = {
    "keyword": "LEGO",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("toolzerhub/tiktok-shop-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 = {
    "keyword": "LEGO",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("toolzerhub/tiktok-shop-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keyword": "LEGO",
  "maxItems": 20
}' |
apify call toolzerhub/tiktok-shop-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=toolzerhub/tiktok-shop-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/oe98ldrbw9eOMvbKy/builds/bL4yJFJG5vquAmr5x/openapi.json
