1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "title": "I Tried 5 Cheap Knives. One Shocked Me",
12 "type": "video",
13 "url": "https://example.com/demo/kl1",
14 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/kl1.jpg?signature=JRenYivYHxvmvSopDhqs",
15 "viewCount": 48200,
16 "likes": 2100,
17 "commentsCount": 312,
18 "date": "2026-10-02T15:00:00.000Z",
19 "duration": "00:11:42",
20 "channelName": "Demo Kitchen Lab",
21 "channelUsername": "demo_kitchen_lab",
22 "channelUrl": "https://example.com/demo/kitchen-lab",
23 "numberOfSubscribers": 48000,
24 },
25 {
26 "title": "How to Cook Rice Perfectly Every Time",
27 "type": "video",
28 "url": "https://example.com/demo/kl2",
29 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/kl2.jpg?signature=qYb9zZFOMS1vgAT3RsRV",
30 "viewCount": 21400,
31 "likes": 880,
32 "commentsCount": 95,
33 "date": "2026-10-09T15:00:00.000Z",
34 "duration": "00:08:15",
35 "channelName": "Demo Kitchen Lab",
36 "channelUsername": "demo_kitchen_lab",
37 "channelUrl": "https://example.com/demo/kitchen-lab",
38 "numberOfSubscribers": 48000,
39 },
40 {
41 "title": "Kitchen Lab Q&A: Your Questions Answered",
42 "type": "video",
43 "url": "https://example.com/demo/kl3",
44 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/kl3.jpg?signature=1GmdHhDYXICv63FSeTTdX",
45 "viewCount": 6200,
46 "likes": 240,
47 "commentsCount": 61,
48 "date": "2026-10-16T15:00:00.000Z",
49 "duration": "00:21:03",
50 "channelName": "Demo Kitchen Lab",
51 "channelUsername": "demo_kitchen_lab",
52 "channelUrl": "https://example.com/demo/kitchen-lab",
53 "numberOfSubscribers": 48000,
54 },
55 {
56 "title": "Stop Ruining Your Pasta (3 Mistakes)",
57 "type": "video",
58 "url": "https://example.com/demo/kl4",
59 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/kl4.jpg?signature=1QblQqnu7vFveYAhQvKO7",
60 "viewCount": 39100,
61 "likes": 1650,
62 "commentsCount": 204,
63 "date": "2026-10-23T15:00:00.000Z",
64 "duration": "00:09:30",
65 "channelName": "Demo Kitchen Lab",
66 "channelUsername": "demo_kitchen_lab",
67 "channelUrl": "https://example.com/demo/kitchen-lab",
68 "numberOfSubscribers": 48000,
69 },
70 {
71 "title": "the 10-second garlic trick",
72 "type": "shorts",
73 "url": "https://example.com/demo/kl5",
74 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/kl5.jpg?signature=JnhbTBlBngg7CTxdF59d",
75 "viewCount": 15300,
76 "likes": 900,
77 "commentsCount": 22,
78 "date": "2026-10-25T18:00:00.000Z",
79 "duration": "00:00:24",
80 "channelName": "Demo Kitchen Lab",
81 "channelUsername": "demo_kitchen_lab",
82 "channelUrl": "https://example.com/demo/kitchen-lab",
83 "numberOfSubscribers": 48000,
84 },
85 {
86 "title": "Easy Weeknight Dinner Ideas",
87 "type": "video",
88 "url": "https://example.com/demo/wm1",
89 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/wm1.jpg?signature=wvHi1RBeLqTJfaC7ReMn",
90 "viewCount": 9800,
91 "likes": 310,
92 "commentsCount": 28,
93 "date": "2026-10-01T17:00:00.000Z",
94 "duration": "00:14:10",
95 "channelName": "Demo Weeknight Meals",
96 "channelUsername": "demo_weeknight_meals",
97 "channelUrl": "https://example.com/demo/weeknight-meals",
98 "numberOfSubscribers": 21000,
99 },
100 {
101 "title": "Why Your Stir Fry Is Soggy",
102 "type": "video",
103 "url": "https://example.com/demo/wm2",
104 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/wm2.jpg?signature=fY4Wb7dXabZSz5J7Ub42",
105 "viewCount": 27500,
106 "likes": 1200,
107 "commentsCount": 140,
108 "date": "2026-10-08T17:00:00.000Z",
109 "duration": "00:07:48",
110 "channelName": "Demo Weeknight Meals",
111 "channelUsername": "demo_weeknight_meals",
112 "channelUrl": "https://example.com/demo/weeknight-meals",
113 "numberOfSubscribers": 21000,
114 },
115 {
116 "title": "Meal Prep for the Week in 1 Hour",
117 "type": "video",
118 "url": "https://example.com/demo/wm3",
119 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/wm3.jpg?signature=1J8PWi0wi3PflW6aQdjp1",
120 "viewCount": 14000,
121 "likes": 520,
122 "commentsCount": 47,
123 "date": "2026-10-15T17:00:00.000Z",
124 "duration": "00:12:20",
125 "channelName": "Demo Weeknight Meals",
126 "channelUsername": "demo_weeknight_meals",
127 "channelUrl": "https://example.com/demo/weeknight-meals",
128 "numberOfSubscribers": 21000,
129 },
130 {
131 "title": "fastest fried egg ever?",
132 "type": "shorts",
133 "url": "https://example.com/demo/wm4",
134 "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/pRN5toUmxPnE06IBj/records/wm4.jpg?signature=1mjjEHNxB5M6OPFVip0TR",
135 "viewCount": 22000,
136 "likes": 1400,
137 "commentsCount": 35,
138 "date": "2026-10-22T18:00:00.000Z",
139 "duration": "00:00:18",
140 "channelName": "Demo Weeknight Meals",
141 "channelUsername": "demo_weeknight_meals",
142 "channelUrl": "https://example.com/demo/weeknight-meals",
143 "numberOfSubscribers": 21000,
144 },
145 ],
146 "myChannel": "@demo_weeknight_meals",
147 "channelBrief": "Weeknight Meals is a cooking channel for busy people who want dinner on the table in 30 minutes with one pan and supermarket ingredients. Host cooks on camera in a small home kitchen. Tone: friendly, practical, a bit funny, no chef jargon. Goal: more subscribers and longer watch time. Avoid: clickbait we cannot deliver, expensive gadgets, diet claims.",
148 "conceptsCount": 5,
149}
150
151
152run = client.actor("seasons-ai/youtube-channel-playbook").call(run_input=run_input)
153
154
155print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
156for item in client.dataset(run.default_dataset_id).iterate_items():
157 print(item)
158
159