1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "upstream_source": "public",
10 "video_snapshot": {
11 "observed_at": "2026-10-28T09:51:22.853000+00:00",
12 "source": "clockworks/tiktok-video-scraper/5bzRfhtq8ggnuJ98L (saved example; not a live query)",
13 "records": [
14 {
15 "id": "7673512242951752973",
16 "creator": "tntdealss",
17 "url": "https://www.tiktok.com/@tntdealss/video/7673512242951752973",
18 "description": "Cozy at home 📽️ 🛌 #miniprojector #smartprojector #magcubicprojector #movienight #bedrotting ",
19 "view_count": 19800000,
20 "likes": 148700,
21 "comments": 428,
22 "shares": 23500,
23 "created_at": "2026-08-14T17:37:00+00:00",
24 "is_sponsored": True,
25 "is_ad": True,
26 },
27 {
28 "id": "7697826975758535942",
29 "creator": "viralproducts1990",
30 "url": "https://www.tiktok.com/@viralproducts1990/video/7697826975758535942",
31 "description": """Mini Projector
32#gadgets #viral #tech #foryoupage #tiktok #fyp #viralvideo """,
33 "view_count": 27600,
34 "likes": 386,
35 "comments": 11,
36 "shares": 53,
37 "created_at": "2026-10-18T02:20:18+00:00",
38 "is_sponsored": False,
39 "is_ad": False,
40 },
41 {
42 "id": "7694514643976555796",
43 "creator": "viralproducts1990",
44 "url": "https://www.tiktok.com/@viralproducts1990/video/7694514643976555796",
45 "description": """Gadgets
46#tech #tiktok #fyp #MiniProjector """,
47 "view_count": 87700,
48 "likes": 1278,
49 "comments": 29,
50 "shares": 179,
51 "created_at": "2026-10-09T04:06:52+00:00",
52 "is_sponsored": False,
53 "is_ad": False,
54 },
55 ],
56 },
57 "proxyConfiguration": { "useApifyProxy": False },
58 "example_mode": True,
59}
60
61
62run = client.actor("hirepulse/viral-product-radar").call(run_input=run_input)
63
64
65print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
66for item in client.dataset(run.default_dataset_id).iterate_items():
67 print(item)
68
69