# TikTok Shop Product Creator Videos(mobile) (`rogertkart/tiktok-shop-product-creator-videos-mobile`) Actor

Mobile API: creator videos for a TikTok Shop product (product ID, optional seller ID, region). Regions: US, GB, DE, FR, IT, ID, MY, MX, PH, SG, ES, TH, VN, BR, JP, IE (default ID). Structured JSON — not a web scraper. Pay per successful product request.

- **URL**: https://apify.com/rogertkart/tiktok-shop-product-creator-videos-mobile.md
- **Developed by:** [Rogert kart](https://apify.com/rogertkart) (community)
- **Categories:** E-commerce, Social media, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $10.00 / 1,000 successful product requests

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 Creator Videos(mobile) | Creator videos by product ID

Fetch TikTok Shop **creator / affiliate videos** for a product via **mobile commerce APIs** — **product ID**, optional **seller ID**, and **region**. Fast structured JSON. **Not** a `shop.tiktok.com` web or browser scraper. Pay only for **successful product requests**.

***

#### What is this Actor?

One **product per run**. It calls TikTok Shop **mobile** product surfaces (same family of data as the in-app product page creator-video module) and returns creator / affiliate videos for that product in the selected region. No headless browser, no PDP HTML parsing. Products with no creator videos still count as a successful request (one summary row, `videoCount: 0`).

***

#### Input

| Parameter | Required | Description |
| --- | --- | --- |
| `productId` | Yes | TikTok Shop product ID |
| `sellerId` | No | Seller ID when you have it |
| `region` | No | Two-letter country code. Default **`ID`**. |

```json
{
  "productId": "1736438017333823258",
  "sellerId": "7494742520002152218",
  "region": "ID"
}
```

**Supported regions:** `US`, `GB`, `DE`, `FR`, `IT`, `ID`, `MY`, `MX`, `PH`, `SG`, `ES`, `TH`, `VN`, `BR`, `JP`, `IE` (default **`ID`**).

> **Important — region must match the product market**\
> `region` is the TikTok Shop **country**, not a filter. Use the code where that `productId` is actually listed (e.g. US product → `US`, Indonesia product → `ID`).\
> If the region is wrong, you often get **0 videos** (`videoCount: 0`) even though the product has creator videos in the correct market — the run is still **successful** and **billed** once.\
> Example: Indonesia product `1736438017333823258` → **30 videos** with `ID`, **0** with `US`.

***

#### Output (dataset)

One row per video when videos exist:

| Field | Description |
| --- | --- |
| `productId`, `region`, `sellerId` | Request context |
| `module_title` | PDP module label when provided |
| `aweme_id` | TikTok video ID |
| `creator_name` | Creator display name |
| `video_title` | Video caption / title |
| `thumbnail_url`, `creator_avatar_url` | Cover and avatar URLs |
| `video_schema`, `da_info` | Raw metadata when present |

**Example dataset record** (one row per video; product `1736438017333823258`, region `ID`):

```json
{
  "productId": "1736438017333823258",
  "region": "ID",
  "sellerId": "7494742520002152218",
  "module_title": "Video từ nhà sáng tạo (30+)",
  "aweme_id": "7687964636032879893",
  "creator_name": "OINS10.",
  "video_title": "Wanita di usia paling cantik, investasi pada diri sendiri adalah yang paling penting...",
  "video_schema": "aweme://ec/pdp_sea_creator_video?...",
  "thumbnail_url": "https://p16-common-sign.tiktokcdn.com/.../cover.webp",
  "creator_avatar_url": "https://p16-common-sign.tiktokcdn.com/.../avatar.webp",
  "da_info": "{\"rec_params\":\"...\"}"
}
```

**No creator videos** (wrong region or empty module) — still one dataset row:

```json
{
  "productId": "1736438017333823258",
  "region": "US",
  "sellerId": null,
  "module_title": null,
  "videoCount": 0,
  "aweme_id": null,
  "creator_name": null,
  "video_title": null
}
```

A longer raw API response for local inspection lives in the repo root: `creator_videos_1736438017333823258_ID.json` (30 videos).

***

#### Pricing

**$10 / 1,000 successful product requests** ($0.01 per successful fetch). Failed or unavailable runs are not charged for the product request event.

***

#### Local test

```bash
cd apify
cp .env.example .env   # fill secrets (owner only)
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python main.py
```

Deploy:

```bash
apify login
python3 scripts/sync_apify_secrets.py
apify push   # first time creates the Actor; updates use same command
```

**Console:** https://console.apify.com/actors/724dA6nEAMJByknke\
**Store id:** `rogertkart/tiktok-shop-product-creator-videos-mobile`

Enable **Pay per event** in Console and upload pricing from `scripts/ppe_pricing_put.json`.

# Changelog

This Actor's version history is a separate document: https://apify.com/rogertkart/tiktok-shop-product-creator-videos-mobile/changelog.md

# Actor input Schema

## `productId` (type: `string`):

TikTok Shop product ID for that marketplace. Use together with the region where this product is sold (wrong region → empty or incorrect video list).

## `sellerId` (type: `string`):

Optional TikTok Shop seller ID when you have it.

## `region` (type: `string`):

Must match the product's TikTok Shop country (same market as the listing). Wrong region often returns 0 videos but still counts as a successful request. Default: ID.

## Actor input object example

```json
{
  "productId": "1736438017333823258",
  "region": "ID"
}
```

# Actor output Schema

## `creatorVideos` (type: `string`):

Default dataset: creator video rows for the requested product.

# 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 = {
    "productId": "1736438017333823258"
};

// Run the Actor and wait for it to finish
const run = await client.actor("rogertkart/tiktok-shop-product-creator-videos-mobile").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 = { "productId": "1736438017333823258" }

# Run the Actor and wait for it to finish
run = client.actor("rogertkart/tiktok-shop-product-creator-videos-mobile").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 '{
  "productId": "1736438017333823258"
}' |
apify call rogertkart/tiktok-shop-product-creator-videos-mobile --silent --output-dataset

```

## MCP server setup

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

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/724dA6nEAMJByknke/builds/p85vkfpVmfsPzP9rb/openapi.json
