# TikTok Shop Scraper (`parseforge/tiktok-shop-scraper`) Actor

Scrape trending products from TikTok Shop. Get prices, ratings, sales data, discounts, seller info, promotions, and product details. Filter by section, price range, rating, and sales volume. Export to JSON, CSV, or connect via integrations. No login required.

- **URL**: https://apify.com/parseforge/tiktok-shop-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** E-commerce, Social media, Other
- **Stats:** 39 total users, 11 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

![ParseForge Banner](https://github.com/ParseForge/apify-assets/blob/ad35ccc13ddd068b9d6cba33f323962e39aed5b2/banner.jpg?raw=true)

## 🛍️ TikTok Shop Scraper

> 🚀 **Export trending TikTok Shop products in seconds.** Capture **prices, ratings, sold counts, discounts, and seller info** across seven marketplace sections. No login, no browser, no captchas.

> 🕒 **Last updated:** 2026-04-21 · **📊 25 fields** per product · **🔥 Trending products** · **💰 Prices/ratings/sales** · **🚫 No auth** required

The **TikTok Shop Scraper** pulls live product data from the TikTok Shop storefront and returns up to **25 fields per product**, including title, canonical URL, imagery, sale and original price, discount percentage, star rating, review and sold counts, seller name, and active promotion labels. Optional detail fetches add category hierarchy, total review count, seller follower count, and store-level sold and listing counts.

TikTok Shop is one of the fastest-growing social commerce platforms, with discovery driven by short-form video and creator affiliate links. This Actor exposes the same feeds that power the storefront, so you can track what is hot, what is discounted, and what is selling without reverse-engineering the app yourself.

| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| Dropshippers, social commerce analysts, brand monitoring teams, DTC merchants, affiliate marketers, product researchers, trend hunters | Winning product discovery, competitor price tracking, trend analysis, affiliate catalog building, social commerce benchmarking, seller intelligence |

---

### 📋 What the TikTok Shop Scraper does

Seven storefront feeds captured in a single run:

- 🔥 **Top Selling.** Best performers ranked by sold count.
- 📈 **Trending.** Products gaining traction right now.
- 💸 **Discounted.** Items with active price cuts.
- ⭐ **Featured.** Editorially highlighted listings.
- 🧭 **Shop Guide.** Curated discovery picks.
- ⚡ **Flash Sale.** Time-boxed lightning deals.
- 💎 **Premium Offers.** Premium product promotions.

Every record carries price, discount percentage, rating, review count, sold count, seller name and ID, promotion labels, SKU variant count, and the section it appeared in. Optional enrichment adds category breadcrumbs, full review count, shop follower count, shop product count, and global sold count.

> 💡 **Why it matters:** TikTok Shop has no public product search API and its storefront is gated behind a Chrome-only TLS fingerprint. This Actor handles the TLS handshake, residential routing, and loader-data parsing so you get clean JSON in one call.

---

### 🎬 Full Demo

_🚧 Coming soon: a 3-minute walkthrough showing how to go from sign-up to a downloaded product dataset._

---

### ⚙️ Input

<table>
<thead>
<tr><th>Input</th><th>Type</th><th>Default</th><th>Behavior</th></tr>
</thead>
<tbody>
<tr><td>maxItems</td><td>integer</td><td>10</td><td>Products to return. Free plan caps at 10, paid plan at 1,000,000.</td></tr>
<tr><td>category</td><td>string</td><td>""</td><td>Section filter: Top Selling, Trending, Discounted, Featured, Flash Sale, Premium Offers. Empty = all sections.</td></tr>
<tr><td>minPrice</td><td>number</td><td>null</td><td>Minimum sale price in USD.</td></tr>
<tr><td>maxPrice</td><td>number</td><td>null</td><td>Maximum sale price in USD.</td></tr>
<tr><td>minRating</td><td>number</td><td>null</td><td>Minimum star rating (0 to 5).</td></tr>
<tr><td>minSold</td><td>integer</td><td>null</td><td>Minimum number of units sold.</td></tr>
<tr><td>includeDetails</td><td>boolean</td><td>false</td><td>Fetch each product detail page for category hierarchy and store-level stats. Slower but richer.</td></tr>
<tr><td>proxyConfiguration</td><td>object</td><td>Apify Residential, US</td><td>US residential proxy required. Default works out of the box.</td></tr>
</tbody>
</table>

**Example: 50 trending products under $25 with a 4.5+ rating.**

```json
{
    "maxItems": 50,
    "category": "Trending",
    "maxPrice": 25,
    "minRating": 4.5
}
````

**Example: top-selling products with full store enrichment.**

```json
{
    "maxItems": 100,
    "category": "Top Selling",
    "minSold": 100,
    "includeDetails": true
}
```

> ⚠️ **Good to Know:** TikTok Shop is region-locked. The Actor uses a US residential proxy by default. Some listings may be restricted and skipped during the optional detail enrichment step (around 25 percent), which is normal behavior on TikTok Shop.

***

### 📊 Output

Each product record contains up to **25 fields**. Download the dataset as CSV, Excel, JSON, or XML.

#### 🧾 Schema

| Field | Type | Example |
|---|---|---|
| 🔗 url | string | null | `"https://shop.tiktok.com/view/product/..."` |
| 🖼️ imageUrl | string | null | `"https://p16-oec-va.ibyteimg.com/..."` |
| 🏪 shopLogoUrl | string | null | `"https://p16-oec-va.ibyteimg.com/..."` |
| 🆔 productId | string | null | `"1729382993847123456"` |
| 🏷️ title | string | null | `"Wireless Bluetooth Earbuds, Noise Cancelling"` |
| 💵 salePrice | number | null | `14.99` |
| 💴 originalPrice | number | null | `39.99` |
| 🏷️ discount | string | null | `"-62%"` |
| 💰 savings | string | null | `"$25.00 off"` |
| 💱 currency | string | `"USD"` |
| ⭐ rating | number | null | `4.7` |
| 💬 reviewCount | number | null | `12543` |
| 📦 soldCount | number | null | `45000` |
| 🏬 shopName | string | null | `"SoundWave Official"` |
| 🪪 sellerId | string | null | `"7312984750123"` |
| 🎯 promotions | string\[] | `["Hot Deal", "Free Shipping"]` |
| 🧾 skuCount | number | `3` |
| 📁 section | string | `"Top Selling"` |
| 🗂️ categories | string | null | `"Electronics > Headphones > Earbuds"` |
| 💬 totalReviews | number | null | `12543` |
| 📦 shopSoldCount | number | null | `182000` |
| 🛍️ shopProductCount | number | null | `47` |
| ⭐ shopReviewCount | number | null | `38921` |
| 👥 shopFollowers | number | null | `84500` |
| 🕒 scrapedAt | ISO 8601 | `"2026-04-21T00:00:00.000Z"` |

> The last six fields (categories through shopFollowers) are populated only when includeDetails is true.

#### 📦 Sample records

<details>
<summary><strong>🎧 Top-selling discounted earbuds</strong></summary>

```json
{
    "url": "https://shop.tiktok.com/view/product/1729382993847123456",
    "imageUrl": "https://p16-oec-va.ibyteimg.com/tos-maliva-i-o5syd03w52-us/earbuds.jpeg",
    "shopLogoUrl": "https://p16-oec-va.ibyteimg.com/tos-maliva-i-o5syd03w52-us/logo.jpeg",
    "productId": "1729382993847123456",
    "title": "Wireless Bluetooth Earbuds, Noise Cancelling",
    "salePrice": 14.99,
    "originalPrice": 39.99,
    "discount": "-62%",
    "savings": "$25.00 off",
    "currency": "USD",
    "rating": 4.7,
    "reviewCount": 12543,
    "soldCount": 45000,
    "shopName": "SoundWave Official",
    "sellerId": "7312984750123",
    "promotions": ["Hot Deal", "Free Shipping"],
    "skuCount": 3,
    "section": "Top Selling",
    "scrapedAt": "2026-04-21T00:00:00.000Z"
}
```

</details>

<details>
<summary><strong>⚡ Flash sale beauty product</strong></summary>

```json
{
    "url": "https://shop.tiktok.com/view/product/1830194857293048112",
    "imageUrl": "https://p16-oec-va.ibyteimg.com/tos-maliva-i-o5syd03w52-us/serum.jpeg",
    "shopLogoUrl": null,
    "productId": "1830194857293048112",
    "title": "Vitamin C Brightening Serum, 1oz",
    "salePrice": 8.50,
    "originalPrice": 24.00,
    "discount": "-65%",
    "savings": "$15.50 off",
    "currency": "USD",
    "rating": 4.6,
    "reviewCount": 3210,
    "soldCount": 18000,
    "shopName": "Glow Essentials",
    "sellerId": "7298476529841",
    "promotions": ["Flash Sale", "Limited Time"],
    "skuCount": 1,
    "section": "Flash Sale",
    "scrapedAt": "2026-04-21T00:00:00.000Z"
}
```

</details>

<details>
<summary><strong>🔎 Trending product with full detail enrichment</strong></summary>

```json
{
    "url": "https://shop.tiktok.com/view/product/1920384756102938475",
    "imageUrl": "https://p16-oec-va.ibyteimg.com/tos-maliva-i-o5syd03w52-us/lamp.jpeg",
    "shopLogoUrl": "https://p16-oec-va.ibyteimg.com/tos-maliva-i-o5syd03w52-us/homelogo.jpeg",
    "productId": "1920384756102938475",
    "title": "Smart LED Strip Lights, 16.4ft RGB",
    "salePrice": 12.99,
    "originalPrice": 29.99,
    "discount": "-57%",
    "savings": "$17.00 off",
    "currency": "USD",
    "rating": 4.8,
    "reviewCount": 8742,
    "soldCount": 32000,
    "shopName": "HomeGlow Store",
    "sellerId": "7401029384756",
    "promotions": ["Trending Now"],
    "skuCount": 5,
    "section": "Trending",
    "categories": "Home & Garden > Lighting > LED Strip Lights",
    "totalReviews": 8742,
    "shopSoldCount": 245000,
    "shopProductCount": 128,
    "shopReviewCount": 52300,
    "shopFollowers": 96400,
    "scrapedAt": "2026-04-21T00:00:00.000Z"
}
```

</details>

***

### ✨ Why choose this Actor

| | Capability |
|---|---|
| 🛒 | **Seven storefront feeds.** Top Selling, Trending, Discounted, Featured, Shop Guide, Flash Sale, and Premium Offers in one run. |
| 💰 | **Full pricing picture.** Sale price, original price, discount percentage, and absolute savings per product. |
| ⭐ | **Social proof metrics.** Star rating, review count, and sold count for every item. |
| 🏬 | **Seller intelligence.** Shop name, seller ID, and optional store-level stats like follower count and total sold. |
| 🎯 | **Flexible filtering.** Price range, minimum rating, minimum sold units, and section filter. |
| ⚡ | **Fast.** 10 products in under 10 seconds, 100 products in around a minute. |
| 🔒 | **No login.** Runs anonymously through residential proxy routing. No cookies, no account, no captchas. |

> 📊 TikTok Shop is a discovery-first marketplace. Watching what the algorithm surfaces is how you spot the next winning product days before it crosses over to Amazon and Shopify stores.

***

### 📈 How it compares to alternatives

| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| **⭐ TikTok Shop Scraper** *(this Actor)* | $5 free credit, then pay-per-use | **7 storefront feeds** | **Live per run** | Section, price, rating, sold | ⚡ 2 min |
| TikTok Shop Seller Center | Login required | Seller's own catalog only | Live | Limited | 🐢 Hours |
| Manual browsing | Free | One product at a time | Live | None | 🕒 Endless |
| Generic marketplace scrapers | $49+/month | Not TikTok Shop-specific | Varies | Limited | ⏳ Complex |

Pick this Actor when you need live TikTok Shop data without managing proxies, TLS fingerprints, or loader-data parsing yourself.

***

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the TikTok Shop Scraper page on the Apify Store.
3. 🎯 **Set input.** Pick a section, set price or rating filters, and choose maxItems.
4. 🚀 **Run it.** Click **Start** and let the Actor collect your data.
5. 📥 **Download.** Grab your results in the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to downloaded dataset: **3-5 minutes.** No coding required.

***

### 💼 Business use cases

<table>
<tr>
<td width="50%" valign="top">

#### 🛍️ Dropshippers & DTC Brands

- Spot winning products before they saturate
- Track discount depth across competitors
- Monitor review velocity on new launches
- Feed affiliate storefronts with fresh inventory

</td>
<td width="50%" valign="top">

#### 📊 Market Researchers

- Social commerce trend reports
- Category-level price benchmarks
- Cross-platform pricing studies (TikTok vs Amazon)
- Consumer demand signals from sold counts

</td>
</tr>
<tr>
<td width="50%" valign="top">

#### 🏢 Brands & Manufacturers

- Monitor unauthorized resellers
- Track MAP violations
- Audit promotional claims on flash sales
- Spot counterfeit listings early

</td>
<td width="50%" valign="top">

#### 💡 Affiliate Marketers & Creators

- Build affiliate catalogs around trending items
- Filter by rating and sold count for safe picks
- Rotate flash sale content daily
- Match products to audience demographics

</td>
</tr>
</table>

***

***

### 🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

<table>
<tr>
<td width="50%">

#### 🎓 Research and academia

- Empirical datasets for papers, thesis work, and coursework
- Longitudinal studies tracking changes across snapshots
- Reproducible research with cited, versioned data pulls
- Classroom exercises on data analysis and ethical scraping

</td>
<td width="50%">

#### 🎨 Personal and creative

- Side projects, portfolio demos, and indie app launches
- Data visualizations, dashboards, and infographics
- Content research for bloggers, YouTubers, and podcasters
- Hobbyist collections and personal trackers

</td>
</tr>
<tr>
<td width="50%">

#### 🤝 Non-profit and civic

- Transparency reporting and accountability projects
- Advocacy campaigns backed by public-interest data
- Community-run databases for local issues
- Investigative journalism on public records

</td>
<td width="50%">

#### 🧪 Experimentation

- Prototype AI and machine-learning pipelines with real data
- Validate product-market hypotheses before engineering spend
- Train small domain-specific models on niche corpora
- Test dashboard concepts with live input

</td>
</tr>
</table>

### 🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

- 💬 [**ChatGPT**](https://chat.openai.com/?q=How%20do%20I%20use%20the%20TikTok%20Shop%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🧠 [**Claude**](https://claude.ai/new?q=How%20do%20I%20use%20the%20TikTok%20Shop%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🔍 [**Perplexity**](https://perplexity.ai/search?q=How%20do%20I%20use%20the%20TikTok%20Shop%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🅒 [**Copilot**](https://copilot.microsoft.com/?q=How%20do%20I%20use%20the%20TikTok%20Shop%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)

### ❓ Frequently Asked Questions

<details>
<summary><b>💳 Do I need a paid Apify plan to run this actor?</b></summary>

No. You can start right now on the free Apify plan, which includes **$5 in free monthly credit**. That is enough to run this actor several times and explore the output before committing to anything. Paid plans unlock higher limits, more concurrent runs, and larger datasets. [Create a free Apify account here](https://console.apify.com/sign-up?fpr=vmoqkp) to get started.

</details>

<details>
<summary><b>🚨 What happens if my run fails or returns no results?</b></summary>

Failed runs are not charged. If the source site changes, proxies get rate-limited, or a specific input matches nothing, re-run the actor or open our [contact form](https://tally.so/r/BzdKgA) and we will investigate. You can also check the run log in the Apify console to see why the run stopped.

</details>

<details>
<summary><b>📏 How many items can I scrape per run?</b></summary>

Free users are limited to **10 items per run** so you can preview the output and confirm the actor works for your use case. Paid users can raise maxItems up to **1,000,000** per run. [Upgrade here](https://console.apify.com/sign-up?fpr=vmoqkp) if you need full scale.

</details>

<details>
<summary><b>🕒 How fresh is the data?</b></summary>

Every run fetches live data at the moment of execution. There is no cache or delay: the records you get reflect what the source returned at that moment. Schedule the actor to maintain a rolling snapshot of the data you need.

</details>

<details>
<summary><b>🧑‍💻 Can I call this actor from my own code?</b></summary>

Yes. Apify exposes every actor as a REST endpoint and ships first-class SDKs for [Node.js](https://docs.apify.com/sdk/js) and [Python](https://docs.apify.com/sdk/python). You can start a run, read the dataset, and handle webhooks from your own app in a few lines. All you need is your Apify API token.

</details>

<details>
<summary><b>📤 How do I export the data?</b></summary>

Every Apify dataset can be downloaded in one click from the console as CSV, JSON, JSONL, Excel, HTML, XML, or RSS. You can also pull results programmatically via the [Apify API](https://docs.apify.com/api/v2) or stream them into BigQuery, S3, and other destinations through built-in integrations.

</details>

<details>
<summary><b>📅 Can I schedule the actor to run automatically?</b></summary>

Yes. Use the Apify scheduler to run the actor on any cadence, from hourly to monthly. Results are saved to your dataset and can be delivered to webhooks, email, Slack, cloud storage, or automation tools such as Zapier and Make.

***

</details>

### 🔌 Automating TikTok Shop Scraper

Control the scraper programmatically for scheduled runs and pipeline integrations:

- 🟢 **Node.js.** Install the apify-client NPM package.
- 🐍 **Python.** Use the apify-client PyPI package.
- 📚 See the [Apify API documentation](https://docs.apify.com/api/v2) for full details.

The [Apify Schedules feature](https://docs.apify.com/platform/schedules) lets you trigger this Actor on any cron interval. Hourly, daily, or weekly refreshes keep your downstream catalogs in sync automatically.

### 🔌 Integrate with any app

TikTok Shop Scraper connects to any cloud service via [Apify integrations](https://apify.com/integrations):

- [**Make**](https://docs.apify.com/platform/integrations/make) - Automate multi-step workflows
- [**Zapier**](https://docs.apify.com/platform/integrations/zapier) - Connect with 5,000+ apps
- [**Slack**](https://docs.apify.com/platform/integrations/slack) - Get run notifications in your channels
- [**Airbyte**](https://docs.apify.com/platform/integrations/airbyte) - Pipe product data into your warehouse
- [**GitHub**](https://docs.apify.com/platform/integrations/github) - Trigger runs from commits and releases
- [**Google Drive**](https://docs.apify.com/platform/integrations/drive) - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes. Push trending product data into your product backend, or alert your team in Slack when a new flash sale lands.

***

### 🔗 Recommended Actors

- [**#️⃣ TikTok Hashtag Analytics Scraper**](https://apify.com/parseforge/tiktok-hashtag-analytics-scraper) - Hashtag reach, growth, and top videos
- [**👤 TikTok Profile Scraper**](https://apify.com/parseforge/tiktok-profile-scraper) - Creator profiles, followers, and post history
- [**📢 TikTok Creative Center Top Ads Scraper**](https://apify.com/parseforge/tiktok-creative-center-top-ads-scraper) - Winning ad creatives from Creative Center
- [**👜 Poshmark Scraper**](https://apify.com/parseforge/poshmark-scraper) - Resale fashion listings and prices
- [**🛒 Mercari Scraper**](https://apify.com/parseforge/mercari-scraper) - Peer-to-peer marketplace listings and sold data

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for more commerce and social scrapers.

***

**🆘 Need Help?** [**Open our contact form**](https://tally.so/r/BzdKgA) to request a new scraper, propose a custom data project, or report an issue.

***

> **⚠️ Disclaimer:** this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by TikTok, ByteDance, or TikTok Shop. All trademarks mentioned are the property of their respective owners. Only publicly available product listing data is collected.

# Actor input Schema

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

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

## `category` (type: `string`):

Filter by shop section. Leave empty for all sections.

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

Minimum sale price in USD.

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

Maximum sale price in USD.

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

Minimum product rating (0-5).

## `minSold` (type: `integer`):

Minimum number of units sold.

## `includeDetails` (type: `boolean`):

Fetch each product's detail page for category hierarchy, total reviews, and seller store stats (followers, product count, total sold). Slower but more data. Note: approximately 75% of products will be enriched - some products are restricted by TikTok.

## `proxyConfiguration` (type: `object`):

US residential proxy required for TikTok Shop access.

## Actor input object example

```json
{
  "maxItems": 10,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Dataset with all scraped items

# 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 = {
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/tiktok-shop-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 = {
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/tiktok-shop-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 '{
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call parseforge/tiktok-shop-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok Shop Scraper",
        "description": "Scrape trending products from TikTok Shop. Get prices, ratings, sales data, discounts, seller info, promotions, and product details. Filter by section, price range, rating, and sales volume. Export to JSON, CSV, or connect via integrations. No login required.",
        "version": "1.0",
        "x-build-id": "Hjwy42GcfsaaHNlX2"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parseforge~tiktok-shop-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parseforge-tiktok-shop-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/parseforge~tiktok-shop-scraper/runs": {
            "post": {
                "operationId": "runs-sync-parseforge-tiktok-shop-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/parseforge~tiktok-shop-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-parseforge-tiktok-shop-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
                    },
                    "category": {
                        "title": "Product Section",
                        "enum": [
                            "",
                            "Top Selling",
                            "Trending",
                            "Discounted",
                            "Featured",
                            "Flash Sale",
                            "Premium Offers"
                        ],
                        "type": "string",
                        "description": "Filter by shop section. Leave empty for all sections."
                    },
                    "minPrice": {
                        "title": "Min Price ($)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Minimum sale price in USD."
                    },
                    "maxPrice": {
                        "title": "Max Price ($)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Maximum sale price in USD."
                    },
                    "minRating": {
                        "title": "Min Rating",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "number",
                        "description": "Minimum product rating (0-5)."
                    },
                    "minSold": {
                        "title": "Min Units Sold",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum number of units sold."
                    },
                    "includeDetails": {
                        "title": "Include Product Details",
                        "type": "boolean",
                        "description": "Fetch each product's detail page for category hierarchy, total reviews, and seller store stats (followers, product count, total sold). Slower but more data. Note: approximately 75% of products will be enriched - some products are restricted by TikTok.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "US residential proxy required for TikTok Shop access."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
