# TikTok Shop Product Momentum Intelligence (`afkdigital/tiktok-shop-product-momentum-intelligence`) Actor

Analyze authorized product and content exports. Compare dated snapshots, preserve reported sales definitions, and track eligibility-specific commissions.

- **URL**: https://apify.com/afkdigital/tiktok-shop-product-momentum-intelligence.md
- **Developed by:** [AFK Digital](https://apify.com/afkdigital) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 completed product analyses

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 Momentum Intelligence

Compare the number of distinct videos linked to your products across two comparable exports. See creator coverage, reported sales and dated commission terms alongside each result. This independent tool processes files supplied by the customer. It has no live marketplace feed, TikTok login, seller OAuth connector or cross-shop discovery feature.

### Quick start

Run the prefilled synthetic example. DEMO-1 moves from one linked video to three, with two identified creators and a score of 75. For your own data replace **all** sample inputs, remove unused optional inputs and set sampleData to false. Supply only exports you are authorized to process on Apify. No TikTok credentials are needed. Input and results are stored in your Apify run storages. Manage access and retention in your account.

### Prepare your files

Use JSON objects with a rows array, or paste UTF-8 CSV with header into a csv string inside the corresponding input object. File paths and URLs are unsupported. Normalize seller-specific headers to the names below. See the prefilled input for a complete working dataset. Use string identifiers to preserve leading zeros. One run covers one shop, market, currency and one variant per product. Omit variantId everywhere for product-level records. Matching is exact. Products are sorted by ID before maxProducts is applied.

Every export row needs shopId, market, currency, productId and observedAt (ISO 8601 timestamp with offset), plus optional variantId. Include currency even for content rows as the product listing's currency context. Rows in other markets, currencies and shops are filtered out; variant IDs must match. Never concatenate exports with different definitions or coverage under one snapshot label.

| Input | Additional fields |
|---|---|
| productsFile | productName, optional productUrl and numeric price. Supply rows at the current observation instant. |
| contentFile | contentId, optional creatorId. Provide the complete set of linked video IDs at each observation instant. Repeated IDs count once per product and instant. |
| optionalSalesFile | metric (e.g. units or GMV), definition, basis (period or cumulative), nonnegative value. For period, include periodStart and periodEnd with timezones. Monetary values must use the listing currency. |
| optionalCommissionFile | ratePercent (0–100), eligibility (specific applicable conditions), optional offerId and exclusive validUntil. Supply a single offer stream per product, with its dated changes. |
| currentSnapshot, previousSnapshot | observedAt, shopId, sourceId, coverage, contentDefinition and Boolean complete. Use the same source, population and counting rule for both dates. For product-level records explicitly covered with zero prior videos, previousSnapshot.coveredZeroProductIds can list those IDs. |
| market, currency | Uppercase two- and three-letter codes, e.g. US and USD. |
| windowDays, maxProducts | 1–365 elapsed 24-hour days (default 7) and 1–10000 products (default 100). |

### Interpret the results

relatedContentCount counts distinct supplied linked videos. uniqueCreatorCount counts identified distinct creators. contentGrowth is current count C minus previous count P. Both snapshots must be declared complete, match in scope and be exactly windowDays apart. Prior coverage must be evidenced by linked content or an explicit zero declaration. Otherwise growth and score are null. The score is round(50 + 50 × (C − P) / max(1, C + P), 2). A score of 50 means unchanged count, 100 means growth from a verified zero, and 0 means a decline to zero. Small samples can produce extreme scores. The score describes change in content coverage, and does not predict demand or sales.

reportedSalesMetric and salesMetricBasis preserve the most recent supplied observation available at snapshot time, its definition, timestamp and reporting period if any. Cumulative values stay cumulative. Commission uses the latest eligible-time observation with a stated rate and eligibility, includes commissionObservedAt, and suppresses expired or conflicting offers. No extrapolation or interpolation. Missing evidence yields nulls and limitations. Conflicting latest sales definitions are suppressed. Review limitations and sampleData before using results.

### Access and commercial scope

TikTok Shop seller analytics requires seller authorization and specific scopes. Affiliate seller, creator and partner roles have separate permissions. Approval and availability depend on app category, market and endpoint. The Partner Center terms require lawful written subscriber approval for processing subscriber data. This paid analysis service does not grant access to or resale rights over TikTok data. The customer selects the country context of their own export; accepting a country code does not certify live API support there.
Official references: [Seller analytics](https://partner.tiktokshop.com/docv2/page/kpkfccsa), [affiliate authorization](https://partner.tiktokshop.com/docv2/page/affiliate-integration), [market-specific review](https://partner.tiktokshop.com/docv2/page/app-review-process), [partner terms](https://partner.tiktokshop.com/docv2/page/6506bbf2de672602b7bc0697).

### Automation examples

Use an Apify API token in your integration's credential store. Use POST /v2/acts/afkdigital~tiktok-shop-product-momentum-intelligence/runs with the Actor input as JSON. On SUCCEEDED, use GET /v2/datasets/{defaultDatasetId}/items?format=json.

- **n8n**: Read CSV from your approved storage, build productsFile.csv and contentFile.csv in Edit Fields, start the Actor with HTTP Request, poll the run, then split dataset items into spreadsheet rows.
- **Make**: Download the two exports, use Create JSON to map their text and snapshot metadata, run the Actor with Apify, fetch dataset items and route products with non-null momentumScore above 70 to a monitoring sheet.
- **Clay**: Run one batch for the shop, import its dataset as CSV into a table, and join productId, shopId, variantId and market to your catalog. Surface commissionEligibility next to the rate. Reuse the batch result across rows.

### Billing

The product-analysis event represents one completed distinct product analysis in one run. Associated video count and creator count add no events. A new run is a new analysis. Example results are labeled synthetic; running the example on a paid listing may generate events.

# Actor input Schema

## `sampleData` (type: `boolean`):

Mark all outputs as synthetic examples. Set false for your exports.

## `market` (type: `string`):

Two-letter market code.

## `currency` (type: `string`):

Three-letter currency code.

## `windowDays` (type: `integer`):

Required elapsed days between comparable snapshots.

## `maxProducts` (type: `integer`):

Maximum number of distinct products to analyze.

## `currentSnapshot` (type: `object`):

Describe the observation time and scope as documented in README.

## `previousSnapshot` (type: `object`):

Describe the observation time and scope as documented in README.

## `productsFile` (type: `object`):

Supply normalized export records in {"rows":\[...]} or CSV text in {"csv":"..."} format.

## `contentFile` (type: `object`):

Supply normalized export records in {"rows":\[...]} or CSV text in {"csv":"..."} format.

## `optionalSalesFile` (type: `object`):

Supply normalized export records in {"rows":\[...]} or CSV text in {"csv":"..."} format.

## `optionalCommissionFile` (type: `object`):

Supply normalized export records in {"rows":\[...]} or CSV text in {"csv":"..."} format.

## Actor input object example

```json
{
  "sampleData": true,
  "market": "US",
  "currency": "USD",
  "windowDays": 7,
  "maxProducts": 100,
  "currentSnapshot": {
    "shopId": "demo-shop",
    "sourceId": "seller-export",
    "coverage": "shop videos",
    "contentDefinition": "unique linked video IDs",
    "complete": true,
    "observedAt": "2026-11-08T00:00:00Z"
  },
  "previousSnapshot": {
    "shopId": "demo-shop",
    "sourceId": "seller-export",
    "coverage": "shop videos",
    "contentDefinition": "unique linked video IDs",
    "complete": true,
    "observedAt": "2026-11-01T00:00:00Z"
  },
  "productsFile": {
    "rows": [
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "productName": "Synthetic tea tin",
        "price": 12
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-2",
        "observedAt": "2026-11-08T00:00:00Z",
        "productName": "Synthetic cup",
        "price": 9
      }
    ]
  },
  "contentFile": {
    "rows": [
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-01T00:00:00Z",
        "contentId": "v1",
        "creatorId": "c1"
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "contentId": "v1",
        "creatorId": "c1"
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "contentId": "v2",
        "creatorId": "c1"
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "contentId": "v3",
        "creatorId": "c2"
      }
    ]
  },
  "optionalSalesFile": {
    "rows": [
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "basis": "cumulative",
        "metric": "units",
        "definition": "Seller-reported lifetime units",
        "value": 58
      }
    ]
  },
  "optionalCommissionFile": {
    "rows": [
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-01T00:00:00Z",
        "ratePercent": 5,
        "eligibility": "Approved campaign A creators",
        "offerId": "A"
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "ratePercent": 8,
        "eligibility": "Approved campaign A creators",
        "offerId": "A"
      }
    ]
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "sampleData": true,
    "market": "US",
    "currency": "USD",
    "windowDays": 7,
    "maxProducts": 100,
    "currentSnapshot": {
        "shopId": "demo-shop",
        "sourceId": "seller-export",
        "coverage": "shop videos",
        "contentDefinition": "unique linked video IDs",
        "complete": true,
        "observedAt": "2026-11-08T00:00:00Z"
    },
    "previousSnapshot": {
        "shopId": "demo-shop",
        "sourceId": "seller-export",
        "coverage": "shop videos",
        "contentDefinition": "unique linked video IDs",
        "complete": true,
        "observedAt": "2026-11-01T00:00:00Z"
    },
    "productsFile": {
        "rows": [
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "productName": "Synthetic tea tin",
                "price": 12
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-2",
                "observedAt": "2026-11-08T00:00:00Z",
                "productName": "Synthetic cup",
                "price": 9
            }
        ]
    },
    "contentFile": {
        "rows": [
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-01T00:00:00Z",
                "contentId": "v1",
                "creatorId": "c1"
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "contentId": "v1",
                "creatorId": "c1"
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "contentId": "v2",
                "creatorId": "c1"
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "contentId": "v3",
                "creatorId": "c2"
            }
        ]
    },
    "optionalSalesFile": {
        "rows": [
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "basis": "cumulative",
                "metric": "units",
                "definition": "Seller-reported lifetime units",
                "value": 58
            }
        ]
    },
    "optionalCommissionFile": {
        "rows": [
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-01T00:00:00Z",
                "ratePercent": 5,
                "eligibility": "Approved campaign A creators",
                "offerId": "A"
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "ratePercent": 8,
                "eligibility": "Approved campaign A creators",
                "offerId": "A"
            }
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("afkdigital/tiktok-shop-product-momentum-intelligence").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 = {
    "sampleData": True,
    "market": "US",
    "currency": "USD",
    "windowDays": 7,
    "maxProducts": 100,
    "currentSnapshot": {
        "shopId": "demo-shop",
        "sourceId": "seller-export",
        "coverage": "shop videos",
        "contentDefinition": "unique linked video IDs",
        "complete": True,
        "observedAt": "2026-11-08T00:00:00Z",
    },
    "previousSnapshot": {
        "shopId": "demo-shop",
        "sourceId": "seller-export",
        "coverage": "shop videos",
        "contentDefinition": "unique linked video IDs",
        "complete": True,
        "observedAt": "2026-11-01T00:00:00Z",
    },
    "productsFile": { "rows": [
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "productName": "Synthetic tea tin",
                "price": 12,
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-2",
                "observedAt": "2026-11-08T00:00:00Z",
                "productName": "Synthetic cup",
                "price": 9,
            },
        ] },
    "contentFile": { "rows": [
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-01T00:00:00Z",
                "contentId": "v1",
                "creatorId": "c1",
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "contentId": "v1",
                "creatorId": "c1",
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "contentId": "v2",
                "creatorId": "c1",
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "contentId": "v3",
                "creatorId": "c2",
            },
        ] },
    "optionalSalesFile": { "rows": [{
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "basis": "cumulative",
                "metric": "units",
                "definition": "Seller-reported lifetime units",
                "value": 58,
            }] },
    "optionalCommissionFile": { "rows": [
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-01T00:00:00Z",
                "ratePercent": 5,
                "eligibility": "Approved campaign A creators",
                "offerId": "A",
            },
            {
                "shopId": "demo-shop",
                "market": "US",
                "currency": "USD",
                "productId": "DEMO-1",
                "observedAt": "2026-11-08T00:00:00Z",
                "ratePercent": 8,
                "eligibility": "Approved campaign A creators",
                "offerId": "A",
            },
        ] },
}

# Run the Actor and wait for it to finish
run = client.actor("afkdigital/tiktok-shop-product-momentum-intelligence").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 '{
  "sampleData": true,
  "market": "US",
  "currency": "USD",
  "windowDays": 7,
  "maxProducts": 100,
  "currentSnapshot": {
    "shopId": "demo-shop",
    "sourceId": "seller-export",
    "coverage": "shop videos",
    "contentDefinition": "unique linked video IDs",
    "complete": true,
    "observedAt": "2026-11-08T00:00:00Z"
  },
  "previousSnapshot": {
    "shopId": "demo-shop",
    "sourceId": "seller-export",
    "coverage": "shop videos",
    "contentDefinition": "unique linked video IDs",
    "complete": true,
    "observedAt": "2026-11-01T00:00:00Z"
  },
  "productsFile": {
    "rows": [
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "productName": "Synthetic tea tin",
        "price": 12
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-2",
        "observedAt": "2026-11-08T00:00:00Z",
        "productName": "Synthetic cup",
        "price": 9
      }
    ]
  },
  "contentFile": {
    "rows": [
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-01T00:00:00Z",
        "contentId": "v1",
        "creatorId": "c1"
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "contentId": "v1",
        "creatorId": "c1"
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "contentId": "v2",
        "creatorId": "c1"
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "contentId": "v3",
        "creatorId": "c2"
      }
    ]
  },
  "optionalSalesFile": {
    "rows": [
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "basis": "cumulative",
        "metric": "units",
        "definition": "Seller-reported lifetime units",
        "value": 58
      }
    ]
  },
  "optionalCommissionFile": {
    "rows": [
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-01T00:00:00Z",
        "ratePercent": 5,
        "eligibility": "Approved campaign A creators",
        "offerId": "A"
      },
      {
        "shopId": "demo-shop",
        "market": "US",
        "currency": "USD",
        "productId": "DEMO-1",
        "observedAt": "2026-11-08T00:00:00Z",
        "ratePercent": 8,
        "eligibility": "Approved campaign A creators",
        "offerId": "A"
      }
    ]
  }
}' |
apify call afkdigital/tiktok-shop-product-momentum-intelligence --silent --output-dataset

```

## MCP server setup

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

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/G3Li46qFVMqN9Mdiq/builds/WGq0IuBjGLWboBV7K/openapi.json
