# Tiktok Shop Search Scraper ✅ (`pratikdani/tiktok-shop-search-scraper`) Actor

This actor scrapes TikTok Shop search results for detailed product data, including titles, prices, sellers, ratings, descriptions, and media URLs. It's designed for market research, competitor analysis, trend spotting, and e-commerce strategy optimization.

- **URL**: https://apify.com/pratikdani/tiktok-shop-search-scraper.md
- **Developed by:** [Pratik Dani](https://apify.com/pratikdani) (community)
- **Categories:** Social media, Videos, E-commerce
- **Features:** Limited permissions
- **Stats:** 2,674 total users, 201 monthly users, 100.0% runs succeeded, 33 bookmarks
- **User rating**: 3.37 out of 5 stars

## Pricing

from $9.00 / 1,000 per 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 Search Data Scraper

This web scraping actor is designed to efficiently and systematically extract detailed product listing data from TikTok Shop's search results. It collects crucial information such as product titles, prices, seller names, ratings, review counts, product descriptions, image URLs, video URLs, and potentially unique product identifiers or URLs. This comprehensive data is invaluable for a range of applications, including market research, competitive analysis, identifying trending products and profitable niches, monitoring competitor pricing and promotions, sourcing new suppliers, and informing product development strategies. By providing access to granular insights from the TikTok Shop ecosystem, this actor empowers businesses to make data-driven decisions, optimize their e-commerce strategies, and gain a significant competitive advantage in the rapidly evolving social commerce landscape.

### Features

- **Product Catalog Extraction:** Retrieves detailed information on all products listed in TikTok Shop search results, enabling comprehensive market analysis and competitor product discovery.
- **Pricing and Discount Intelligence:** Captures real-time pricing, sale prices, and discount percentages, allowing for competitive pricing strategies and identification of profitable product opportunities.
- **Seller Performance Metrics:** Gathers data on seller ratings, review counts, and fulfillment status, aiding in identifying reputable suppliers and high-quality products.
- **Trend Identification:** Analyzes search result order and product popularity to identify trending items and emerging consumer demands within specific niches.
- **Content and Keyword Analysis:** Extracts product titles, descriptions, and associated keywords, providing insights into effective marketing language and search optimization strategies.
- **Inventory and Availability Monitoring:** Tracks product stock levels and availability, crucial for proactive inventory management and avoiding stock-outs for businesses sourcing products.

### Output Fields

| Field Name | Type | Description |
|---|---|---|
| biz_type | boolean | Indicates if the business type is relevant (often indicates if it's a shop listing or other content). |
| category1 | string | The primary category of the product. |
| category2 | string | The secondary category of the product. |
| category3 | string | The tertiary category of the product. |
| comment_rate | float | The rate of comments for the product. |
| commission_rate | string | The commission rate for selling the product. |
| country_code | string | The country code where the product is listed. |
| currency | string | The currency used for pricing. |
| export | boolean | Indicates if the product is eligible for export. |
| first_time | integer | Timestamp of when the product was first listed or recorded. |
| free_shipping | boolean | Indicates if the product offers free shipping. |
| id | string | Unique identifier for the product. |
| images_privatization | array of strings | A list of private image URLs for the product. |
| last_time | string | The last time the product information was updated (human-readable format). |
| last_time_stamp | integer | The last time the product information was updated (Unix timestamp). |
| like | boolean | Indicates if the product is liked or favored. |
| max_price | float | The maximum price of the product. |
| min_price | float | The minimum price of the product. |
| monitor | boolean | Indicates if the product is being monitored. |
| price | string | The price of the product, including currency symbol. |
| price_usd | string | The price of the product in USD, including currency symbol. |
| product_rating | float | The average rating of the product. |
| product_status | boolean | Indicates if the product is currently available or active. |
| rank | integer | The rank of the product in search results or a specific list. |
| related_author | integer | Identifier for related authors or sellers. |
| related_videos | integer | Identifier for related videos. |
| sale_props | array of objects | An array of sale properties for the product, including their values. |
| seller_avatar_privatization | string | Private URL for the seller's avatar. |
| seller_id | string | Unique identifier for the seller. |
| seller_name | string | The name of the seller. |
| ship_from | string | The location from which the product is shipped. |
| shop | object | An object containing details about the shop. |
| shop.shop_id | string | Unique identifier for the shop. |
| shop.shop_logo_privatization | string | Private URL for the shop's logo. |
| shop.shop_name | string | The name of the shop. |
| shop.shop_status | boolean | Indicates if the shop is active. |
| skus | array of objects | An array of stock keeping units (SKUs) for the product. |
| skus.currency | string | The currency for the SKU price. |
| skus.price | float | The price of the SKU. |
| skus.price_str | string | The price of the SKU, as a string with currency symbol. |
| skus.price_usd_str | string | The price of the SKU in USD, as a string with currency symbol. |
| skus.sku_id | string | Unique identifier for the SKU. |
| skus.sku_sale_props | array of strings | Sale properties associated with the SKU. |
| skus.stock | integer | The stock quantity for the SKU. |
| sold_count | integer | The total number of units sold. |
| sold_count_str | string | The total number of units sold, formatted as a string. |
| stock | integer | The total stock available for the product. |
| title | string | The title or name of the product. |
| total_sales | string | The total sales value of the product. |
| total_sales_usd | string | The total sales value of the product in USD. |
| user_id | string | Unique identifier for the user associated with the product or listing. |
| week_sales | string | The sales value of the product in the last week. |
| week_sales_usd | string | The sales value of the product in USD in the last week. |
| week_sold_count | integer | The number of units sold in the last week. |
| week_sold_count_str | string | The number of units sold in the last week, formatted as a string. |

### Possible Usage of the Actor

- **Competitor Product Pricing Analysis:** Monitor competitor product prices in real-time to inform dynamic pricing strategies and identify pricing gaps.
- **Trend Identification and Forecasting:** Analyze trending keywords, product categories, and search volumes to predict emerging consumer demands and popular product niches.
- **Product Sourcing and Discovery:** Identify high-demand, underserved, or newly popular products to inform sourcing decisions for e-commerce businesses or dropshippers.
- **Influencer Marketing Campaign Optimization:** Discover popular products promoted by influencers and analyze their search performance to inform outreach and campaign strategy.
- **Keyword Strategy Development for Product Listings:** Understand the exact search terms customers use to find products, enabling optimization of product titles, descriptions, and tags for better organic visibility.
- **Market Gap Identification for New Product Development:** Uncover niche product categories with significant search interest but limited competitive offerings, guiding innovation and new product launches.

### Example Output

```json
{
  "biz_type": false,
  "category1": "Beauty & Personal Care",
  "category2": "Nasal & Oral Care",
  "category3": "Teeth Whitening\t",
  "comment_rate": 0.0163,
  "commission_rate": "10.00%",
  "country_code": "US",
  "currency": "USD",
  "export": false,
  "first_time": 1691657326843,
  "free_shipping": true,
  "id": "1729388303591248135",
  "images_privatization": [
    "fd05c016-dac1-4093-999b-1ef3b4509243-20241006.jpeg"
  ],
  "last_time": "2025-10-01 04:05:14",
  "last_time_stamp": 1759291514978,
  "like": false,
  "max_price": 8.99,
  "min_price": 8.99,
  "monitor": false,
  "price": "$8.99",
  "price_usd": "$8.99",
  "product_rating": 4.5,
  "product_status": true,
  "rank": 1,
  "related_author": 1175,
  "related_videos": 1871,
  "sale_props": [
    {
      "has_image": false,
      "prop_name": "Specification",
      "sale_prop_values": [
        {
          "image": "",
          "prop_value": "Default"
        }
      ]
    }
  ],
  "seller_avatar_privatization": "154a3805-511d-4ec4-b770-43efcad17c5b-20240911.jpeg",
  "seller_id": "7495134783373216007",
  "seller_name": "GuruNanda LLC",
  "ship_from": "local",
  "shop": {
    "shop_id": "7495134783373216007",
    "shop_logo_privatization": "shop/bfb1bc96-aad6-4176-9d5d-b13d63dd1fb9-20250115.jpeg",
    "shop_name": "GuruNanda LLC",
    "shop_status": true
  },
  "skus": [
    {
      "currency": "USD",
      "price": 9.99,
      "price_str": "$9.99",
      "price_usd_str": "$9.99",
      "sku_id": "1729388303591313671",
      "sku_sale_props": [
        "Default"
      ],
      "stock": 47361
    }
  ],
  "sold_count": 943022,
  "sold_count_str": "943.0K",
  "stock": 0,
  "title": "GuruNanda Whitening Strips, 7-day treatment (7 Packets - 2 Strips per pack)- Enamel-Safe Strips for Sensitive Teeth - Non-Slip, Dry Strip Technology",
  "total_sales": "$8.48M",
  "total_sales_usd": "$8.48M",
  "user_id": "6701900129672332293",
  "week_sales": "$267.24K",
  "week_sales_usd": "$267.24K",
  "week_sold_count": 29726,
  "week_sold_count_str": "29.7K"
}
```

# Actor input Schema

## `country_code` (type: `string`):

🌐 Target country

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

Search Products By Keyword

## `limit` (type: `integer`):

Number of products

## `page` (type: `integer`):

Page

## Actor input object example

```json
{
  "country_code": "US",
  "limit": 10,
  "page": 1
}
```

# 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 = {
    "country_code": "US",
    "limit": 10,
    "page": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pratikdani/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 = {
    "country_code": "US",
    "limit": 10,
    "page": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pratikdani/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 '{
  "country_code": "US",
  "limit": 10,
  "page": 1
}' |
apify call pratikdani/tiktok-shop-search-scraper --silent --output-dataset

```

## MCP server setup

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