1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "tt1",
12 "uniqueId": "creatorfast",
13 "followerCount": 320000,
14 "followingCount": 420,
15 "heartCount": 9200000,
16 "videoCount": 610,
17 "likes": 48000,
18 "comments": 2200,
19 "shares": 8100,
20 "views": 780000,
21 },
22 {
23 "id": "tt2",
24 "uniqueId": "creatorflat",
25 "followerCount": 510000,
26 "followingCount": 850,
27 "heartCount": 6800000,
28 "videoCount": 1900,
29 "likes": 15000,
30 "comments": 500,
31 "shares": 900,
32 "views": 420000,
33 },
34 ],
35 "previousItems": [{
36 "id": "tt1",
37 "uniqueId": "creatorfast",
38 "followerCount": 285000,
39 "followingCount": 410,
40 "heartCount": 7900000,
41 "videoCount": 580,
42 "likes": 39000,
43 "comments": 1900,
44 "shares": 6700,
45 "views": 650000,
46 }],
47}
48
49
50run = client.actor("quanmatrix/tiktok-creator-growth-quality-intelligence").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57