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

Search TikTok Shop for any keyword and export what sells. Every result carries its title, image, price, star rating, units sold, seller, and variants — with the shops matching your keyword collected alongside. Turn on product details to add the full page to each row.

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

## Pricing

from $3.19 / 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 for any keyword and export what comes back. Every product carries its title, price, star rating, units sold, seller, and variants — and the shops matching your keyword are collected alongside, so you see both the listings and who is selling them.

```json
{
  "keyword": "wireless earbuds",
  "region": "US",
  "maxItems": 100,
  "enrichProductDetails": false
}
```

### Search controls

`keyword` is required. `region` is `US` only. TikTok serves its search page to its US storefront alone — every other storefront returns nothing — so no other region is offered here. `maxItems` defaults to `100` and bounds the number of products saved; `0` removes the bound. `enrichProductDetails` defaults to `false` and is described under **Full product detail** below.

### Result fields

`product_id` and `title` identify the row. `image` is TikTok's raw image object (`height`, `width`, CDN `uri`, and `url_list`); `image_url` is a convenience field carrying the first usable link from it, and `transparent_image` is a second, transparent-background image when the listing carries one. `product_price_info` holds the formatted sale price and currency; `rate_info` and `sold_info` carry the star score, review count, and units sold. `seller_info` is a short seller summary (`seller_id`, `shop_name`, `shop_logo`); `seo_url` is the canonical `shop.tiktok.com` product link. `product_marketing_info` lists promotion badges shown on the card, and `sku_info` lists every purchasable variant with its own SKU ID and price.

```json
{
  "product_id": "1732503148168843908",
  "title": "HiFi Deep Bass Wireless Earbuds with Active Noise Cancellation 140H Playtime ENC Clear Calls Bluetooth 5.4 Immersive ANC & 10 Minute Quick Charge - Charging",
  "image_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/3dc4235e6e764d1582329c3e5e129518~tplv-fhlh96nyum-crop-webp:800:800.webp",
  "product_price_info": { "currency_name": "USD", "sale_price_format": "5.90", "price_prefix": "From" },
  "rate_info": { "score": 5, "review_count": "4" },
  "sold_info": { "sold_count": 108 },
  "seller_info": { "seller_id": "7494787890270668420", "shop_name": "luckyiscoming" }
}
```

This is a trimmed, live-verified `wireless earbuds` search result; `product_price_info`, `seller_info`, `product_marketing_info`, and `sku_info` each carry more fields than shown here.

### Full product detail

A listing row carries what the product card shows. The description, the complete variant matrix, the shop's own profile and a page of reviews with the star breakdown only exist on the product's own page. Set `enrichProductDetails` to `true` and each saved row gains `product_info`, `shop_info`, `review_info`, `categories`, `promotion_tag`, and the whole `product_detail` record, plus the product's real `name` and `seller_id`.

It costs one extra request per product, so a 500-product run is 500 extra requests — leave it off for a first pass, then re-run with it on for the products worth the detail. A product whose detail page cannot be read keeps its listing row and is not charged for.

### How many results you get

The Actor asks for as many products as `maxItems` wants, up to 150 in a single request — several TikTok pages are merged into that one request, so a 100-result run is normally one request.

Past 150 there is no way to page further: TikTok stops handing out a way to go further. The Actor asks again instead, and what TikTok shows varies between requests — a repeat sometimes surfaces new products and sometimes repeats the last set exactly. Already-seen `product_id`s are never saved twice within a run, and the run stops once two requests in a row add nothing new. A narrow keyword can therefore return fewer products than `maxItems`, and a broad one is not fully reproducible between runs.

### Related Actors

For a single product's full detail — description, images, reviews, and category path — use the [TikTok Shop Product Scraper](https://apify.com/thenetaji/tiktok-shop-product-scraper). For every product in one category rather than a keyword match, use the [TikTok Shop Category Products Scraper](https://apify.com/thenetaji/tiktok-shop-category-products-scraper). For one seller's storefront profile or full catalog, use the [TikTok Shop Seller Info Scraper](https://apify.com/thenetaji/tiktok-shop-seller-info-scraper) or the [TikTok Shop Seller Products Scraper](https://apify.com/thenetaji/tiktok-shop-seller-products-scraper).

# Actor input Schema

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

Product keyword to search for on TikTok Shop.

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

United States only. TikTok publishes this page for its US storefront alone, so other storefronts return nothing and are not offered here.

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

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

## `enrichProductDetails` (type: `boolean`):

Add the full product page to every row — description, all variants, shop profile, a page of reviews with the star breakdown, and the category path. This makes one extra request per product.

## Actor input object example

```json
{
  "keyword": "wireless earbuds",
  "region": "US",
  "maxItems": 20,
  "enrichProductDetails": false
}
```

# Actor output Schema

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

All records scraped by this run

# 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": "wireless earbuds",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/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": "wireless earbuds",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thenetaji/tiktok-shop-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 '{
  "keyword": "wireless earbuds",
  "maxItems": 20
}' |
apify call thenetaji/tiktok-shop-search-scraper --silent --output-dataset

```

## MCP server setup

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