1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "template": "Amsterdam",
10 "backgroundVideoUrl": "https://reel-templates.roomjs.com/bg/amsterdam.mp4",
11 "audioUrl": "https://reel-templates.roomjs.com/audio/amsterdam.mp3",
12 "title": "Amsterdam",
13 "content": [
14 "1. Amsterdam has over 100 km of canals, earning it the nickname “Venice of the North”",
15 "2. There are more bicycles than people—around 1.2 bikes per resident",
16 "3. The city is built on millions of wooden poles driven deep into soft soil",
17 "4. Anne Frank wrote her diary while hiding in a canal house in Amsterdam",
18 "5. Many canal houses lean forward to help lift goods by pulley",
19 ],
20 "titleFont": "Helvetica",
21 "titleFontSize": "L",
22 "contentFont": "Roboto",
23 "contentFontSize": "S",
24}
25
26
27run = client.actor("room_js/reel-video-generator-apify-actor").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34