1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "types": ["hashtags"],
10 "countries": ["US"],
11 "maxItemsPerType": 1000,
12 "hashtagPeriods": ["7"],
13 "hashtagIndustries": [
14 "all",
15 "10000000000",
16 "11000000000",
17 "12000000000",
18 "14000000000",
19 "15000000000",
20 "17000000000",
21 "18000000000",
22 "19000000000",
23 "21000000000",
24 "22000000000",
25 "23000000000",
26 "25000000000",
27 "27000000000",
28 "28000000000",
29 "29000000000",
30 ],
31 "videoPeriods": ["7"],
32 "videoSortBy": ["views"],
33 "videoContentTags": ["all"],
34 "topAdsPeriods": ["7"],
35 "topAdsIndustries": ["all"],
36 "topAdsSortBy": ["for_you"],
37 "proxyConfiguration": { "useApifyProxy": True },
38}
39
40
41run = client.actor("symphonic_mullite/tiktok-creative-center-trends").call(run_input=run_input)
42
43
44print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48