# TikTok Shop Product Details + Colour Swatches (`stainless_barite/tiktok-shop-product-details`) Actor

Full TikTok Shop US product data: gallery, options with one image per colour value, every SKU with its swatch and stock, lifetime sold count. Pay per product.

- **URL**: https://apify.com/stainless\_barite/tiktok-shop-product-details.md
- **Developed by:** [Simoki](https://apify.com/stainless_barite) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Product Details + Colour Swatches

Full product data for **TikTok Shop US** listings, including the one field other scrapers leave empty: **a swatch image for every colour value**, attached to every SKU.

Give it product URLs or ids. Get back the gallery, the option tree, every SKU with its own image and stock status, the lifetime sold count and the seller.

### What you get per product

```json
{
  "productId": "1731406217255686451",
  "url": "https://shop.tiktok.com/view/product/1731406217255686451",
  "title": "OEAK Women Jelly Bras Wirefree Full Coverage …",
  "description": "…",
  "soldCount": 882675,
  "images": ["https://p16-oec-general-useast8.ttcdn-us.com/…", "…"],
  "mainImage": "https://p16-oec-general-useast8.ttcdn-us.com/…",
  "options": [
    { "id": "100000", "name": "Color", "hasImages": true,
      "values": [ { "id": "7026545190341216005", "name": "Dark Nude", "image": "https://p16-oec-general-useast5.ttcdn-us.com/…" }, "…" ] },
    { "id": "100007", "name": "Size", "hasImages": false,
      "values": [ { "id": "1003579", "name": "S", "image": null }, "…" ] }
  ],
  "swatchCount": 25,
  "skus": [
    { "skuId": "1731936062929015091", "skuName": "E1110587", "active": true,
      "options": { "Color": "Dark Nude", "Size": "S" },
      "image": "https://p16-oec-general-useast5.ttcdn-us.com/…",
      "availableQuantity": 91, "inStock": true }
  ],
  "skuCount": 200,
  "activeSkuCount": 162,
  "seller": { "id": "7495342967492151603", "name": "OEAK Apparel" },
  "scrapedAt": "2026-09-19T02:40:11.000Z"
}
```

- `options[].values[].image` is the swatch for that value. Colour options carry one per value; size-type options carry `null`.
- `skus[].image` is the swatch of the SKU's colour value, so every variant can be shown with its own picture.
- Image URLs are TikTok CDN links and load without authentication.
- A product that no longer exists comes back as `{ "productId": "…", "error": "not_found" }`, so your ids stay accounted for. These are free.

### Input

| field | meaning |
|---|---|
| `products` | TikTok Shop product URLs or 18–19 digit product ids. Duplicates are collapsed. |
| `paceMs` | Delay between products, default `5000`. Leave it unless you have a reason. |
| `maxItems` | Stop after N products (`0` = all). |
| `includeInactiveSkus` | Keep SKUs TikTok marks inactive (flagged `active: false`). Default on. |

### Speed and rate limits

The default pace of one product every 5 seconds is the tested safe setting, about 700 products an hour. Faster settings tend to trigger TikTok rate limiting, which only makes the run slower: on the first hit the run pauses for 90 seconds and retries; on a second hit it stops cleanly with everything collected so far and marks the remaining ids `error: "rate_limited"`. Re-run those later.

For large lists, run them as they are. There is no benefit to splitting them into parallel runs.

### Scope

- **US market only.** Products listed in other TikTok Shop regions are out of scope.
- **No price.** TikTok does not expose a stable public price for most listings; pair with a search-based actor if you need one.
- **Lifetime sold only.** `soldCount` is TikTok's cumulative figure. Sales over a time window come from comparing two runs a few days apart.

### Pricing

Pay per product returned. Products that were not found or could not be read are not charged.

### Output views

The dataset has two ready-made views in the console: **Overview** (one row per product with image, sold count, swatch and SKU counts, seller) and **SKUs** (one row per variant with its swatch image, options and stock). The run's key-value store holds a `SUMMARY` record with the counts for the run.

# Actor input Schema

## `products` (type: `array`):

TikTok Shop product URLs (shop.tiktok.com/view/product/… or tiktok.com/view/product/…) or bare 18–19 digit product ids. US market only.

## `paceMs` (type: `integer`):

Delay between products. 5000 ms is the tested safe setting (~700 products/hour). Lower values tend to trigger TikTok rate limiting, which pauses the run and makes it slower overall.

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

Stop after this many products (0 = all).

## `includeInactiveSkus` (type: `boolean`):

Keep SKUs TikTok marks inactive in the output. They are flagged with active=false either way.

## Actor input object example

```json
{
  "products": [
    "https://shop.tiktok.com/view/product/1731406217255686451",
    "1731610554383569260"
  ],
  "paceMs": 5000,
  "maxItems": 0,
  "includeInactiveSkus": true
}
```

# Actor output Schema

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

Dataset with one item per requested product: gallery, options with per-colour swatch images, every SKU with stock, lifetime sold count. Unreadable products carry an `error` field.

## `summary` (type: `string`):

Counts for the run (requested, returned, not found, rate limits, charge cap reached).

# 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 = {
    "products": [
        "https://shop.tiktok.com/view/product/1731406217255686451",
        "1731610554383569260"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("stainless_barite/tiktok-shop-product-details").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 = { "products": [
        "https://shop.tiktok.com/view/product/1731406217255686451",
        "1731610554383569260",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("stainless_barite/tiktok-shop-product-details").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 '{
  "products": [
    "https://shop.tiktok.com/view/product/1731406217255686451",
    "1731610554383569260"
  ]
}' |
apify call stainless_barite/tiktok-shop-product-details --silent --output-dataset

```

## MCP server setup

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

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/0nA2aYcKltTcvEkAm/builds/jSWR28CgdWHZb6tgG/openapi.json
