1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 "Magnetic Posture & Cervical Traction Pillow ($34.90 AOV · $5.20 COGS · 6.7x markup · +410% 7d GMV velocity): 0-3s Visual Hook shows side-by-side neck curve decompression on thermal camera. Target CPA: $9.80.",
13 "Ultrasonic Retainer & Nightguard UV Pod ($29.99 AOV · $4.10 COGS · 7.3x markup · 18,400 units/7d): 0-3s Visual Hook drops stained aligner into 45kHz cavitation water cloud turning crystal clear in 4 seconds. Target CPA: $8.50.",
14 "Cordless Tire Inflator with Digital Auto-Shutoff ($39.95 AOV · $7.80 COGS · 5.1x markup · 24,100 units/7d): 0-3s Visual Hook inflates flat SUV tire from 18 PSI to 35 PSI in 42 seconds on rainy highway shoulder. Target CPA: $11.20."
15 ]
16};
17
18
19const run = await client.actor("ultra-liquid/tiktok-shop-winning-product-miner").call(input);
20
21
22console.log('Results from dataset');
23console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
24const { items } = await client.dataset(run.defaultDatasetId).listItems();
25items.forEach((item) => {
26 console.dir(item);
27});
28
29