1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "byChannel",
12 "channelSlugs": [
13 "staffpicks"
14 ],
15 "usernames": [],
16 "videoUrls": [],
17 "searchQueries": [],
18 "categorySlugs": [],
19 "tagSlugs": [],
20 "showcaseUrls": [],
21 "maxItems": 20,
22 "sort": "default",
23 "filterCategory": "any",
24 "filterDuration": "any",
25 "filterResolution": "any",
26 "filterPrice": "any",
27 "filterLicense": "any",
28 "filterUploaded": "any",
29 "filterStaffPicked": false,
30 "filterHdr": "any",
31 "filterVimeo360": "any",
32 "filterLive": false,
33 "includeCreatorProfile": false,
34 "includeChannelProfile": false
35};
36
37
38const run = await client.actor("xyrelith-data/vimeo-channel-creator-and-video-metadata-extractor").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48