1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "imageUrls": [
12 "https://m.media-amazon.com/images/I/61Cev2aFG5L._AC_SX695_.jpg",
13 "https://cdn.shopify.com/s/files/1/1104/4168/files/A12858W090-PORT_SIDE_TRANSPARENT.png?v=1793836076",
14 "https://cdn.shopify.com/s/files/1/1104/4168/files/A12842W-NATURALWHITE_WASHEDCAMEL_SIDE_TRANSPARENT.png?v=1793832504",
15 "https://cdn.shopify.com/s/files/1/1104/4168/files/All-birds_0005_43458c4f-246f-41b5-8016-db9cca7dae6d.png?v=1793829121",
16 "https://cdn.shopify.com/s/files/1/1104/4168/files/A12787W-PORT_SIDE_TRANSPARENT.png?v=1793813354",
17 "https://cdn.shopify.com/s/files/1/1104/4168/files/A12912W-SHADOWBLUE_SIDE_TRANSPARENT.png?v=1793752289",
18 "https://cdn.shopify.com/s/files/1/1104/4168/files/All-birds_0001_d291e1bd-10fc-4969-bae6-a79b0cd51598.png?v=1793750166",
19 "https://cdn.shopify.com/s/files/1/1104/4168/files/A12366_26Q1_Tree-Glider-Warm-White-Multi-Natural-White_PDP_LEFT.png?v=1765305013",
20 "https://cdn.shopify.com/s/files/1/1104/4168/files/TR3MJBW080_SHOE_LEFT_GLOBAL_MENS_TREE_RUNNER_JET_BLACK_WHITE.png?v=1751165486",
21 "https://cdn.shopify.com/s/files/1/1104/4168/products/SKU_SHOE_PROFILE_GLOBAL_MENS_SUPERLIGHT_WR_NATURAL_BLACK_LIGHT_GREY_ded33994-29a2-45d0-bc5f-9124d93098a8.png?v=1698105625"
22 ],
23 "backend": "1688-alt"
24};
25
26
27const run = await client.actor("automa-flow/supplier-finder-by-photo").call(input);
28
29
30console.log('Results from dataset');
31console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
32const { items } = await client.dataset(run.defaultDatasetId).listItems();
33items.forEach((item) => {
34 console.dir(item);
35});
36
37