1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchQueries": [],
12 "searchUrls": [],
13 "creatorIds": [],
14 "similarTo": [],
15 "assetIds": [
16 "185171025"
17 ],
18 "portfolioQuery": "",
19 "assetTypes": [
20 "all"
21 ],
22 "orientation": "any",
23 "color": "",
24 "people": "any",
25 "generativeAi": "all",
26 "editorial": "all",
27 "priceLevel": "all",
28 "licenseType": "any",
29 "undiscovered": false,
30 "transparent": false,
31 "isolated": false,
32 "copySpace": "any",
33 "minWidth": 0,
34 "minHeight": 0,
35 "minMegapixels": 0,
36 "videoDurationMin": 0,
37 "videoDurationMax": 0,
38 "videoResolution": "any",
39 "frameRate": "any",
40 "categoryId": "",
41 "sort": "relevance",
42 "similarMatch": "all",
43 "locale": "en_US",
44 "maxItems": 1,
45 "requestTimeoutSecs": 60,
46 "maxRetries": 3
47};
48
49
50const run = await client.actor("crawlyth-forge/adobe-stock-scraper").call(input);
51
52
53console.log('Results from dataset');
54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
55const { items } = await client.dataset(run.defaultDatasetId).listItems();
56items.forEach((item) => {
57 console.dir(item);
58});
59
60