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

$1.65/1000 results. Scrape TikTok Shop (US) search results by keyword: price, original price, discount, units sold, rating, reviews, shop, brand and free-shipping flag. No login.

- **URL**: https://apify.com/riseandcode/tiktok-shop-search-scraper.md
- **Developed by:** [Rise and Code](https://apify.com/riseandcode) (community)
- **Categories:** E-commerce, Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 product scrapeds

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

### What does this TikTok Shop search scraper do?

This Actor extracts product data from [TikTok Shop](https://shop.tiktok.com/us) search results in the **United States**. Type a keyword and get back clean JSON for every product: **title, price, original price, discount, units sold, star rating, number of reviews, shop name, seller ID, brand, free-shipping flag, promotion labels and image**.

It returns **about 30–50 unique products per keyword**, with no browser, no login and no API key.

### Why scrape TikTok Shop search results?

- 🔥 **Product research** — find trending products for a niche by **units sold** and reviews, before you source or promote them.
- 💸 **Price & deal monitoring** — track prices, discounts and "Flash sale" / "Limited time deal" labels for your keywords over time.
- 🏷️ **Competitor tracking** — see which shops and brands rank for the keywords you sell under, and how their prices move.
- 🤝 **Affiliate & creator research** — shortlist best-selling products to promote on TikTok.
- 🤖 **Automation** — schedule runs and push results to Google Sheets, a database or a dashboard with Apify integrations, or call it from your own code through the API.

#### Why an Actor instead of doing it yourself?

TikTok Shop has no public product-search API, and its search pages are built for one shopper scrolling in a browser. This Actor collects the products TikTok Shop serves for each keyword, removes duplicates and hands you a ready-to-use dataset.

### How to use this TikTok Shop search scraper

1. Open the Actor and click **Try for free**.
2. Type one or more **search terms** (e.g. `water bottle`, `lip gloss`).
3. Set **Max products per search** (default 30).
4. Click **Start**, then open the **Output** tab or download the dataset as **JSON, CSV, Excel or HTML**.

Run it through the Apify API:

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/riseandcode~tiktok-shop-search-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "searchTerms": ["water bottle"],
    "maxItems": 30
  }'
```

### Input

| Field | What it does |
|---|---|
| `searchTerms` | Keywords, one search each, as you would type them in the TikTok Shop search box. |
| `maxItems` | Products to collect per search term (default 30, max 100). |

#### How many products per keyword?

TikTok Shop serves a limited result set per keyword on the web. The Actor gathers every unique product it shows for the keyword — measured **32–50 per keyword, 42 on average** across 10 popular keywords (e.g. 50 for `led strip lights`, 45 for `lip gloss`, 34 for `yoga mat`). Products come in the order TikTok Shop ranks them, and the same product is never delivered twice for one search. If you ask for more than a keyword has, you get what it has and pay only for that.

### Output

Each product is one dataset item. You can download the dataset in various formats such as JSON, CSV, Excel or HTML, or read it through the API.

#### Output example

```json
{
  "productId": "1731732382275506788",
  "title": "Lip Glaze- 3-in-1 Balm + Oil + Gloss - Nourishing Lipgloss - Shine & Hydration",
  "url": "https://shop.tiktok.com/us/pdp/lip-glaze-3-in-1-balm-oil-gloss-hydrating-plumping/1731732382275506788",
  "price": 12.99,
  "originalPrice": 20.99,
  "discountPercent": 38,
  "currency": "USD",
  "rating": 4.5,
  "reviewCount": 2161,
  "soldCount": 11469,
  "shopName": "Sonetto",
  "sellerId": "7494105241765906020",
  "brand": null,
  "freeShipping": true,
  "labels": ["Flash sale", "Fall Deals", "Free shipping"],
  "imageUrl": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/6c854c5f857b4e4693bc8c8d293564ba~tplv-fhlh96nyum-crop-webp:800:800.webp",
  "position": 1,
  "searchTerm": "lip gloss",
  "scrapedAt": "2026-10-12T18:58:38.189Z"
}
```

### Output fields

| Field | Description |
|---|---|
| `productId` | TikTok Shop product ID. |
| `title` | Product title. |
| `url` | Product page URL on TikTok Shop. |
| `price` | Current price (lowest variant), in `currency`. |
| `originalPrice` | Price before discount; `null` when the product is not discounted. |
| `discountPercent` | Discount shown by TikTok Shop; `null` when there is none. |
| `currency` | ISO currency code of the prices (`USD`). |
| `rating` | Star rating (0–5); `null` when nobody has rated the product yet. |
| `reviewCount` | Number of reviews. |
| `soldCount` | Units sold, as reported by TikTok Shop. |
| `shopName` / `sellerId` | The shop selling the product and its seller ID. |
| `brand` | Brand name, when the seller set one; otherwise `null`. |
| `freeShipping` | The product has a free-shipping label. |
| `labels` | Promotion and shipping labels shown on the card ("Free shipping", "Flash sale", "Limited time deal"…). |
| `imageUrl` | Main product image. |
| `position` | Rank of the product within its search (1, 2, 3… without gaps). |
| `searchTerm` | The keyword that produced the product. |
| `scrapedAt` | When the product was collected (ISO 8601). |

### How much does it cost to scrape TikTok Shop?

This Actor uses **pay-per-event** pricing — you pay only for the products you get:

| Apify plan | Per 1,000 products | Per run start |
|---|---|---|
| Free | **$1.65** | $0.015 |
| Starter (Bronze) | **$1.60** | $0.015 |
| Scale (Silver) | **$1.55** | $0.015 |
| Business (Gold) and up | **$1.50** | $0.015 |

For example, 100 keywords × 30 products = 3,000 products cost **$4.52–$4.97** depending on your plan; one keyword with 30 products costs about **$0.06**.

The run start is charged once per run (once per GB of memory if you raise the memory above the default).

Products missing a required field and duplicates are never charged.

#### Tips to keep costs low

- Set **Max products per search** to what you actually need.
- Put all your keywords in one run instead of one run per keyword.
- Use **Maximum cost per run** in the run options to cap what a single run can spend.

### FAQ

#### Is it legal to scrape TikTok Shop?

This Actor collects only publicly available product information that any visitor can see, without logging in. You are responsible for how you use the data — check TikTok's terms of service and the laws that apply to you, and consult a lawyer if unsure.

#### Do I need a TikTok account or API key?

No. Just run the Actor.

#### Which countries are supported?

The **United States** store. TikTok Shop's other web stores (including Brazil) only show their products to logged-in shoppers, so they can't be collected anonymously.

#### Why do I get fewer products than I asked for?

TikTok Shop shows a limited set of products per keyword on the web — typically 30–50. Very narrow keywords can have fewer. You pay only for the products delivered.

#### Some fields come back as `null` — is that expected?

Yes, when TikTok Shop doesn't show them for that product: `originalPrice`/`discountPercent` for products without a discount, `rating` for products nobody has rated yet, `brand` for products without a brand.

#### What's the ideal timeout?

Keywords run in parallel: one keyword takes about 30–60 seconds, and 10 keywords with up to 50 products each took 2 minutes. The default timeout (1 hour) is plenty for a few hundred keywords; if you set your own, allow about 15 seconds per keyword plus a couple of minutes of margin.

#### A search returned nothing — what can I do?

Requests TikTok Shop declines to answer are retried automatically. If a keyword still comes back empty, run it again.

#### Can I schedule it?

Yes — use Apify **Schedules** to run it daily and track prices, discounts and units sold over time, and **Integrations** to send results to Google Sheets, Slack, a webhook and more.

### Looking for something else on TikTok Shop?

- [TikTok Shop Product Details Scraper](https://apify.com/riseandcode/tiktok-shop-product-details-scraper) — paste the `productId` or `url` values from this Actor to get **stock per color/size**, price per variant, shipping fees and delivery days, and the seller's registered business name and address.

### Changelog

- **2026-11-09** — Fixed a rare delay of several minutes at the start of a run.
- **2026-10-12** — First release: TikTok Shop US search by keyword, with price, discount, units sold, rating, reviews, shop, brand and labels.

### Support

If you encounter a bug or have a suggestion for this Actor or a new one, reach out via the **Issues** tab or at <contact.riseandcode@gmail.com>. We respond in English 🇺🇸 and Portuguese 🇧🇷.

# Actor input Schema

## `searchTerms` (type: `array`):

What you would type in the TikTok Shop search box — one search per line. Each term is searched separately in the US store and returns up to "Max products per search".

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

How many products to collect for each search term. TikTok Shop shows a limited set of results per keyword on the web — a search usually yields about 30–50 unique products, so higher values only help for broad terms.

## Actor input object example

```json
{
  "searchTerms": [
    "water bottle",
    "lip gloss"
  ],
  "maxItems": 30
}
```

# Actor output Schema

## `results` (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 = {
    "searchTerms": [
        "water bottle"
    ],
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("riseandcode/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 = {
    "searchTerms": ["water bottle"],
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("riseandcode/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 '{
  "searchTerms": [
    "water bottle"
  ],
  "maxItems": 30
}' |
apify call riseandcode/tiktok-shop-search-scraper --silent --output-dataset

```

## MCP server setup

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