1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "urls": [
12 "https://streamable.com/o1ioj2",
13 "https://streamable.com/o1im26",
14 "https://streamable.com/o1im2s",
15 "https://streamable.com/o1im6a",
16 "https://streamable.com/o1imao",
17 "https://streamable.com/o1imc2",
18 "https://streamable.com/o1img1",
19 "https://streamable.com/o1imij",
20 "https://streamable.com/o1ims4",
21 "https://streamable.com/o1imtk",
22 "https://streamable.com/o1imxi",
23 "https://streamable.com/o1in05",
24 "https://streamable.com/o1in5i",
25 "https://streamable.com/o1inmr",
26 "https://streamable.com/o1inx4",
27 "https://streamable.com/o1iojc",
28 "https://streamable.com/o1iori",
29 "https://streamable.com/o1iov0",
30 "https://streamable.com/o1iox4",
31 "https://streamable.com/o1ioy4",
32 "https://streamable.com/o1ip5o",
33 "https://streamable.com/o1ipjq",
34 "https://streamable.com/o1iplv",
35 "https://streamable.com/o1ipn8",
36 "https://streamable.com/o1ipqb",
37 "https://streamable.com/o1ipzl",
38 "https://streamable.com/o1iq4h",
39 "https://streamable.com/o1iqmu",
40 "https://streamable.com/o1iqz7",
41 "https://streamable.com/o1ir5g"
42 ]
43};
44
45
46const run = await client.actor("maximedupre/streamable-video-downloader").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56