1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "channels": [
10 "@mkbhd",
11 "@veritasium",
12 ],
13 "mode": "TRACK",
14 "trackerKey": "default",
15 "comparisonPeriods": [
16 "PREVIOUS",
17 "7_DAYS",
18 "30_DAYS",
19 ],
20 "includeRecentVideoMetrics": True,
21 "recentVideosToAnalyze": 10,
22 "contentTypes": [
23 "VIDEOS",
24 "SHORTS",
25 ],
26 "includeUploadTracking": True,
27 "includeProfileMetadata": True,
28 "saveHistory": True,
29 "maxHistoryDays": 365,
30 "minimumSnapshotIntervalMinutes": 30,
31 "maxConcurrency": 10,
32 "requestTimeoutSecs": 30,
33 "maxRetries": 3,
34 "proxyConfiguration": { "useApifyProxy": False },
35}
36
37
38run = client.actor("coregent/youtube-channel-growth-tracker").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45