# TikTok Shop Scraper - Products, Prices & Sales (Cheap) (`codetr/tiktok-shop-product-scraper-cheap`) Actor

Scrape TikTok Shop US products by keyword: prices, discounts, units sold, ratings, reviews, shops and creator videos. Optional product pages add stock levels, variants, specs and reviews.

- **URL**: https://apify.com/codetr/tiktok-shop-product-scraper-cheap.md
- **Developed by:** [Yusuf Barış](https://apify.com/codetr) (community)
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 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/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 Shop Scraper - Products, Prices, Sales & Stock

Scrape **TikTok Shop US** product data by keyword: prices, discounts, **units sold**, ratings, reviews, shops and the creator videos driving sales. Turn on product details to also get **stock levels per variant**, specifications, categories, shipping and top reviews.

No login, no cookies, no browser. Fast, low cost, and built to finish every run successfully.

### What can you do with it?

- **Find winning products**: sort any keyword by *best selling* and see what actually moves on TikTok Shop right now.
- **Track prices and discounts**: schedule runs and compare price, discount and flash-sale labels over time.
- **Estimate demand**: units sold, review counts and creator video views show which products are taking off.
- **Research competitors**: see every shop selling in a niche with its followers, rating and total sales.
- **Check stock levels**: per-variant stock helps you spot supply gaps and sell-out risks.
- **Feed your own tools**: push clean JSON into a database, spreadsheet, BI dashboard, or an AI agent.

Popular with dropshippers, Amazon and Shopify sellers, cross-border e-commerce teams, agencies, brand-monitoring tools and analysts in the US, Europe and Asia.

### Features

| Feature | Details |
|---|---|
| Keyword search | Any common product term, one per line. Close matches are found automatically when an exact phrase has no TikTok page. |
| Depth | Typically 100-250 products per keyword. Add *related keywords* to go much wider. |
| Best sellers first | Sort by units sold, price, rating or review count across everything reachable for the keyword. |
| Filters | Minimum/maximum price, minimum units sold, minimum rating. |
| Product details (optional) | Description, category path, all images, specifications, variants, per-variant price and **stock**, shipping, shop statistics, top reviews. |
| Single products | Paste a product page URL to get full details for that product. |
| Deduplication | Each product is returned once, even when several keywords find it. |
| Reliable | Automatic retries with fresh IPs. The run always ends successfully and saves everything it collected. |

### Input

| Field | Type | Description |
|---|---|---|
| `searchQueries` | array | Product keywords, e.g. `lip gloss`, `phone case`, `air fryer`. |
| `startUrls` | array | Optional TikTok Shop keyword pages (`https://shop.tiktok.com/us/k/phone-case`) or product pages (`.../pdp/.../1729407202568147235`). |
| `maxResultsPerQuery` | integer | Products per keyword. Default `100`. |
| `maxItems` | integer | Total products across all keywords. Default `1000`. |
| `expandRelatedKeywords` | boolean | Also scrape TikTok's related searches to reach more products. |
| `maxRelatedKeywords` | integer | Related keywords to add for each of your keywords. Default `5`. |
| `scrapeProductDetails` | boolean | Open each product page for stock, variants, specs, shipping, shop stats and reviews. |
| `sortBy` | string | `relevance`, `soldDesc`, `priceAsc`, `priceDesc`, `ratingDesc`, `reviewsDesc`. |
| `minPrice`, `maxPrice` | number | Price range in USD. |
| `minSoldCount` | integer | Minimum units sold. |
| `minRating` | number | Minimum rating (0-5). |
| `deduplicate` | boolean | Return each product once. Default `true`. |

#### Example input

```json
{
  "searchQueries": ["lip gloss", "wireless earbuds"],
  "maxResultsPerQuery": 100,
  "sortBy": "soldDesc",
  "minRating": 4,
  "scrapeProductDetails": false
}
```

### Output

Each product is one dataset item. Download it as **JSON, CSV, Excel, XML or HTML**, or read it through the API.

```json
{
  "productId": "1732388535932916327",
  "title": "6-Count Cosmetic Moisturizing Lip Oil & Lipgloss Set - Daily Glossy Lip Treatment",
  "url": "https://shop.tiktok.com/us/pdp/moisturizing-clear-lip-gloss-set-6-count-student-friendly/1732388535932916327",
  "imageUrl": "https://p16-oec-general-useast5.ttcdn-us.com/...webp",
  "price": 12.99,
  "originalPrice": 20.99,
  "discountPercent": 38,
  "currency": "USD",
  "soldCount": 82,
  "rating": 4.8,
  "reviewCount": 25,
  "brand": null,
  "shopId": "7494591973747295847",
  "shopName": "Kore Mart US",
  "promotionLabels": ["Limited time deal", "Free shipping"],
  "skus": [{ "skuId": "1732388538776523367", "price": 12.99 }],
  "video": null,
  "position": 1,
  "searchQuery": "lip gloss",
  "market": "US",
  "scrapedAt": "2026-10-13T09:26:17Z"
}
```

#### Core fields (always included)

| Field | Description |
|---|---|
| `productId`, `title`, `url`, `imageUrl` | Identity and links. |
| `price`, `originalPrice`, `discountPercent`, `currency` | Current price, price before discount, discount in percent. |
| `soldCount`, `rating`, `reviewCount` | Sales and review signals. |
| `brand`, `shopId`, `shopName`, `shopLogoUrl` | Brand and seller. |
| `promotionLabels` | Badges such as *Flash sale*, *Free shipping*, *Limited time deal*. |
| `skus` | Variants with price. |
| `video` | Linked creator video: id, views, likes, duration, publish date, cover (when available). |
| `position`, `searchQuery`, `matchedKeyword`, `market`, `scrapedAt` | Where and when the product was found. |

#### Extra fields with `scrapeProductDetails`

| Field | Description |
|---|---|
| `description`, `categoryPath`, `categories` | Full description and category hierarchy. |
| `images`, `headerVideoUrl` | All product images and the main product video. |
| `specifications`, `variants` | Attributes (material, ingredients, size...) and options such as color. |
| `skus[].stock`, `totalStock`, `inStock` | **Stock per variant** and totals. |
| `shipping` | Shipping fee, free-shipping threshold, delivery estimate, ships-from. |
| `shopUrl`, `shopFollowers`, `shopRating`, `shopSoldCount`, `shopProductCount` | Shop statistics. |
| `topReviews`, `totalReviewCount` | Most relevant reviews with rating, text, variant, photos and date (reviewer identities are not collected). |
| `detailsScraped` | `true` when the product page was read successfully. |

The run also stores a `RUN_SUMMARY` record with results per keyword, request counts and download size.

### How to use

1. Open the Actor and enter one or more **search keywords** (with no input at all, the Actor runs a 30-product demo search).
2. Choose how many products you want, and optionally sort and filter.
3. Click **Start**. A 100-product keyword usually finishes in well under a minute.
4. Open the **Products overview** tab or export the dataset.

#### Run it from code

**JavaScript**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('codetr/tiktok-shop-product-scraper-cheap').call({
  searchQueries: ['air fryer'],
  maxResultsPerQuery: 100,
  sortBy: 'soldDesc',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.slice(0, 5));
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient('YOUR_APIFY_TOKEN')
run = client.actor('codetr/tiktok-shop-product-scraper-cheap').call(run_input={
    'searchQueries': ['air fryer'],
    'maxResultsPerQuery': 100,
    'sortBy': 'soldDesc',
})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item['title'], item['price'], item['soldCount'])
```

**cURL**

```bash
curl -X POST "https://api.apify.com/v2/acts/codetr~tiktok-shop-product-scraper-cheap/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries":["air fryer"],"maxResultsPerQuery":50}'
```

You can also schedule runs, send results to Google Sheets, Make, Zapier or n8n, call the Actor from an AI agent through the Apify MCP server, and connect webhooks.

### Pricing

The Actor uses **pay per event**: you pay for each product returned. Product detail pages are billed as a separate small event, and only when `scrapeProductDetails` is enabled. Current rates are shown on the Actor's pricing tab. Set *maximum cost per run* in the run options to cap your spend; the Actor stops cleanly when the limit is reached.

### Tips and limits

- **Marketplace**: data comes from the **TikTok Shop United States** marketplace; prices are in USD.
- **Depth per keyword**: TikTok exposes roughly 100-250 products for a keyword. To cover a whole niche, use several keywords or enable *related keywords*.
- **Best keywords**: use common product terms. Very specific or unusual phrases may have no TikTok Shop page. The Actor then tries TikTok's own suggestions and logs a clear message if nothing is found.
- **Sorting** is applied to everything reachable for each keyword (up to about 300 products), so *Best selling first* returns real top sellers.
- **Units sold** is the figure TikTok Shop displays for the product at scraping time.
- **Image links** are signed by TikTok and can expire after some time; download images you need to keep.

### FAQ

**Do I need a TikTok account or cookies?**
No. The Actor reads publicly visible TikTok Shop pages.

**Can it scrape other countries (UK, EU, Southeast Asia)?**
Not currently. The public keyword pages this Actor relies on are available for the US marketplace only.

**What happens if TikTok blocks a request?**
Requests are retried automatically from fresh IPs. If a keyword still cannot be fetched, the Actor logs it, continues with the others, and finishes successfully with everything collected so far.

**Why did I get fewer products than I asked for?**
Either the keyword has fewer products on TikTok Shop, your filters removed some, or duplicates were removed. The `RUN_SUMMARY` record shows the details per keyword.

**Does it collect personal data?**
No. Reviews are returned without reviewer names or IDs. Shop and product information is business data that TikTok Shop shows publicly.

**Is scraping legal?**
The Actor collects publicly available information. You are responsible for using the data in line with applicable laws and TikTok's terms. This Actor is not affiliated with or endorsed by TikTok or ByteDance.

### Feedback and support

Found a bug or need an extra field? Open an issue on the Actor's **Issues** tab. Fast replies, and field requests are welcome.

# Changelog

This Actor's version history is a separate document: https://apify.com/codetr/tiktok-shop-product-scraper-cheap/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

Product keywords to search on TikTok Shop, one per line. Common product terms work best (for example <code>lip gloss</code>, <code>phone case</code>, <code>air fryer</code>). If TikTok has no page for an exact phrase, the closest matching TikTok suggestion is used automatically.

## `startUrls` (type: `array`):

Optional. Keyword pages (<code>https://shop.tiktok.com/us/k/phone-case</code>) are scraped like a search. Product pages (<code>https://shop.tiktok.com/us/pdp/.../1729407202568147235</code>) return full product details for that single product.

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

Maximum number of products to return for each keyword or keyword URL. TikTok exposes roughly 100-250 products per keyword; use related keywords below to go wider.

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

Hard limit on the total number of products across all keywords. The run stops cleanly once it is reached.

## `expandRelatedKeywords` (type: `boolean`):

Follow TikTok's own 'related searches' for each keyword to reach more products (for example <code>lip gloss</code> also covers <code>lip oil</code> and <code>lip glaze</code>). Duplicate products are removed.

## `maxRelatedKeywords` (type: `integer`):

How many related keywords to add for each of your keywords when related keywords are enabled. The total is still limited by <b>Max products in total</b>.

## `scrapeProductDetails` (type: `boolean`):

Adds description, category path, all images, specifications, variants, per-variant price and <b>stock</b>, shipping, shop statistics (followers, rating, sales) and top reviews. Billed as an extra event per enriched product.

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

Order of the results per keyword. Sorting is applied to everything reachable for the keyword (up to about 300 products), so <code>Best selling first</code> returns the real top sellers rather than only the first page.

## `minPrice` (type: `number`):

Skip products cheaper than this price.

## `maxPrice` (type: `number`):

Skip products more expensive than this price.

## `minSoldCount` (type: `integer`):

Only return products that have sold at least this many units.

## `minRating` (type: `number`):

Only return products rated at least this value (0-5). Products without a rating are skipped when this is set.

## `deduplicate` (type: `boolean`):

Return each product only once even when several keywords find it.

## Actor input object example

```json
{
  "searchQueries": [
    "wireless earbuds",
    "yoga pants"
  ],
  "startUrls": [
    {
      "url": "https://shop.tiktok.com/us/k/air-fryer"
    }
  ],
  "maxResultsPerQuery": 30,
  "maxItems": 1000,
  "expandRelatedKeywords": false,
  "maxRelatedKeywords": 5,
  "scrapeProductDetails": false,
  "sortBy": "relevance",
  "deduplicate": true
}
```

# Actor output Schema

## `products` (type: `string`):

All scraped products.

## `runSummary` (type: `string`):

Per-keyword results, request counts and download size.

# 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 = {
    "searchQueries": [
        "lip gloss"
    ],
    "startUrls": [],
    "maxResultsPerQuery": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("codetr/tiktok-shop-product-scraper-cheap").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 = {
    "searchQueries": ["lip gloss"],
    "startUrls": [],
    "maxResultsPerQuery": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("codetr/tiktok-shop-product-scraper-cheap").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 '{
  "searchQueries": [
    "lip gloss"
  ],
  "startUrls": [],
  "maxResultsPerQuery": 30
}' |
apify call codetr/tiktok-shop-product-scraper-cheap --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codetr/tiktok-shop-product-scraper-cheap"
        }
    }
}
```

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/mYzSP9E4o336127QI/builds/rab9MNeiNtmwmWCeL/openapi.json
